Arnout, Michael, Chris, Thanks, I now understand which accidental I have to use, NoAccidental or Natural. Now I can continue.
Concering the curiousity of Michael, what I try accomplich is very simple, I just want to import a MusicXML file :-) (I decided to create an MusicXML import besides the extension of the export because it helps me to understand both MusicXML and the Rosegarden internals). 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... And Michael, I understand your concern. Incomplete understanding and strange work around will create a lot of trouble in the end. That's the reason I every now and then I will pop with some questions. Thanks to you all, I will continue with both MusicXML import and export and will come back with new questions or maybe a working im-/export. Best regards, Niek ------------------------------------------------------------------------------ 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