Re: [Audacity-nyquist] snd-average does not work
A free multi-track audio editor and recorder
Brought to you by:
aosiniao
From: Alex S. B. <ale...@al...> - 2006-01-10 05:50:56
|
Your first one works fine for me. Be aware that it returns a result that is a sound that is a different sample rate than the original sound (fewer samples). Audacity will display it as if it was at the same sample rate as the original, so the time will be MUCH shorter. The second one should fail because the extra parenthesis at the beginning will cause a syntax error in lisp. The third one will cause a syntax error also, because of the extra parenthesis around the snd-avg function. Even if you fix the syntax, the third one only defines a function; it does not execute it. You would need a second line to execute it, something like "(avg-snd s)". Focus on your first try; it should work. If it fails, be sure to try clicking the "Debug" button and writing down what you see. If there are any error messages, they might help you. If you post them here, we may be able to help you, too! --Alex Quoting "Faisal ..." <fmo...@gm...>: > Hello Listers > > I am trying to average sound samples with the function snd-average but it > seems that it's not working. Is it my codes or some bugs in Nyquist or > Audacity. I am trying to amply it to the selected sound in Audacity. > > Your help is very most welcome indeed. > > Here are the different codes I tried > > FIRST ONE:::::::::: > ;nyquist plug-in > ;version 1 > ;type process > ;name "sound averager" > ;action "sound averager" > ;info "By Faisal Mooraby" > > > (snd-avg s 213 213 OP-AVERAGE) > > SECOND ONE :::::::: > ;nyquist plug-in > ;version 1 > ;type process > ;name "sound averager" > ;action "sound averager" > ;info "By Faisal Mooraby" > > ((snd-avg s 213 213) > > THIRD ONE :::::::::::: > ;nyquist plug-in > ;version 1 > ;type process > ;name "sound averager" > ;action "sound averager" > ;info "By Faisal Mooraby" > > (defun avg-snd (s) ((snd-avg s 213 213 OP-AVERAGE))) > > > > ------------------------------------------ > Faisal Mooraby > ---------------------- Alex S. Brown, PMP ale...@al... http://www.alexsbrown.com/ |