Re: [Audacity-nyquist] label track and lisp
A free multi-track audio editor and recorder
Brought to you by:
aosiniao
From: George J. <geo...@gm...> - 2008-01-18 02:00:14
|
Thanks Guys (edgar I assumed you be asleep) Now I get some output at least - three little boxes with a comma in them. Don't know where the number is or why it is three boxes yet. I'll take the advice and just work in nyquist. I've had the ide running in the past, and I edit using notepad2 which does parenthesis matching. I'm running winxp but can boot into linux if it is any advantage - I've never used linux for audio stuff so have no experience there. Geore On 1/18/08, edg...@we... <edg...@we...> wrote: > > This way it works (from the Audacity Nyquist Prompt): > > (setq label-list nil) > (setq a 1) > (while (<=3D a 3) > (setq a (+ 1 a)) > (setf label-list (cons (list a ",") label-list))) > label-list > > There were two paren errors, a paren too much after the "," and > therefore one too less after the 'label-list' at the end of the same line= . > > As Steven wrote: the most important thing is an editor that can > match parens, otherwise you'll get nuts with Lisp. > > I must not necessarily be Emacs (what for newbies if a bit too big > in my opinion). If you write on what OS you work I probably can > suggest others. > > The Editor in Roger's Nyquist Java IDE for example runs on every > System Java runs and is much easier to learn than Emacs. > > - edgar > > > > > -----Urspr=FCngliche Nachricht----- > > Von: Discussion of developing Nyquist plug-ins for Audacity < > aud...@li...> > > Gesendet: 18.01.08 00:19:58 > > An: "Discussion of developing Nyquist plug-ins for Audacity" < > aud...@li...> > > Betreff: Re: [Audacity-nyquist] label track and lisp > > Hi Edgar, > > > > Thanks for responding. I understand your code but can't see what I'm > doing wrong. Here is a simple routing that should just return a list of > integers separated by commas. Audacity says "Audacity returned 1". Can = you > spot the problem? I only understand a little German but I've got a speak= er > in the house who might help me later. > > > > > > Thanks again. Here is the code to return a list. > > > > > > ;nyquist plug-in > > ;version 1 > > ;type analyze > > ;name "test" > > ;action "just return some numbers" > > ; > > > ;------------------------------------------------------------------------= ------ > > > > ;do nothing with audio > > (setq s0 (aref s 0)) > > > > (setq label-list nil) > > (setq a 1) > > (while (<=3D a 3) > > (setq a (+ 1 a)) > > (setf label-list (cons (list a ",")) label-list) > > ) > > label-list > > > > > > > > > > On Jan 18, 2008 4:20 AM, <edg...@we...> wrote: > > How to create and return a label-list with Nyquist in Audacity > > > > The list must have a format of: > > > > ((FLONUM STRING) (FLONUM STRING) ...) > > > > Every (FLONUM STRING) pair creates a label. > > > > FLONUM is the label in seconds from the beginning of the Audacity > selection. > > > > > > STRING is the text that shall appear in the label's text box. > > > > > > > > > > ----------------------------------------------------------------- > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > > ----------------------------------------------------------------- > > _______________________________________________ > > Audacity-nyquist mailing list > > Aud...@li... > > https://lists.sourceforge.net/lists/listinfo/audacity-nyquist > > > > -- > The author of this email does not necessarily endorse the > following advertisements, which are the sole responsibility > of the advertiser: > > ________________________________________________________ > Bis 50 MB Dateianh=E4nge? Kein Problem! > http://www.digitaledienste.web.de/freemail/club/lp/?lp=3D7 > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Audacity-nyquist mailing list > Aud...@li... > https://lists.sourceforge.net/lists/listinfo/audacity-nyquist > |