Calculating the note pitch during playback

• Jul 5, 2018 - 18:02

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?

Do you still have an unanswered question? Please log in first to post your question.