Re: [Bluemusic-users] Adding comments in scores generated with Python
Brought to you by:
kunstmusik
From: Steven Yi <ste...@gm...> - 2009-05-10 23:47:55
|
Hi Mark, There currently isn't a way to get comments into a generated CSD from blue. The reason for this is that blue will parse all the notes generated from a SoundObject and create Note objects so that it can further operations like scaling, applying noteProcessors, etc. Ultimately, the CSD is to blue like a MIDI file is to Cubase. All of the information required for performance is there, but none of the information is there in the MIDI that is captured in the environment for Cubase. As for the value of a variable, I would normally just use "print variableName" and look at the console output. This is usually enough for debugging for myself. You could print the entire score to the console or to a file, or use the infoTab method from ScriptingUtils like this: from ScriptingUtils import * ... testData = "xxx" ... infoTabs(testData, "tab name") (ScriptingUtils comes with blue). As for seeing structure of a piece, I guess I'm not quite understanding using the generated output versus the visual score timeline for organizing the score. Could you elaborate on your usage a bit so I can understand better? Thanks! steven On Sat, May 9, 2009 at 10:50 PM, Mark Van Peteghem <Mar...@te...> wrote: > Hi, > > A thing that has been annoying me for some time in Blue, is that Python > objects seem to remove empty lines and lines starting with a semicolon. > I would find it useful if this didn't happen, because empty lines would > help to see the structure in my scores, and one could use lines starting > with a semicolon to display the value of variables in the Python code > that are not used directly in the score, or to just add some text e.g. > to show where a section of a new type begins. > > AFAIK there is no use to remove these lines. But I suppose this happens > anyway because Blue has to process the generated score. Would it be > possible anyway to preserve these lines? > > And does anybody know of a workaround to display the value of a > variable? I sometimes use an i-statement with an amplitude of 0 so I can > put the value in the other p-fields, but if the score is long this is > hard to find. > > > Greetings, > > -- > Mark > _________________________________________ > When you get lemons, you make lemonade. > When you get hardware, you make software. > > > ------------------------------------------------------------------------------ > The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your > production scanning environment may not be a perfect world - but thanks to > Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 > Series Scanner you'll get full speed at 300 dpi even with all image > processing features enabled. http://p.sf.net/sfu/kodak-com > _______________________________________________ > Bluemusic-users mailing list > Blu...@li... > https://lists.sourceforge.net/lists/listinfo/bluemusic-users > |