Can anyone recommend a good approach to note mapping and tracking? Here is the scenario…
Let’s say I have two states, harmony and, um, not harmony. I can select the state with a button Widget and it can change with variations. Let’s say that the harmony raises the pitch by a major third, so when I play a C, it sounds as an E.
Everything works great, until you hold a note and change the state.
- Harmony is ON. I play and hold a C, and an E is sent to the instrument block.
- I change Variations and Harmony is now OFF. I release the C, the instrument block gets a Note OFF for C, but the E continues to play. It’s stuck until I play and release an E.
An overly simple solution is to send Note Off for both the straight and harmonized notes, but this breaks things for polyphonic playing and instruments. Even with monophonic instruments, we have legato, so the variation switch could occur with multiple notes held.
I can brute force a solution and I can use the NoteMapper and NoteTracker, but there are many ways to approach it. I’d rather copy a simple, effective design than to reinvent an overly complicated wheel.
Anybody got any solutions or recommendations to share?