|
resonance 1.0.1
|
Go to the source code of this file.
Functions | |
| MultiMuse * | CloneAndTranspose (const MultiMuse &muse, int nTrans) |
| Copy a sequence with every note moved by a number of semitones. | |
Copy a sequence with every note moved by a number of semitones.
The routine is in GsMuseUtil.cpp, the unit the RTTI of its file-local helper class _GLOBAL_$N$GsMuseUtil.cpp::Shifter identifies, apart from MultiMuse's own unit. It reads the sequence only through the public MultiMuse::mEntries.
A stack Shifter visits every entry. A NoteMsg, and a StdMidiMsg with a note-on or note-off status, is copied with its note number raised by nTrans (wrapping at 256). Any other message whose identity lies in the MuseMsg range is copied unchanged. Each copy is added at the entry's position.
| muse | The sequence to copy. |
| nTrans | The semitones to add to every note. |