Page 1 of 1

Play sound with different pitches

Posted: Wed Mar 18, 2015 9:54 pm
by buchacho
I remember in HyperCard you could do something like "play boing" with other parameters to change pitch and note duration. Is there any equivalent way of doing this in LiveCode? So far I have a stack that can play sounds in a folder I specify, but I would like to also play the sounds at different pitches and duration like I could in HyperCard.

Re: Play sound with different pitches

Posted: Thu Mar 19, 2015 4:07 pm
by asayd
Sadly, that's one feature that didn't make the jump from HyperCard to LiveCode. Years ago there was a 3rd party project called something like ShakoBox that attempted to emulate that behavior using MIDI (I think), but I don't know what ever became of it.

It may be that it will become possible to implement such a feature as a widget in LC 8 by tapping into some OS call, but that'll be a job for someone smarter than me. :)

Devin

Re: Play sound with different pitches

Posted: Thu Mar 19, 2015 5:22 pm
by dunbarx
Along the lines that Devin is talking about, I miss the old HC "dial" command, which generated DTMF tones directly, and if you held your phone handset up to the computer speakers, it would call a number. I used this feature with external gadgets to dial numbers through the speaker output port, so I did not have to actually hold the handset that way.

I guess this can be done with widgets as well...

Craig Newman

Re: Play sound with different pitches

Posted: Thu Mar 19, 2015 6:19 pm
by Mark
Hi,

i did that too. The sounds were not generated, however, They were stored as snd resources and they could play immediately because they were already loaded into memory.

Kind regards,

Mark

Re: Play sound with different pitches

Posted: Thu Mar 19, 2015 7:18 pm
by buchacho
That's too bad!! I know a lot of old stacks use this feature, including tone dial, so that would affect conversions to LiveCode. Can this please be added as a feature request?

Re: Play sound with different pitches

Posted: Thu Mar 19, 2015 7:26 pm
by bn
Hi buchacho,

check out Thierry Douez's sunnYmidi

http://sunny-tdz.com

He has several versions on his site. Works as an external for Mac.

Kind regards
Bernd

Re: Play sound with different pitches

Posted: Fri Mar 20, 2015 5:45 pm
by jacque
The dial tones are easy. Export them from HC or see if you can find them on the net somewhere. After that it's just a matter of a short script that plays the sounds in response to field text. That's how HC did it too.

Re: Play sound with different pitches

Posted: Fri Mar 20, 2015 7:43 pm
by Mark
When I exported the snd resources and converted them to wav, the phone system didn't recognise them anymore. I suspect it had something to do with a delay or a small distortion caused by LiveCode. It could still be worth trying on the modern, much faster computers of today, since I did this with a 350Mhz iMac at the time.

Mark

Re: Play sound with different pitches

Posted: Sat Mar 21, 2015 2:01 am
by jacque
I haven't tried these, but they're available: https://evolution.voxeo.com/library/aud ... /index.jsp

Re: Play sound with different pitches

Posted: Thu Mar 26, 2015 4:31 pm
by erikhans08
How about a simple drumbeat that you could use like a metronome with an animation. This is for dancers following an animation to learn their positions.