Added velocity to tracks in the sequencer.
This commit is contained in:
parent
9b1e7b7d42
commit
b46d4f09bb
13 changed files with 873 additions and 19 deletions
|
|
@ -64,6 +64,13 @@ int main(int argc,char **argv) {
|
|||
MainWindow window(false,"");main_window=&window;window.resize(0,0,1400,900);window.show();check(window.open_project(project.c_str()));pump();
|
||||
auto *s=first<SequencerWidget>(window);if(!s)throw std::runtime_error("Sequencer missing");
|
||||
auto reset=[&](){window.reset_layout();check(window.open_project(project.c_str()));window.resize(0,20,1400,900);tab("Sequencer");s->select(0,0);s->position(0);check(window.set_loop(3840,7680,true));window.fit_song();pump();};
|
||||
if(std::getenv("XTC_CAPTURE_VELOCITY_ONLY")) {
|
||||
reset(); capture("compact-workspace"); capture("sequencer-loop");
|
||||
check(s->set_zoom(96));
|
||||
if(!s->expand_track(0,true) || !s->expand_track(1,true)) throw std::runtime_error("Expand track failed");
|
||||
pump(); capture("track-velocity-expanded");
|
||||
window.do_callback(); return 0;
|
||||
}
|
||||
if(std::getenv("XTC_CAPTURE_MIDI_INPUT_ONLY")) {
|
||||
reset();
|
||||
if(window.midi_devices(true).empty())throw std::runtime_error("No real MIDI input sources exposed by the host");
|
||||
|
|
@ -137,6 +144,8 @@ int main(int argc,char **argv) {
|
|||
window.do_callback();std::puts("Sample-editor captures completed.");return 0;
|
||||
}
|
||||
reset();capture("overview");capture("sequencer-loop");capture("arrangement-markers");
|
||||
check(s->set_zoom(96)); s->expand_track(0,true); s->expand_track(1,true);
|
||||
pump(); capture("track-velocity-expanded"); reset();
|
||||
s->position(4800);check(window.loop_section());capture("section-navigation");
|
||||
dialog("marker-edit",[&]{s->marker_dialog();});
|
||||
dialog("ripple-time",[&]{s->ripple_dialog(false);});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue