On Sunday 04 Mar 2007 01:41, Arnout Engelen wrote:
> If I understand correctly, PITCH is the pitch of the note, and
> ACCIDENTAL specifies how to spell it. For example, pitch 41 will be
> an A# if the accidental is a Sharp, and a Bb if it's a Flat.

Right.  The pitch is plain old MIDI pitch, and we need to do the right 
thing even where the pitches came from a plain old MIDI device, i.e. no 
accidentals are available.

> However, I'm getting NoAccidental back for a note with pitch 41.

This should happen if the pitch came from a plain old MIDI device.  
Accidentals should only be specified if the user has actually specified 
them in Rosegarden.  Rosegarden doesn't permanently record accidentals 
that it has only guessed.

> How should I determine the accidental to use? Should I look at the
> current key, and use a sharp if it's major and a flat if it's minor?

Basically, yes -- but see Michael's comments about the Pitch class.

> If so, is there a convenient way to find the current key?

Segment::getKeyAtTime(timeT).


Chris

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Rosegarden-devel mailing list
[email protected] - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-devel

Reply via email to