Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming,it.comp.lang.visual-basic
external usenet poster
 
Posts: 32
Default Sound / Beep function from within VB or Excel VBA

I would like to output a sound with specific frequency and amplitude
through the pc soundcard (like the 'sound' function in QB).
(It appears that both VB and ExcelVBA have only a very simple 'Beep'
command.)
Control of channel (left and right) would be nice too.
Thanks,
TomCee

  #2   Report Post  
Posted to microsoft.public.excel.programming,it.comp.lang.visual-basic
external usenet poster
 
Posts: 638
Default Sound / Beep function from within VB or Excel VBA

Have a look here.
http://www.exceltip.com/st/Playing_s...Excel/461.html

tomcee wrote:
I would like to output a sound with specific frequency and amplitude
through the pc soundcard (like the 'sound' function in QB).
(It appears that both VB and ExcelVBA have only a very simple 'Beep'
command.)
Control of channel (left and right) would be nice too.
Thanks,
TomCee


  #3   Report Post  
Posted to microsoft.public.excel.programming,it.comp.lang.visual-basic
external usenet poster
 
Posts: 32
Default Sound / Beep function from within VB or Excel VBA

On Oct 16, 10:19 am, JW wrote:
Have a look here.http://www.exceltip.com/st/Playing_s...A_in_Microsoft...



tomcee wrote:
I would like to output a sound with specific frequency and amplitude
through the pc soundcard (like the 'sound' function in QB).
(It appears that both VB and ExcelVBA have only a very simple 'Beep'
command.)
Control of channel (left and right) would be nice too.
Thanks,
TomCee- Hide quoted text -


- Show quoted text -


Thanks for the tip, but that tip shows how to play .wav files.

I would like to specify the frequency and duration (like the 'sound'
command in QB), and have the system generate that tone through the
speakers.
Thanks,
TomCee

  #4   Report Post  
Posted to microsoft.public.excel.programming,it.comp.lang.visual-basic
external usenet poster
 
Posts: 1
Default Sound / Beep function from within VB or Excel VBA

Private Type tbeep
F As Long
D As Long
End Type

Private Declare Function Beep Lib "kernel32" (ByVal dwFreq As Long, ByVal
dwDuration As Long) As Long

dim B as tbeep

b.F = 200 ' Frequency interval from 37 to 10000
b.D = 100 ' Duration

Beep b.F, b.D

Fede

"tomcee" ha scritto nel messaggio
ups.com...
On Oct 16, 10:19 am, JW wrote:
Have a look

here.http://www.exceltip.com/st/Playing_s...A_in_Microsoft..
..



tomcee wrote:
I would like to output a sound with specific frequency and amplitude
through the pc soundcard (like the 'sound' function in QB).
(It appears that both VB and ExcelVBA have only a very simple 'Beep'
command.)
Control of channel (left and right) would be nice too.
Thanks,
TomCee- Hide quoted text -


- Show quoted text -


Thanks for the tip, but that tip shows how to play .wav files.

I would like to specify the frequency and duration (like the 'sound'
command in QB), and have the system generate that tone through the
speakers.
Thanks,
TomCee



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to add sound ( beep ) if cell content changes in live data Bhavana Excel Discussion (Misc queries) 1 August 28th 08 07:55 PM
Beep Change The Sound Bob Excel Discussion (Misc queries) 0 July 6th 06 11:56 PM
Beep or Make Sound after Calcing [email protected] Excel Programming 1 February 9th 05 12:53 AM
Alarm Sound Function Not Working_Any DDE Gurus?? joeshow[_4_] Excel Programming 1 March 5th 04 09:40 PM
How BEEP on internal speakers, not on sound-card? Michel[_3_] Excel Programming 4 October 15th 03 12:51 PM


All times are GMT +1. The time now is 10:31 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"