[Csnd] orchestra macro/#include bug
Date | 2012-03-13 14:37 |
From | Julien Claassen |
Subject | [Csnd] orchestra macro/#include bug |
Hello everyone1 I notcied an oddity, which gave me quite a headache. In my CSD file csound didn't accept an #include statement, because it was tabbed. I write my files always with indentation, so I have a better overview, sothe file looked something like this: |
Date | 2012-03-13 14:57 |
From | Tito Latini |
Subject | Re: [Csnd] orchestra macro/#include bug |
Attachments | None |
Date | 2012-03-13 15:16 |
From | Julien Claassen |
Subject | Re: [Csnd] orchestra macro/#include bug |
Attachments | inc.csd def.csd |
Hi Tito! OK, attached you find inc.csd, which will work fine, if you delete the tabs in front of the #include. then you will find def.csd - whch might be faulty, but should still print a last newline, before existing, so the "" isn't on the same line as the new prompt. Unfortunately, I can't remember what else I did, which also resulted in missing newline at the end of csound's output. Perhaps try to remove the quotes from "DONE". Kind regards Julien =-=-=-=-=-=-=-=-=-=-=-=- Such Is Life: Very Intensely Adorable; Free And Jubilating Amazement Revels, Dancing On - FLOWERS! ====== Find my music at ====== http://juliencoder.de/nama/music.html ..................................... "If you live to be 100, I hope I live to be 100 minus 1 day, so I never have to live without you." (Winnie the Pooh) |
Date | 2012-03-13 15:23 |
From | Tito Latini |
Subject | Re: [Csnd] orchestra macro/#include bug |
Attachments | None |
Date | 2012-03-13 15:33 |
From | Julien Claassen |
Subject | Re: [Csnd] orchestra macro/#include bug |
Hi Tito! As I said, the define example might be my error, still it would be - a very small - but a fix to make sure, that csound prints the last newline. It might be pedantic, but although I work in textmode only, I'm sometimes quite the one for the finger-candy. :-) Warm regards Julien =-=-=-=-=-=-=-=-=-=-=-=- Such Is Life: Very Intensely Adorable; Free And Jubilating Amazement Revels, Dancing On - FLOWERS! ====== Find my music at ====== http://juliencoder.de/nama/music.html ..................................... "If you live to be 100, I hope I live to be 100 minus 1 day, so I never have to live without you." (Winnie the Pooh) |
Date | 2012-03-13 15:34 |
From | jpff@cs.bath.ac.uk |
Subject | Re: [Csnd] orchestra macro/#include bug |
> Ok, one is your error > > #define DONE ## > > and not > > #define DONE > > The other is a bug and simple to fix (minutes) > No not a bug -- that was the original design. It could be changed but not a bug. |
Date | 2012-03-13 15:37 |
From | Tito Latini |
Subject | Re: [Csnd] orchestra macro/#include bug |
Attachments | None |
Date | 2012-03-13 15:50 |
From | jpff@cs.bath.ac.uk |
Subject | Re: [Csnd] orchestra macro/#include bug |
>> No not a bug -- that was the original design. It could be changed but >> not >> a bug. > > John, I have a fix. Apply ? > > presumablr (WHITESPACE}*#include ? OK by me |
Date | 2012-03-13 15:52 |
From | Tito Latini |
Subject | Re: [Csnd] orchestra macro/#include bug |
Attachments | None |
Date | 2012-03-13 16:18 |
From | Tito Latini |
Subject | Re: [Csnd] orchestra macro/#include bug |
Attachments | None |
Date | 2012-03-13 17:03 |
From | Julien Claassen |
Subject | Re: [Csnd] orchestra macro/#include bug |
Hi Tito! No problem about the #ifdef group. I wasn't really wanting to use them, I just tried to see, if it was a problem, that just applied to #include, or if it was a problem applying to all the #macros in the orchestra. But thanks for the correction, I may fid myself wanting to use it sooner or later. These things are there for good reason. :-) Thanks again for the "fixes" or changes. It is all very much appreciated! Warmly yours Julien =-=-=-=-=-=-=-=-=-=-=-=- Such Is Life: Very Intensely Adorable; Free And Jubilating Amazement Revels, Dancing On - FLOWERS! ====== Find my music at ====== http://juliencoder.de/nama/music.html ..................................... "If you live to be 100, I hope I live to be 100 minus 1 day, so I never have to live without you." (Winnie the Pooh) |