Help in generating sound

Visuals, audio, animation. Blended, not stirred. If LiveCode is part of your rich media production toolbox, this is the forum for you.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
pedja
Posts: 3
Joined: Tue Oct 30, 2012 8:28 pm

Help in generating sound

Post by pedja » Tue Oct 30, 2012 8:33 pm

Hi all, this is my first post. I have recently switched to LiveCode and still warming up and can not find any explanation how i can generate sounds in LiveCode. I found explanations about playing audio files, but nothing about generating tone of certain frequency. Any help on this? Thanks!

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Help in generating sound

Post by Mark » Tue Oct 30, 2012 11:20 pm

Hi,

You can't do that, apart from the "beep" command.

However, you might use an external (or make one in C++ or a similar language), which can generate sounds at a particular frequency. I have an external that plays MOD files, which was created by Andre, IIRC.

Moreover, this was published on the mailing list recently. Maybe it is something for you:
You can download for free my ABC external player at:
http://sunny-tdz.com/dwn

It comes with a LiveCode stack and some ABC tunes samples.

Available only for mac users.

You don't know what ABC is about ?
Then read this article: SunnYabc: Playing ABC tunes with LiveCode:
http://sunny-tdz.com/art-1003

For technical lovers, the external is written in Flex/Bison.
Kind regards,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

pedja
Posts: 3
Joined: Tue Oct 30, 2012 8:28 pm

Re: Help in generating sound

Post by pedja » Wed Oct 31, 2012 1:07 am

Hi Mark, thanks for the info! I guess I will have to go with externals then.

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7390
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Help in generating sound

Post by jacque » Wed Oct 31, 2012 5:42 pm

SunnYmidi might be useful, depending on what you need.http://sunny-tdz.com/art-1000

This uses the midi intrument library and allows you to generate notes at standard frequencies.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

pedja
Posts: 3
Joined: Tue Oct 30, 2012 8:28 pm

Re: Help in generating sound

Post by pedja » Sat Nov 17, 2012 2:56 am

Hey, just saw your post, thanks Jack!

Post Reply