The align.py script from the score parsing Python module I'm developing will do this. The following uses the -i flag to ensure there is one space between the i statement and the instrument identifier.
$ cat foo.sco | ./align.py -i1
and back
$ cat foo.sco | ./align.py -i0
Here's the module:
http://www.thumbuki.com/csound/files/mailinglist/score_v0.0.1a.zipHere's the manual.
http://www.thumbuki.com/csound/files/mailinglist/score0.0.1a_docs/index.htmlUnfortunately, if you want it to preserve the rest of the score alignment, align.py won't work. However, I do have plans to create a function that does exactly what you are asking for. I'll also make it a point make changes to align.py to preserve the original score alignment.
This project is only two weeks old, so things are still a bit chaotic, so please bare with me. In the meantime, I'll bump this up on my priority list.
Best,
Jake
edexter-2 wrote:
This looks like a very usefull script that should make it easier to get new features into csound frontends
I would like to see a script that converts
i 1
to
i1
and back again. This would make it easier for front end programs.
I would also suggest that the python like nimrod programming language may be helpful because thier is no guarentee that python won't change over time.
_________________________________________________________________
Windows Liveā¢: Keep your life in sync.
http://windowslive.com/explore?ocid=TXT_TAGLM_WL_BR_life_in_synch_062009Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"