> Thanks. That's helpful.
>
> Accessing bar line positions is more trouble than it's worth for me
> right is what that part of your answer tells me. That frees up some time
> for me.
>
> As for the ties,  a note would have two properties: one for tied from
> and another for tied to. Any idea where I could find that code? Just
> looking quickly, I didn't see anything like that in event.* or
> notationtypes.* and there doesn't seem be be a file called note anywhere
> in the tree.

Tie properties are defined in base/BaseProperties.h: TIED_FORWARD and
TIED_BACKWARD.

> I'm expecting there to be an accessor method like note->getTieForward()
> which returns the note to which a given note is tied but I can't find
> one.

There is SegmentNotationHelper::getNextTiedNote, but as Michael suggests
you may be better off using performance duration.  That'd be
SegmentPerformanceHelper::getSoundingDuration.

If I might offer another suggestion, when I redid Midi export, it made
more sense to fake playing the composition, collect all the MappedEvent,
and translate MappedEvents instead of Events.  That automatically handled
all the funny stuff like repeats and ornaments.  And ties.  OTOH you lose
some notational info like repeats and note names (A# vs Bb).

Not sure how well this fits CSound, which I barely know, but the sort of
code involved can be copied from MidiInserter.h & MidiInserter.cpp if you
choose that route.

Good luck!

        Tom Breton (Tehom)



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