1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-05 22:28:57 +02: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:
Pokechu22 2017-04-25 14:33:30 -07:00 committed by Paul Licameli
parent 3de3e7cd4d
commit 77db2e7113

View File

@ -213,11 +213,7 @@ void NoteTrack::WarpAndTransposeNotes(double t0, double t1,
iter.begin(); iter.begin();
Alg_event_ptr event; Alg_event_ptr event;
while (0 != (event = iter.next()) && event->time < t1) { while (0 != (event = iter.next()) && event->time < t1) {
if (event->is_note() && event->time >= t0 if (event->is_note() && event->time >= t0) {
#ifdef EXPERIMENTAL_MIDI_CONTROLS
&& IsVisibleChan(event->chan)
#endif
) {
event->set_pitch(event->get_pitch() + semitones); event->set_pitch(event->get_pitch() + semitones);
} }
} }