Skip to content

Commit

Permalink
Allow changing BPM before there are any tracks
Browse files Browse the repository at this point in the history
  • Loading branch information
YuriSizov committed Apr 19, 2024
1 parent 2b7f5ae commit e0bd87c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/sequencer/simml_sequencer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,8 @@ double SiMMLSequencer::get_effective_bpm() const {
void SiMMLSequencer::set_effective_bpm(double p_value) {
set_default_bpm(p_value);

if (is_ready_to_process()) {
ERR_FAIL_COND_MSG(!_bpm_change_enabled, "SiMMLSequencer: Cannot change BPM while rendering (SiONTrackEvent::NOTE_*_STREAM).");
set_bpm(p_value);
}
ERR_FAIL_COND_MSG(is_ready_to_process() && !_bpm_change_enabled, "SiMMLSequencer: Cannot change BPM while rendering (SiONTrackEvent::NOTE_*_STREAM).");
set_bpm(p_value);
}

// Tracks.
Expand Down

0 comments on commit e0bd87c

Please sign in to comment.