Server
main(osc_port=8732, osc_return_port=None, osc_host='')
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 Routes:
/anguilla/config "emb" "Identity"
set embedding to Identity (the default)
/anguilla/config "emb" "ProjectAndSort"
set embedding to ProjectAndSort
/anguilla/config "interp" "Smooth"
set interpolator to Smooth (the default)
/anguilla/config "interp" "Softmax"
set interpolator to Softmax
/anguilla/config "interp" "Ripple"
set interpolator to Ripple
/anguilla/add "input" ... "output"...
add a point to the mapping
/anguilla/remove id
remove a point from the mapping by ID
/anguilla/remove_near "input" ... ["k" k]
remove k points from the mapping by proximity
/anguilla/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/reset
remove all points
/anguilla/reset "keep_near" ... ["k" k]
remove all points except the k neighbors of "keep_near"
/anguilla/load path
load IML from file at `path`
/anguilla/save path
save IML to file at `path`
an additional segment in a route is the name of an IML instance which
it will target, e.g. /anguilla/add/myinstance
Source code in src/anguilla/app/server.py
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 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 |
|