On 02/11/2015 02:54 PM, Steve Conrad wrote:

> How would I go about rounding up the bar lines in a segment? It would
> not appear that a bar line is an event, since in jpff;;;'s CsoundExport
> code, all non-note events are printed as a comment line, and bar lines
> aren't there in the output.

Bar lines are calculated.

> Same thing for ties. They aren't there either. If they aren't an event,
> what are they, and how do I enumerate them? I'm more than willing to
> spend a bit of time reading the code if someone could point me in the
> right direction.

Ties are event properties.  When the left note is tied forward and the 
right note is tied back, that's when a tie appears, and when it gets 
exported to LilyPond.  I've never looked at Csound.

If Csound can't handle ties, one easy workaround would be to select all 
and collapse equal pitch notes to get rid of all the ties, at the 
expense of potentially corrupting bars with over-long notes.

> I'm trying to add a commented mention of the bar numbers to the csound
> export. Also trying to correct the way two tied notes are output as two
> separate notes instead of one long one.
>
> Not being familiar with the RG codebase, I'm running up against a bit of
> a needle in a haystack problem though.

Being familiar to some extent, I'm still not sure of a good approach for 
getting bar numbers to write out.  There's a getBarNumberAt() or 
something to that effect, but get it at what?  The LilyPond exporter has 
an option to write bar checks at the end of bars, but does it write the 
numbers?  If it does, does it compute its own numbers or get 
getBarNumberAt()?

I don't know man, I haven't looked at any of that code in quite a long 
time.  Just thinking out loud more than being helpful.
-- 
D. Michael McIntyre

------------------------------------------------------------------------------
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

Reply via email to