Link Excel to Audacity to control its tone generator?

Effects, Recipes, Interfacing with other software, etc.
Forum rules
If you require help using Audacity, please post on the forum board relevant to your operating system:
Windows
Mac OS X
GNU/Linux and Unix-like
Post Reply
imon
Posts: 1
Joined: Mon Aug 17, 2009 2:39 am
Operating System: Please select

Link Excel to Audacity to control its tone generator?

Post by imon » Mon Aug 17, 2009 2:59 am

I wish to control a tone generator from a cell in an Excel spreadsheet, so that the audio frequency output changes as the spreadsheet cell value changes. I also want to play the tone in real time. Would I be right in thinking that this cannot be done in Audacity because you must first create a track before you can play it? I know that Excel has the ability to link a cell to another application using its DDE (dynamic data exchange) but I do not have the ability to write code. ANy suggestions would be welcome.

Thanks

Ian

steve
Site Admin
Posts: 80752
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Link Excel to Audacity to control its tone generator?

Post by steve » Mon Aug 17, 2009 8:35 am

Audacity does not do anything in real time.
imon wrote:but I do not have the ability to write code.
Want to learn?

"Nyquist" is an easy scripting language built into Audacity.

Install Audacity 1.3.8, and check that it is working.
Create a track and select about 1 second of the (empty) track.

Open the "Nyquist Prompt" from the Effects Menu.
Enter the following code into the Nyquist Prompt box:

Code: Select all

(play (osc 60 2.0))
Press "OK".

See here for more information: http://audacityteam.org/help/nyquist
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Post Reply