1. RE: musical notes

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

new topic     » topic index » view message » categorize

2. RE: musical notes

There is also an awesome music-making free program called Jeskola Buzz, 
which can also be used to create wav files.

> ... but you can get FrutyLoopS from 
> http://www.fruityloops.com/English/frames.htmlto make your wav files.

~rywilly~

new topic     » goto parent     » topic index » view message » categorize

3. RE: musical notes

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.

It wasn't all that good. I used GIST to program the sound effects in the 
"Instant Graphics!" desk accessory. Some called it IGS it was used on 
Atari ST BBS systems in the 1980's for online graphics before HTML, gee 
I don't miss the 2400 baud modems! :)  Still that was warp speed 
compared to the 300 baud modem I had when I first went online.

 
>   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.
 
>        Jerry Story
> 
> 

There's a file in the archieve here for EXW that will let you play a 
pitch using the PC speaker, you could add duration easily but I don't 
think the volume can be controlled.  The file is called soundwin.zip
The 2nd option would be to program the sound blaster directly. Maybe use 
SBFMDRV.COM and program the FM Voices.  Look for a Abacus book called 
"The Sound Blaster Book" by Axel Stolz ISBN 1-55755-164-2

...Larry Mears

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu