Skip to content

lib.io.midi.MidiInput

Thomas Mann edited this page Jul 1, 2022 · 4 revisions

MidiInput

in lib.io.midi


Provides input from connected Midi devices. As a default, the Midi range from 0 ... 127 is mapped to an output range from 0 .. 1 which can be adjusted with the parameters. For smoothing the output damping is enabled by default. Reduce the damping parameter to improve latency.

If you want to react to a range for controls (I.e. to the range of keys on a keyboard), you can use the ControlRange parameter. If this is something else than [0, 0] we map its range to the OutputRange. (e.g. you could map two octaves of your keyboard to output values from 0 ... 1).


Outputs

Name Type
Result System.Single
Range System.Collections.Generic.List`1[System.Single]

Parameters

Name Type Relevancy
OutputRange System.Numerics.Vector2
DefaultOutputValue System.Single
Damping System.Single
TeachTrigger System.Boolean
Device System.String
Channel System.Int32
Control System.Int32
ControlRange SharpDX.Size2
PrintLogMessages System.Boolean

Please help use to improve this documentation. Feel free to improve the description.

⚠ Everything else is automatically generated and will be overwritten regularly.

Clone this wiki locally