feat: add editable internal instruments, automation and versioned presets
This commit is contained in:
parent
e76552e8dd
commit
159fa939a1
21 changed files with 295 additions and 52 deletions
|
|
@ -723,6 +723,13 @@ int main(int argc, char **argv)
|
|||
xtc_plugin_spec spec{};
|
||||
CHECK(xtc_project_get_instrument(sequence->project(),track,&spec)==XTC_OK && spec.index==instrument);
|
||||
CHECK(window.undo()==XTC_OK && window.undo(true)==XTC_OK);
|
||||
spec.values[1]=25;spec.point_count=1;spec.points[0]={100,0,0,.4f};
|
||||
CHECK(window.set_instrument_spec(track,spec)==XTC_OK);
|
||||
CHECK(window.undo()==XTC_OK && window.undo(true)==XTC_OK);
|
||||
CHECK(xtc_project_get_instrument(sequence->project(),track,&spec)==XTC_OK && spec.values[1]==25 && spec.point_count==1);
|
||||
auto *bar=dynamic_cast<Fl_Menu_Bar *>(window.child(0));CHECK(bar);
|
||||
Fl::add_timeout(.05,[](void *) {press(find(Fl::first_window(),"Apply"));});
|
||||
bar->picked(bar->find_item("Edit/Selected instrument controls"));
|
||||
xtc_connection_info wire{};
|
||||
CHECK(xtc_graph_get_connection(xtc_project_graph(sequence->project()),0,&wire)==XTC_OK);
|
||||
unsigned int effect=instrument+2;size_t id=SIZE_MAX;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue