On Thu, Jun 23, 2011 at 05:52:10PM +0200, Niek van den Berg wrote: > In MusicXML an Ab is specified as: > > <pitch> > <step>A</step> > <alter>-1</alter> > <octave>4</octave> > </pitch> > > This is not that difficult to parse and results in some variables m_step, > m_octave and m_accidental. Then I use > > Pitch p = Pitch(m_step, octave, segment->getKeyAtTime(t), m_accidental); > > to create a Pitch. > > And that was the location I went into troubles. I simple translater the > <alter> -2 to DoubleFlat, -1 to Flat, 0 (default) to NoAccidental, 1 to Sharp > and 2 to DoubleSharp but this might be too simple, I have to take the running > key into account. So I have still some work to do...
Shouldn't translating '0' into 'Natural' do exactly what you want? The MusicXML specs ( http://www.recordare.com/musicxml/dtd/note-module ) aren't all that specific, but that's how I'd read it. Kind regards, Arnout ------------------------------------------------------------------------------ Simplify data backup and recovery for your virtual environment with vRanger. Installation's a snap, and flexible recovery options mean your data is safe, secure and there when you need it. Data protection magic? Nope - It's vRanger. Get your free trial download today. http://p.sf.net/sfu/quest-sfdev2dev _______________________________________________ Rosegarden-devel mailing list Rosegarden-devel@lists.sourceforge.net - use the link below to unsubscribe https://lists.sourceforge.net/lists/listinfo/rosegarden-devel