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