-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathAPI
133 lines (124 loc) · 4.48 KB
/
API
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
@module >> @chorus, @phaser, ...
@moduleslot/status() ->
/insert_engine(string engine),
/insert_preset(string preset),
/bypass(int bypassed)
@moduleslot/insert_engine(string engine)
@moduleslot/insert_preset(string engine)
@moduleslot/engine/{add: @module}
@moduleslot/set_bypass(int bypassed)
@track/add_clip(int pos, int offset, int length, string pattern)
/master/
/master/status() -> /sample_rate, /tempo, /timesig, /playing, /pos, /pos_ppqn
/master/tell() -> /playing, /pos, /pos_ppqn
/master/set_tempo(float tempo)
/master/set_timesig(int num, int denom)
/master/play()
/master/stop()
/master/seek_samples(int samples)
/master/seek_ppqn(int ppqn)
/meter/
/meter/get_peak() -> /peak(float left, float right)
/meter/get_rms() -> /rms(float left, float right)
/config/
/config/sections([string prefix]) -> [/section(string name)]
/config/keys(string section, string ?prefix) -> [/section(string name)]
/config/get(string section, string key) -> /value(string value)
/config/set(string section, string key, string value)
/config/delete(string section, string key)
/config/delete_section(string section)
/config/save(string ?filename)
/engine/
/engine/status() -> /scene(object scene)
/engine/render_stereo(int nframes)
/engine/master_effect/{add: @moduleslot}
/engine/new_scene() -> uuid
/engine/new_recorder() -> uuid
/scene/
/scene/transpose(int semitones)
/scene/clear()
/scene/load(string scene_name)
/scene/add_layer(int layer_pos, string layer_name)
/scene/add_instrument_layer(int layer_pos, string instrument_name)
/scene/delete_layer(int pos)
/scene/move_layer(int oldpos, int newpos)
/scene/instr/
/scene/instr/<name>/status() ->
/engine(string name),
/aux_offset(int first_aux_output_no),
/outputs(int stereo_output_count)
/scene/instr/<name>/output/<index>/status() ->
/gain_linear(float gain),
/gain(float gain_dB),
/output(int output_bus),
{add: @moduleslot/status()}
/scene/instr/<name>/output/<index>/gain(float gain_dB),
/scene/instr/<name>/output/<index>/output(int output_bus)
/scene/instr/<name>/output/<index>/{add: @moduleslot}
/scene/instr/<name>/aux/<index>/status() ->
/gain_linear(float gain),
/gain(float gain_dB),
/bus(string output_bus),
{add: @moduleslot/status()} XXXKF ????
/scene/instr/<name>/aux/<index>/gain(float gain_dB)
/scene/instr/<name>/aux/<index>/bus(string bus)
/scene/instr/<name>/aux/<index>/{add: @moduleslot}
/scene/layer/<index>/
/scene/layer/<index>/status() ->
/enable(int),
/instrument_name(string iname),
/instrument_uuid(string uuid),
/consume(int consume),
/ignore_scene_transpose(int ignore),
/disable_aftertouch(int disable),
/transpose(int semitones),
/fixed_note(int note),
/low_note(int note),
/high_note(int note),
/in_channel(int channel),
/out_channel(int channel)
/scene/layer/<index>/enable(int)
/scene/layer/<index>/instrument_name(string iname)
/scene/layer/<index>/consume(int consume)
/scene/layer/<index>/ignore_scene_transpose(int ignore)
/scene/layer/<index>/disable_aftertouch(int disable)
/scene/layer/<index>/transpose(int semitones)
/scene/layer/<index>/fixed_note(int note)
/scene/layer/<index>/low_note(int note)
/scene/layer/<index>/high_note(int note)
/scene/layer/<index>/in_channel(int channel)
/scene/layer/<index>/out_channel(int channel)
/scene/aux/<name>/status
/scene/aux/<name>/slot/{add: @module}
/scene/load_aux(string name)
/scene/delete_aux(string name)
/scene/status() ->
/name(string),
/title(string),
/transpose(int semitones),
[/layer(string uuid)],
[/instrument(string instance, string engine)],
[/aux(string name, string uuid)]
/rt/
/rt/status() -> /audio_channels(int inputs, int outputs)
/song/
/song/status() -> [/track(int index, string name, int items)], [/pattern(int index, string name, int length)]
/waves/
/waves/status() -> /bytes(int bytes), /max_bytes(int max_bytes), /count(int count)
/waves/list() -> [/waveform(int id)]
/waves/info(int id) -> /filename(string), /name(string), /bytes(int)
/on_idle() -> {any}
/send_event_to(string output, int)
/send_event_to(string output, int, int)
/send_event_to(string output, int, int, int)
/play_note(int ch, int note, int velocity) (plays a note with duration=1 on the next buffer)
/play_drum_pattern(string pattern)
/play_drum_track(string track)
/play_blob(blob serialized_pattern, int length_ticks)
/stop_pattern()
/get_pattern() -> /pattern(blob serialized_pattern, int length_ticks)
/print_s(string)
/print_i(int)
/print_f(float)
/new_meter() -> /uuid
/new_recorder(string filename) -> /uuid