poly touch

Midi poly pressure output
Author: Mark Harris
License: BSD
Github: midi/intern/poly touch.axo

Inlets

frac32.bipolar note (-64..63)

frac32.positive pressure

bool32.rising trigger

Outlets

None

Attributes

spinner channel

Declaration
int ntrig;
int note;
Init
note = 0;
ntrig = 0;
Control Rate
if ((inlet_trig > 0) && !ntrig) {
  note = (64 + (inlet_note >> 21)) & 0x7F;
  PatchMidiInHandler(MIDI_DEVICE_INTERNAL, 0,
                     MIDI_POLY_PRESSURE + (attr_channel - 1), note,
                     inlet_pressure >> 20);
  ntrig = 1;
}
if (!(inlet_trig > 0) && ntrig) {
  ntrig = 0;
}

Privacy

© 2024 Zrna Research