possible to make this plugin? ("auto draw wave")

Using Nyquist scripts in Audacity.
Post and download new plug-ins.
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
steve
Site Admin
Posts: 80679
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: possible to make this plugin? ("auto draw wave")

Post by steve » Fri Apr 04, 2014 9:51 am

Code: Select all

(setf a (extract 0 0.5 s))
(setf b (extract 0.5 1 s))
(extract 0 1 (seq b a))
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

N871
Posts: 96
Joined: Sat Mar 29, 2014 9:40 pm
Operating System: Please select

Re: possible to make this plugin? ("auto draw wave")

Post by N871 » Fri Apr 04, 2014 10:31 am

works like a charm thank you! very last question! if you resample a track to a higher resolution, and you resample back to the original, is there any loss of quality?
Thanks for all your help!

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

Re: possible to make this plugin? ("auto draw wave")

Post by steve » Fri Apr 04, 2014 10:54 am

N871 wrote:if you resample a track to a higher resolution, and you resample back to the original, is there any loss of quality?
Thanks for all your help!
Possibly, it depends how you do it, but in any case, not much.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

N871
Posts: 96
Joined: Sat Mar 29, 2014 9:40 pm
Operating System: Please select

Re: possible to make this plugin? ("auto draw wave")

Post by N871 » Sat Apr 05, 2014 11:56 pm

thanks, another "last" question if you don't mind :)

Is there a way in audacity to speed-shift multiple tracks at once to a same frequency? The change-percentage is different for all of them because they all have their own frequency...(chromatic samples)

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

Re: possible to make this plugin? ("auto draw wave")

Post by steve » Sun Apr 06, 2014 3:26 pm

N871 wrote:Is there a way in audacity to speed-shift multiple tracks at once to a same frequency?
If you want the code to detect the frequency and then calculate the amount of speed-shift to tune it to a specified frequency, that is difficult. The difficult part is to accurately detect the frequency, unless you already know something about the selected audio. For example, if you know that there are exactly 100 cycles of the waveform, then it is relatively easy to calculate the frequency. If it is just an arbitrary waveform of unknown frequency, then accurately determining the frequency is difficult.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

N871
Posts: 96
Joined: Sat Mar 29, 2014 9:40 pm
Operating System: Please select

Re: possible to make this plugin? ("auto draw wave")

Post by N871 » Sun Apr 06, 2014 6:25 pm

thank you for your reply, I can calculate the percentage for each track, just a lot of work to open the plugin window for each single track, but I finished it anyway.

The "find zero crossing point feature" is very practical..I almost don't dare to ask (you already helped me out a lot) but, would it be a lot of work to make a plugin
that does the same for a custom value (other than zero)? for example move the selection to the closest 0.257 points...best, Nils

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

Re: possible to make this plugin? ("auto draw wave")

Post by steve » Sun Apr 06, 2014 6:31 pm

N871 wrote:The "find zero crossing point feature" is very practical..I almost don't dare to ask (you already helped me out a lot) but, would it be a lot of work to make a plugin
that does the same for a custom value (other than zero)? for example move the selection to the closest 0.257 points...best, Nils
Nyquist effects only know about the audio that is passed to them, which is the "selected" audio. They have no idea about audio before or after the selection. The "find zero crossing" feature will search both forward and backward from the selection ends (both inside and outside of the selection) and look for the nearest zero crossing point, favouring positive going slopes. Nyquist can't "look outside of the selection".
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

N871
Posts: 96
Joined: Sat Mar 29, 2014 9:40 pm
Operating System: Please select

Re: possible to make this plugin? ("auto draw wave")

Post by N871 » Sun Apr 06, 2014 6:53 pm

but it can look inside the selection, right? In fact this is how I would need it to work..I don't care about the close points outside the selection.

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

Re: possible to make this plugin? ("auto draw wave")

Post by steve » Sun Apr 06, 2014 6:59 pm

Nyquist can find the first point in the selection where the waveform crosses any threshold that you specify, but it can't change the selection start/end point. Nyquist just receives a lump of audio (from the selection), processes it, and returns it to Audacity. Nyquist has no concept of tracks or selections, it only knows about the audio that is passed to it. So you could do "something" based on the point at which a specified level is first crossed, but you've not said what you want to do.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

N871
Posts: 96
Joined: Sat Mar 29, 2014 9:40 pm
Operating System: Please select

Re: possible to make this plugin? ("auto draw wave")

Post by N871 » Sun Apr 06, 2014 7:12 pm

I admire your patience with a newbie like myself :)

I would like the plugin to:
- silence all audio before the first "crossing point" in the selection
- silence all audio after the last "crossing point" in the selection

in other words, to trim the audio going from the first point to the second.
Last edited by N871 on Sun Apr 06, 2014 8:01 pm, edited 1 time in total.

Post Reply