Calculating the note pitch during playback
I've been hacking the Pianoroll editor. In the original version, a note block is displayed for every (note, noteeEvent) tuple. The, note pitch is calculated as
note->pitch() + noteEvent->pitch()
This works fine when playback is not engaged - however, if playback is running this will sometimes return incorrect values. Is there a better way to calculate the note pitch?