New plug-in: Tone Generator

Share your Audacity/Nyquist plug-ins here, or test drive the latest plug-ins submitted by Audacity users.

After testing a plug-in from this forum, please post feedback for the plug-in author.
steve
Site Admin
Posts: 81653
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

New plug-in: Tone Generator

Post by steve » Thu Oct 28, 2010 3:33 pm

Similar to the normal Audacity "Tone..." generator, but with extended capabilities.
This plug-in is likely to be of more interest to anyone that is experimenting with Nyquist code than as a production" tool.

Includes presets for generating Sine waves, Triangle waves, Sawtooth waves, Square waves, White Noise and Silence.
May also be used to generate custom waveforms based on snippets of Nyquist code.
The Help menu includes examples of Nyquist code for generating custom tones.

Could someone check on Mac/Windows if the example code snippets can be copied/pasted from the Help screens into the plug-in.
Thanks.

[Update Aug 29 2012: Corrected a few typos in the help screens and corrected some bugs in the error checking code.]
Attachments
tone-generator.ny
(5.61 KiB) Downloaded 656 times
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

billw58
Forum Staff
Posts: 5602
Joined: Wed Aug 12, 2009 2:10 am
Operating System: macOS 10.15 Catalina or later

Re: New plug-in: Tone Generator

Post by billw58 » Thu Oct 28, 2010 6:36 pm

stevethefiddle wrote: Could someone check on Mac/Windows if the example code snippets can be copied/pasted from the Help screens into the plug-in.
Can't be done on Mac. Perhaps these will need to be in a separate code snippets text file?

-- Bill

billw58
Forum Staff
Posts: 5602
Joined: Wed Aug 12, 2009 2:10 am
Operating System: macOS 10.15 Catalina or later

Re: New plug-in: Tone Generator

Post by billw58 » Thu Oct 28, 2010 6:40 pm

A couple of other comments.

1) "Cutom Oscillator"? :o

2) Creates a track even if you choose to view help, then you're left with an empty track.

-- Bill

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

Re: New plug-in: Tone Generator

Post by steve » Thu Oct 28, 2010 7:18 pm

billw58 wrote:"Cutom Oscillator"?
Where? Oh yes - updated.
billw58 wrote:Creates a track even if you choose to view help, then you're left with an empty track.
Unfortunately that can't currently be avoided.
Personally I'd like to be able to display a help file and keep the plug-in open, then the plug-in could be run, using the created track.
billw58 wrote:Can't be done on Mac. Perhaps these will need to be in a separate code snippets text file?
That's a shame - Is the problem with copying the text rather than pasting the text?

(Thought - I'd be happy to also include user-contributed snippets on an additional help page).

Thanks for testing.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

billw58
Forum Staff
Posts: 5602
Joined: Wed Aug 12, 2009 2:10 am
Operating System: macOS 10.15 Catalina or later

Re: New plug-in: Tone Generator

Post by billw58 » Thu Oct 28, 2010 8:34 pm

stevethefiddle wrote:
billw58 wrote:Can't be done on Mac. Perhaps these will need to be in a separate code snippets text file?
That's a shame - Is the problem with copying the text rather than pasting the text?
(Thought - I'd be happy to also include user-contributed snippets on an additional help page).
Can't copy text from the help window.

-- Bill

Irish
Forum Crew
Posts: 550
Joined: Sat Sep 05, 2009 9:25 pm
Operating System: Please select

Re: New plug-in: Tone Generator

Post by Irish » Fri Oct 29, 2010 1:15 am

It's the same on Windows - can't copy from the Help window, but ...
what about putting the examples in the Debug window to copy and paste?
There's not a lot of space, and you would have quotation marks around them, but it would be something.

POL

Irish
Forum Crew
Posts: 550
Joined: Sat Sep 05, 2009 9:25 pm
Operating System: Please select

Re: New plug-in: Tone Generator

Post by Irish » Fri Oct 29, 2010 1:27 am

Just a couple of comments:

1. Custom Oscilators :o

2. The Debug window appears every time the plug-in is run, irrespective of whether Debug is clicked or not. Is this intentional?

POL

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

Re: New plug-in: Tone Generator

Post by steve » Fri Oct 29, 2010 1:42 am

Irish wrote:Custom Oscilators
Oh poo - I never said I could spell. (updated)
Irish wrote:The Debug window appears every time the plug-in is run, irrespective of whether Debug is clicked or not. Is this intentional?
No, not intentional, I think that may be a new bug in Audacity.
Once a plug-in has been run with debug it seems that it will run as debug each time until Audacity is restarted.
It's not specific to this plug-in - it's all Nyquist plug-ins. What do you think - bug or feature?
Irish wrote:It's the same on Windows - can't copy from the Help window, but ...
what about putting the examples in the Debug window to copy and paste?
I think that rather than do a dirty hack, I'll just include a text file to cater for inferior operating systems ;)
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Irish
Forum Crew
Posts: 550
Joined: Sat Sep 05, 2009 9:25 pm
Operating System: Please select

Re: New plug-in: Tone Generator

Post by Irish » Fri Oct 29, 2010 2:02 am

stevethefiddle wrote:Once a plug-in has been run with debug it seems that it will run as debug each time until Audacity is restarted.
Strange how I never noticed that until now!
I'd call it a bug. I don't want to have to click to get rid of the Debug window unless I looked for Debug output when running the plug-in.

POL

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

Re: New plug-in: Tone Generator

Post by steve » Fri Oct 29, 2010 2:30 am

Irish wrote: Strange how I never noticed that until now!
I think it's only 1.3.13
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Post Reply