PLUG-IN: ODD ECHO5

Using Nyquist scripts in Audacity.
Post and download new plug-ins.

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

PLUG-IN: ODD ECHO5

Permanent link to this post Posted by dondiego929 » Mon Jul 19, 2010 6:30 pm

<<deleted by user>>
Last edited by dondiego929 on Mon Sep 13, 2010 2:11 am, edited 1 time in total.
dondiego929
 
Posts: 54
Joined: Mon May 17, 2010 4:40 am
Operating System: Please select

Re: PLUG-IN: ODD ECHO5

Permanent link to this post Posted by steve » Fri Jul 23, 2010 12:56 pm

dondiego929 wrote:Learned some cool things on this one, like how to find the length of audio using SND-TIME.

but perhaps not such a good idea to use it in public plug-ins.
(snd-time sound)
Returns the start time of the sound. This will probably go away in a future version, so use snd-t0 instead.

http://www.audacity-forum.de/download/e ... l#index178

dondiego929 wrote:As for the coding style....

Audacity and Nyquist are free as in freedom. You are quite at liberty to do what you like with them (within the licensing terms of course). You could write your plug-ins backward if you wanted to :D My previous comments were with regard to making your plug-ins useful to others, not to restrict your enjoyment in creating them.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)
steve
Site Admin
 
Posts: 45932
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: PLUG-IN: ODD ECHO5

Permanent link to this post Posted by dondiego929 » Tue Jul 27, 2010 6:56 pm

<<deleted by user>>
Last edited by dondiego929 on Mon Sep 13, 2010 2:12 am, edited 1 time in total.
dondiego929
 
Posts: 54
Joined: Mon May 17, 2010 4:40 am
Operating System: Please select

Re: PLUG-IN: ODD ECHO5

Permanent link to this post Posted by steve » Wed Jul 28, 2010 12:56 am

A handy "big number" is NY:ALL
The default value of NY:ALL is 1000000000

Other than for "artistic" value, 44100.000000 is identical to 44100.0
but 44100.0 is not the same as 44100
(44100.0 is a floating point value, but 44100 is an integer).

So
Code: Select all
 (SETQ NoS (SND-LENGTH SMP 99999999999))
(SETQ SL (/ NoS 44100.000000))

may be written as
Code: Select all
(setq SL (/ (snd-length SMP NY:ALL) 44100.0))

which in turn is the same as
Code: Select all
(setq SL (/ LEN *sound-srate*))

or
Code: Select all
(setq SL (get-duration 1))


There are no plans to deprecate SND-LENGTH
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)
steve
Site Admin
 
Posts: 45932
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu


Return to Nyquist



Who is online

Users browsing this forum: No registered users and 4 guests