RE: musical notes
- Posted by Ray Smith <smithr at ix.net.au> Oct 27, 2001
- 372 views
Hi Jerry, As far as I know (and I'm pretty sure I'm right) the Win32 API doesn't have a function that allows to play a sound with a specified pitch and duration. I "think" an API was added to one of the more recent MS OS's to do this ... but I can't remember which version(s) this was. Ray Smith jstory at freenet.edmonton.ab.ca wrote: > On the Atari ST way back in 1980s in GFA BASIC as I recall there was > something called "sound()" or something like that. And it took four > arguments: pitch, volume, duration, quality. The Atari ST had a special > chip for sound that operated independently of the main chip. It was > easy > to make original "music" on the Atari ST. > > With DOS32 Euphoria we have "sound()" but with only pitch. > With Win32 Euphoria, with win32lib.ew, we have playSound(), but it plays > a WAV file. > > Is there any way with Win32 Euphoria to do what I used to do on the > Atari ST? That is: sound(pitch,volume,duration,quality) > > One way might be to have a bunch of WAV files, each representing a > musical note and a specific instrument. They could be named by > instrument > and frequency. For example "piano320.wav". Each one would be the > duration of the shortest note in music. > > Where can I gitta holduv these wav files? Or is there a better idea? > > > Jerry Story > > Ray Smith http;//www.geocities.com/ray_223