mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-12 23:56:33 +01:00
Transpose notes even when channel isn't visible
As mentioned by PRL (https://sourceforge.net/p/audacity/mailman/message/35763043/), WarpAndTransposeNotes didn't transpose, but _did_ wrap, notes that were on channels that were hidden. This behavior is inconsistent with all other operations, and thus has been changed to always transform and wrap regardless of visibility.
This commit is contained in:
@@ -213,11 +213,7 @@ void NoteTrack::WarpAndTransposeNotes(double t0, double t1,
|
||||
iter.begin();
|
||||
Alg_event_ptr event;
|
||||
while (0 != (event = iter.next()) && event->time < t1) {
|
||||
if (event->is_note() && event->time >= t0
|
||||
#ifdef EXPERIMENTAL_MIDI_CONTROLS
|
||||
&& IsVisibleChan(event->chan)
|
||||
#endif
|
||||
) {
|
||||
if (event->is_note() && event->time >= t0) {
|
||||
event->set_pitch(event->get_pitch() + semitones);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user