K-Nearest Neighbor (KNN) /bus/{i}
The root OSC message for controlling a KNN bus is /bus/{index}, where {index} is an integer starting from 1. To control any of the parameters listed below, you need to append the parameter name to the bus target address.
For example:
/bus/1/k 4- Sets the number of nearest neighbors to 4
KNN is a panning method that uses the K nearest speakers to the desired source position, providing smooth transitions between speakers.
General Parameters
| Parameter | Arguments | Scale | Unit | Comments | Settable |
|---|---|---|---|---|---|
| /name | string | -- | -- | -- | ✅ |
| /color | [decimal, decimal, decimal, decimal] | 0, 1 | m | -- | ✅ |
| /lock | boolean | -- | -- | -- | ✅ |
| /trim | integer | -80, 30 | m | -- | ✅ |
| /gain | integer | -60, 12 | m | -- | ✅ |
| /gain/ramptime | decimal | -- | -- | -- | ✅ |
| /mute | string | 0, 2 | m | -- | ✅ |
| /solo | boolean | -- | -- | -- | ✅ |
| /format | string | "HOA", "HOA2D", "Binaural", "Transaural", "KNN", "Angular 2D", "LBAP", "Stereo AB", "Stereo XY", "Stereo Pan", "Thru", "VBAP", "VBAP2D", "VBIP", "VBIP2D", "WFS" | -- | -- | ❌ |
| /delay/bypass | boolean | -- | -- | -- | ✅ |
| /delay | integer | 0, 5000 | m | -- | ✅ |
| /monitor | boolean | -- | -- | -- | ✅ |
| /ramp/time | decimal | -- | -- | -- | ✅ |
| /ignorez | boolean | -- | -- | -- | ✅ |
| /spread | integer | 0, 100 | m | -- | ✅ |
| /spread/bypass | boolean | -- | -- | -- | ✅ |
| /neighbors | string | -- | -- | -- | ✅ |
| /preOrPost | string | "post", "pre" | -- | -- | ✅ |
| /linkedToSpeaker | boolean | -- | -- | -- | ✅ |