channel touch

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

Inlets

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) {
  PatchMidiInHandler(MIDI_DEVICE_INTERNAL, 0,
                     MIDI_CHANNEL_PRESSURE + (attr_channel - 1),
                     inlet_pressure >> 20, 0);
  ntrig = 1;
}
if (!(inlet_trig > 0) && ntrig) {
  ntrig = 0;
}

Privacy

© 2024 Zrna Research