feat: render bounded effect tails and reset internal history on transport changes
This commit is contained in:
parent
7a01e2d2f3
commit
836cdedc6b
22 changed files with 284 additions and 18 deletions
|
|
@ -1046,6 +1046,11 @@ int main(int argc, char **argv)
|
|||
CHECK(window.settings().loop_enabled==1 && window.settings().loop_start==960);
|
||||
CHECK(window.set_loop(4000,2000,true)==XTC_ERR_INVALID_ARGUMENT);
|
||||
settings=window.settings();CHECK(window.apply_preferences(settings)==XTC_OK);
|
||||
settings=window.settings();settings.loop_enabled=0;settings.stop_after_tail=1;settings.tail_ms=0;
|
||||
CHECK(window.apply_preferences(settings)==XTC_OK);
|
||||
CHECK(window.create_track(true)==XTC_OK);press(find(&window,"Play"));
|
||||
engine_status.sample_position=1000000;pump();CHECK(!handle.running);
|
||||
settings.loop_enabled=1;settings.stop_after_tail=0;CHECK(window.apply_preferences(settings)==XTC_OK);
|
||||
settings.note_velocity=128;CHECK(window.apply_preferences(settings)==XTC_ERR_INVALID_ARGUMENT);
|
||||
PreferencesDialog dialog(window.settings(),path,[&](const xtc_settings &v){return window.apply_preferences(v);});
|
||||
auto *input=dynamic_cast<Fl_Input *>(find(&dialog,"New note velocity"));CHECK(input);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue