MidiIn
A MIDI port as signals.
Per voice a gate, a pitch in volts per octave (C4 is 0) and a velocity in [0, 1]. A note lands at the start of the next block.
gate
pitch
velocity
voices
- Type name
audio:MidiIn- Plane
audio- Tags
inputmidi- Language
rust- Tier
native- Source
- compiled into the engine
- Availability
- available
Slots
| Slot | Direction | Type | |
|---|---|---|---|
gate | output | AUDIO | |
pitch | output | AUDIO | |
velocity | output | AUDIO | |
voices | output | AUDIO |
Parameters
midi
| Name | Type | Default | Range | Doc |
|---|---|---|---|---|
port | string | none | none | refreshable |
bend_range | float | 2 | 0 … 24 | how many semitones a full pitch wheel reaches, up and down |
voices | int | 4 | 1 … 64 | one channel per voice on every output; notes take voices round-robin. The bundled `voices` output needs two channels per voice, so it carries the first 8 — past that, wire gate, pitch and velocity separately |
Source
MidiIn is built into the audio engine rather than loaded from a file, so there is no source to copy.