Since rosegarden remains the only way I know of the create a csound score using standard musical notation, I thought I might adjust a couple of pesky things about the otherwise excellent way it makes the files.
1) Instrument 0 is not valid in csound, so I just add 1 to the track
number to avoid i 0.
2) By convention, the first five parameters of a score are:
p1 => Instrument
p2 => Start
p3 => Duration
p4 => Amplitude
p5 => Pitch
I've just rearranged the output to reflect this custom (assuming that
velocity is a reasonable standin for amplitude).
I've been running some conversions with this this afternoon and it
doesn't seem to break anything else in RG. Changing the RG source was
easier for me than writing a perl script to modify RG's output, even
though I'm definitely not anything like a C++ programmer.
There are a couple of other irritants I'd like to correct as well -
most notably the way two tied notes of the same pitch just come out as
two regular notes, which can be pretty jarring at times. But devising
a way of adding up the durations of two tied notes to output one long
one would require a bit more effort on my part.
For now this minor change greatly improves the usability of
CsoundExport, from my point of view at least.
Does anyone else actually use this?
CsoundExporter.cpp.gz
Description: GNU Zip compressed data
------------------------------------------------------------------------------ Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________ Rosegarden-user mailing list [email protected] - use the link below to unsubscribe https://lists.sourceforge.net/lists/listinfo/rosegarden-user
