def _handle_note_mode_record_behavior(self): track = self._target_track_component.target_track if self._track_can_record(track): playing_slot = track_playing_slot(track) should_overdub = not track_is_recording(track) and playing_slot != None if should_overdub: self.song().overdub = not self.song().overdub self.song().is_playing = self.song().is_playing or True elif not self._stop_recording(): self._prepare_new_slot(track) self._start_recording() elif not self._stop_recording(): self._start_recording()
def _handle_note_mode_record_behavior(self): track = self._target_track_component.target_track playing_slot = self._track_can_record(track) and track_playing_slot(track) if not track_is_recording(track): should_overdub = playing_slot != None if should_overdub: self.song().overdub = not self.song().overdub if not self.song().is_playing: self.song().is_playing = True elif not self._stop_recording(): self._prepare_new_slot(track) self._start_recording() elif not self._stop_recording(): self._start_recording()