Nyquist Plugin Modification Needed

This section is now closed.
Forum rules
Audacity 1.3.x is now obsolete. Please use the current Audacity 2.1.x version.

The final version of Audacity for Windows 98/ME is the legacy 2.0.0 version.
Locked
ultimate007
Posts: 1
Joined: Thu Sep 10, 2009 12:33 pm
Operating System: Please select

Nyquist Plugin Modification Needed

Post by ultimate007 » Thu Sep 10, 2009 12:56 pm

I need modification for this Nyquist Plugin - SQ1 Sequencer Generator, Please I want to generate a random frequency oscillation (like 440 hz for 1 second, then 880 for 1 second, then 900 for 1 second)

The duration of one oscillation is fixed, but the carrier frequency must be random.

Can anyone please modify SQ1 sequencer Generator.

Thank you,

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

Re: Nyquist Plugin Modification Needed

Post by steve » Fri Sep 11, 2009 2:29 pm

Could you post a link to the SQ1 plug-in and I'll have a look to see how difficult it is to modify.
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: Nyquist Plugin Modification Needed

Post by billw58 » Sun Sep 13, 2009 10:03 pm

stevethefiddle wrote:Could you post a link to the SQ1 plug-in and I'll have a look to see how difficult it is to modify.
It's here:
http://audacityteam.org/download/nyquistplugins

14th one down the list.

-- Bill

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

Re: Nyquist Plugin Modification Needed

Post by steve » Sun Sep 13, 2009 10:31 pm

Which oscillator is it that you want to make random? Is it the "center" parameter?
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

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

Re: Nyquist Plugin Modification Needed

Post by steve » Sun Oct 18, 2009 9:09 pm

ultimate007 wrote:I modified your random tone generator to make it to my needs. I need a few more modification in the nyquist plugin .... I want a few modifications....

What i want
- Tones should play list this
1st - (random) eg - 600 hz
2nd - (1st tone + fixed Freqeuency) - Eg - 600+25 = 625 hz
3rd - (random) - 398 hz
4th - (random + fixed fq.) eg - 398 +25 hz
and so on...
(The plugin modification i made makes only random tones)
ultimate007 wrote:each tone should be of same length and loudness. tone envelope is full sustain, no attack or decay.
25 hz is fixed frequency input manually in the plugin.
...
random tone like this
500
525
600
625
780
805
Every even frequency is (+25) the previous frequency. odd frequency is random
ultimate007 wrote:Ok there are some changes in my research, Now i want the 'start' time to be like increasing by twice after every tone, for eg
first start time - 1 s, 2s, 4s, 8s, and so on.
Please just make this little modification.
OK here it is.
I've put comments into the code to make it easier for you to modify further should you wish to do so.
To use the plug-in, extract the attached file into your Audacity plug-ins folder.
When you restart Audacity it will appear in the Generate menu as "Random Tone Plus..."

I've also thrown in a couple of extra features which you may find useful.
The controls are as follows:

"Number of tones" > The total number of tones produced (2 to 1000, default 4)
"Amplitude" > The amplitude of the tones (0 to 1, default 0.8)
"Length of first tone" > The length of the first tone (0.01 to 10 seconds, default 0.5 seconds)
* "Multiply previous frequency by" (Extra feature) > After each random frequency, the next tone will be that frequency multiplied by this amount (x0.1 to x4, default x1)
"Add to previous frequency" The amount that is added to each random frequency to produce the next tone (-1000Hz to +1000 Hz, default 0Hz)
"Multiply time by" > Multiply start time by this amount (x0.1 to x4, default x1)
* "Add to previous time" (Extra Feature) > This amount is added to each start time (-10 second to +10 seconds, default 0 seconds)
"Lowest frequency" > The lowest frequency that will be chosen for the random note (20Hz to 2kHz, default 220Hz
"Highest frequency" > The highest frequency that will be chosen for the random note (200Hz to 12kHz, default 802Hz)

For both the frequency and the time modifiers, the multiplication is done before the addition - for example:
If the random frequency is 400Hz,
and "Multiply previous frequency by" = 2.0
and "Add to previous frequency" = 25 Hz
then the next tone will have a frequency of (400 x 2)+25 = 825Hz

If you do not wish to use "Multiply previous frequency by", simply leave it at 1.0
Similarly, if you do not want to use "Add to previous time", then leave it at zero.
Attachments
randtoneplus.ny.zip
(2.03 KiB) Downloaded 54 times
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Locked