Skip to content
This repository was archived by the owner on Jun 8, 2023. It is now read-only.

Commit 48ecf69

Browse files
'backup'
1 parent af9243c commit 48ecf69

3 files changed

Lines changed: 15 additions & 3 deletions

File tree

domain/lom/track/group_track/external_synth_track/ExternalSynthTrack.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def _on_third_beat_passed_event(self, _):
141141
not SongFacade.playing_scene().playing_state.in_last_bar
142142
or SongFacade.playing_scene().should_loop
143143
)
144-
and not self._is_stopping
144+
# and not self._is_stopping
145145
):
146146
playing_clip = self.playing_audio_track.playing_clip
147147
clip_to_fire = self._audio_clip_to_fire(playing_clip.index)
@@ -370,7 +370,11 @@ def stop(self, scene_index=None, next_scene_index=None, immediate=False):
370370
should_stop_audio = False
371371
if scene_index is not None:
372372
midi_clip = self.midi_track.clip_slots[scene_index].clip
373-
if midi_clip is not None and midi_clip.is_playing and not midi_clip.playing_position.in_last_bar:
373+
if (
374+
midi_clip is not None
375+
and midi_clip.is_playing
376+
and not midi_clip.playing_position.in_last_bar
377+
):
374378
should_stop_audio = True
375379

376380
if not should_stop_audio:

domain/lom/track/group_track/external_synth_track/ExternalSynthTrackClipSynchronizerService.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ def _on_clip_loop_changed_event(self, event):
3333
return
3434

3535
midi_clip = current_track.midi_track.clip_slots[SongFacade.selected_scene().index].clip
36+
37+
# not a manual edition ..?
38+
if midi_clip is None:
39+
return
40+
3641
if event.live_clip != midi_clip._clip and (
3742
self._midi_editing_until is None or time.time() > self._midi_editing_until
3843
):

vulture_whitelist.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,7 @@
6363
_.scroll_scenes # unused method (domain\lom\song\components\SceneComponent.py:29)
6464
_.scroll_tracks # unused method (domain\lom\song\components\TrackComponent.py:101)
6565
_.toggle # unused method (domain\lom\track\abstract_track\AbstrackTrackArmState.py:31)
66-
_.toggle # unused method (domain\shared\ValueToggler.py:16)
66+
_.toggle # unused method (domain\shared\ValueToggler.py:16)
67+
_._is_stopping # unused attribute (domain\lom\track\group_track\external_synth_track\ExternalSynthTrack.py:85)
68+
_._is_stopping # unused attribute (domain\lom\track\group_track\external_synth_track\ExternalSynthTrack.py:354)
69+
_._is_stopping # unused attribute (domain\lom\track\group_track\external_synth_track\ExternalSynthTrack.py:382)

0 commit comments

Comments
 (0)