« Return to Thread: Re: Score Alignment Utility
Date: Fri, 26 Jun 2009 14:21:46 -0700 (PDT)From: Jacob Joaquin <jacobjoaquin@...>Subject: [Csnd] Score Alignment UtilityI'm not a fan of typing down-left-space over and over after changing a singleCsound score pfield. Some time ago, I wrote a Perl script thatauto-magically does the work for me. I formally started learning Python overthe weekend, and decided to port my favorite and most used Perl script, whlemaking a few improvements on the way. I figure this might be useful forothers, so here it is:scoref.zipHere's an example score that displays the unaligned code alongside variousalignments using the command-line options:As for the bigger picture. Scripts that refactor Csound code can beincorporated with existing text editors. For example, I use jedit. Jeditsupports java plugins and beanshell macros. Though I haven't done this yet,my research leads me to believe that I will be able to create a macro thataligns any highlighted code at the stroke of a key combo, without having tomake modifications scorerefactor.py.In fact, I think I would only have to create a basic beanshell script thatwould be able to run several command-line scripts. Another example of apotentially useful script is a script that shifts the start times of a largesection of score code (I have a perl script for this as well). Thesescripts, along with scripts developed by others could be loosely integratedinto other editors. Perhaps QuteSound?Food for thought, anyways.Best,Jake
« Return to Thread: Re: Score Alignment Utility
| Free embeddable forum powered by Nabble | Forum Help |