mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-05 14:18:53 +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:
parent
3de3e7cd4d
commit
77db2e7113
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user