tone generator

Need help with a script? This is the place to discuss how to get your code running!

tone generator

Postby Ken Norris on Thu Jan 28, 2010 5:20 pm

Howdy,

Has anyone developed a project that delivers a continuous tone ... and of variable frequencies (no sense reinventing the wheel)?
All the best,
Ken N.
http://sonicbridge.us/
User avatar
Ken Norris
 
Posts: 235
Joined: Mon Nov 03, 2008 7:27 pm

Re: tone generator

Postby marksch on Fri Jan 29, 2010 2:25 am

Ken,

I have the source (not my own) of a MikMod external for Revolution, which does this. Someone might be able to use this to create a similar external for SuperCard.

Best,

Mark
Economy-x-Talk is always looking for new projects. Contact me for a quote.

Make your URL's short with http://qurl.tk

MacBook (Intel, 2.16Ghz, 2GB memory) | Mac OS X 10.5.8
User avatar
marksch
 
Posts: 57
Joined: Fri Aug 22, 2008 4:51 am

Re: tone generator

Postby Ken Norris on Fri Jan 29, 2010 3:44 pm

marksch wrote:I have the source (not my own) of a MikMod external for Revolution, which does this. Someone might be able to use this to create a similar external for SuperCard.



Hmm ... I wonder: Why would we need an external? :? I'd think Quicktime could do it. But I haven't succeeded in getting it to do it with SC.

If anyone is interested, I want to use it as audio source for fine tuning a transmitter to resonance ... very tedious work, might take a few days. I want to retain modulation at an even level and frequency ... the fewer introduction of variables the better at this stage.
User avatar
Ken Norris
 
Posts: 235
Joined: Mon Nov 03, 2008 7:27 pm

Re: tone generator

Postby marksch on Fri Jan 29, 2010 5:16 pm

Hi Ken,

Maybe you need to explain what your definition of a tone generator is.

Best,

Mark
Economy-x-Talk is always looking for new projects. Contact me for a quote.

Make your URL's short with http://qurl.tk

MacBook (Intel, 2.16Ghz, 2GB memory) | Mac OS X 10.5.8
User avatar
marksch
 
Posts: 57
Joined: Fri Aug 22, 2008 4:51 am

Re: tone generator

Postby Ken Norris on Mon Feb 01, 2010 3:15 pm

It'a OK, I found one and it works quite well:
http://www.nch.com.au/tonegen/

I would have liked to make a SC version I can integrate with other stuff. For example, I could tell it to feed my internet station with data on the frequency for testing, use it to test default connections to the network for EAS (Emergency Alert System) information, etc.
http://www.fcc.gov/pshs/services/eas/
All the best,
Ken N.
http://sonicbridge.us/
User avatar
Ken Norris
 
Posts: 235
Joined: Mon Nov 03, 2008 7:27 pm

Re: tone generator

Postby ccrreutz on Fri Apr 30, 2010 7:40 am

I also need a tone generator (tone means something I can hear)

SC 3.x almost had one with the script word "play". Any ideas?
ccrreutz
 
Posts: 1
Joined: Fri Apr 30, 2010 7:12 am

Re: tone generator

Postby supercardus on Fri Apr 30, 2010 8:31 am

To the best of my knowledge QuickTime has no single sine wave oscillator, but it does have a music synthesizer built up of the 128 general midi instrument voices. You can call these voices with the play instrument command but you are limited in length to a whole note.

Code: Select all
play instrument 1 "c3w" -- where 1=instrument number; c=note; 3=octave, w=note duration (whole note)

See the play instrument entry in the Language Guide for more info.
User avatar
supercardus
Site Admin
 
Posts: 503
Joined: Sat Jul 05, 2008 1:37 pm
Location: Northern Sierra Nevada


Return to Scripting in SuperTalk

Who is online

Users browsing this forum: haden_young, RandallReetz and 1 guest