Server
main(osc_port=8732, osc_return_port=None, osc_host='', verbose=1)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
osc_port |
int
|
listen for OSC controls on this port |
8732
|
osc_return_port |
Optional[int]
|
if supplied, reply on a different port than osc_port |
None
|
osc_host |
str
|
leave this as empty string to get all traffic on the port |
''
|
OSC Methods:
/anguilla/instance/config "embed_input" "Identity"
set input embedding to Identity (the default)
/anguilla/instance/config "embed_input" "ProjectAndSort"
set input embedding to ProjectAndSort
/anguilla/instance/config "interpolate" "Smooth"
set interpolator to Smooth (the default)
/anguilla/instance/config "interpolate" "Softmax"
set interpolator to Softmax
/anguilla/instance/config "interpolate" "Ripple"
set interpolator to Ripple
/anguilla/instance/add "input" ... "output"...
add a point to the mapping
/anguilla/instance/add_batch "input" <json> "output" <json>
add a batch of points to the mapping
each <json> is a JSON string: { "shape": [B, D], "data": [...] }
where B is the batch size and D is the input dimension,
and data is a list of numbers of length B*D.
/anguilla/instance/remove id
remove a point from the mapping by ID
/anguilla/instance/remove_near "input" ... ["k" k]
remove k points from the mapping by proximity
here you would replace '...' with a series of numbers
'[]' denotes optional parts of the message (not OSC lists)
/anguilla/instance/map "input" ... ["k" k] ["ripple" r] ["temp" t]
map an input to an output using k neighbors
"temp" 1 > t > 0 when using Softmax interpolator
"ripple" r > 0 when using Ripple interpolator
/anguilla/instance/map_batch "input" <json> ["k" k] ["ripple" r] ["temp" t]
add a batch of points to the mapping
<json> is a JSON string: { "shape": [B, D], "data": [...] }
where B is the batch size and D is the input dimension,
and data is a list of numbers of length B*D.
the output is returned as JSON in the same format.
/anguilla/instance/reset
remove all points
/anguilla/instance/reset "keep_near" ... ["k" k]
remove all points except the k neighbors of "keep_near"
/anguilla/instance/load path
load IML from file at `path`
/anguilla/instance/save path
save IML to file at `path`
replace 'instance' with any string to address a unique IML instance.
Source code in src/anguilla/app/server.py
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 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 |
|