@@ -178,14 +178,9 @@ public ResetVibratos() {
178178 public void Run ( UProject project , UVoicePart part , List < UNote > selectedNotes , DocManager docManager ) {
179179 var notes = selectedNotes . Count > 0 ? selectedNotes : part . notes . ToList ( ) ;
180180 docManager . StartUndoGroup ( true ) ;
181+ var vibrato = new UVibrato ( ) ;
181182 foreach ( var note in notes ) {
182- docManager . ExecuteCmd ( new VibratoPeriodCommand ( part , note , NotePresets . Default . DefaultVibrato . VibratoPeriod ) ) ;
183- docManager . ExecuteCmd ( new VibratoDepthCommand ( part , note , NotePresets . Default . DefaultVibrato . VibratoDepth ) ) ;
184- docManager . ExecuteCmd ( new VibratoFadeInCommand ( part , note , NotePresets . Default . DefaultVibrato . VibratoIn ) ) ;
185- docManager . ExecuteCmd ( new VibratoFadeOutCommand ( part , note , NotePresets . Default . DefaultVibrato . VibratoOut ) ) ;
186- docManager . ExecuteCmd ( new VibratoShiftCommand ( part , note , NotePresets . Default . DefaultVibrato . VibratoShift ) ) ;
187- docManager . ExecuteCmd ( new VibratoDriftCommand ( part , note , NotePresets . Default . DefaultVibrato . VibratoDrift ) ) ;
188- docManager . ExecuteCmd ( new VibratoVolumeLinkCommand ( part , note , NotePresets . Default . DefaultVibrato . VibratoVolLink ) ) ;
183+ docManager . ExecuteCmd ( new SetVibratoCommand ( part , note , vibrato ) ) ;
189184 if ( NotePresets . Default . AutoVibratoToggle && note . duration >= NotePresets . Default . AutoVibratoNoteDuration ) {
190185 docManager . ExecuteCmd ( new VibratoLengthCommand ( part , note , NotePresets . Default . DefaultVibrato . VibratoLength ) ) ;
191186 } else {
0 commit comments