1 title:: List of OSC Commands
2 categories:: External Control>OSC
3 summary:: Short List of OSC Server Commands
4 related:: Classes/NetAddr, Classes/OSCFunc, Guides/OSC Communication
9 section::Server Commands
17 /dumpOSC [0: off 1: on 2: hex 3: both]
19 /d_recv bytes [complBytes]
20 /d_load path [complBytes]
21 /d_loadDir path [complBytes]
29 /n_run | nodeID flag | ...
30 /n_set nodeID | control value | ...
31 /n_setn nodeID | control numCtl values.. | ...
32 /n_fill nodeID | control numCtl value | ...
33 /n_map nodeID | control busIndex | ...
34 /n_mapn nodeID | control busIndex numCtl | ...
35 /n_mapa nodeID | control busIndex | ...
36 /n_mapan nodeID | control busIndex numCtl | ...
38 /n_before | movedNodeID targetNodeID | ...
39 /n_after | movedNodeID targetNodeID | ...
54 strong::alternative syntax for "nodeID"::
57 "h" - head of the current group
58 "t" - tail of the current group
59 "u" - up. the parent of the current node.
60 "p" - the previous node.
67 /s_new defName nodeID addAction targetNodeID | control value | ...
68 /s_newargs // to document.
69 /s_get nodeID control ...
70 /s_getn nodeID | control numControls | ...
77 /g_new nodeID addAction targetNodeID
78 /g_head | groupID nodeID | ...
79 /g_tail | groupID nodeID | ...
80 /g_freeAll groupID ...
81 /g_deepFree groupID ...
89 /u_cmd nodeID ugenIndex string arg ...
95 /b_alloc bufnum numFrames numChannels [complBytes]
96 /b_allocRead bufnum path startFrame numFrames [complBytes]
97 /b_allocReadChannel bufnum path startFrame numFrames channels [complBytes]
98 /b_read bufnum path startFrameFile numFrames startFrameBuf numChannels leaveOpen [complBytes]
99 /b_write bufnum path headerFormat sampleFormat numFrames startFrameBuf leaveOpen [complBytes]
100 /b_readChannel bufnum path fileStartFrame numFrames bufStartFrame leaveOpen [complBytes]
101 /b_free bufnum [complBytes]
102 /b_zero bufnum [complBytes]
103 /b_set bufnum | index value | ...
104 /b_setn bufnum | startIndex numSamples values .. | ...
105 /b_fill bufnum | startIndex numSamples value | ...
106 /b_gen bufnum command args ...
108 /b_query bufnum ... (returns /b_info message: /b_info bufnum numFrames numChannels sampleRate)
109 /b_get bufnum sampleIndex ... (returns corresponding b_set message)
110 /b_getn bufnum startIndex numFrames (returns corresponding b_setn message)
116 /c_set | index value | ...
117 /c_setn | startIndex num values .. | ...
118 /c_fill | startIndex num value | ...
119 /c_get index ... (returns corresponding c_set message)
120 /c_getn | startIndex num | ... (returns corresponding c_setn message)
127 /fail commandName errorMsg
128 /late timeStamp-hiBits timeStamp-loBits execTime-hiBits execTime-loBits
131 section::Notifications
134 all node related notifications have the same format:
135 cmd nodeID parentNodeID prevNodeID nextNodeID synthFlag (-1:group 0 synth) headNodeID tailNodeID
144 section::Trigger Notifications
146 /tr nodeID triggerID value
149 section:SynthDef Notifications
151 when a SynthDef is removed (d_free), the server notifies:
157 section::Buffer Fill Commands
163 4: clear and then write
169 sine1 flag partialAmp ...
170 sine2 flag | partialFreq partialAmp |
171 sine3 flag | partialFreq partialAmp partialPhase |
174 copy posDest bufNumSrc posSrc numFrames
185 an osc message to evaluate after completion (array): this also means command is asynchronous
189 -1 is the equivalent of nil
190 'nothing' is replaced by 0
194 section::CommandNumbers
233 cmd_b_allocRead = 29,
266 cmd_b_allocReadChannel = 54,
267 cmd_b_readChannel = 55,
270 cmd_g_queryTree = 57,
280 NUMBER_OF_COMMANDS = 62