FastLED 3.9.15
Loading...
Searching...
No Matches

◆ sendPitchBend() [2/2]

template<class Transport, class Settings, class Platform>
void MidiInterface< Transport, Settings, Platform >::sendPitchBend ( int inPitchValue,
Channel inChannel )
inline

Send a Pitch Bend message using a signed integer value.

Parameters
inPitchValueThe amount of bend to send (in a signed integer format), between MIDI_PITCHBEND_MIN and MIDI_PITCHBEND_MAX, center value is 0.
inChannelThe channel on which the message will be sent (1 to 16).

Definition at line 324 of file MIDI.hpp.

326{
327 const unsigned bend = unsigned(inPitchValue - int(MIDI_PITCHBEND_MIN));
328 send(PitchBend, (bend & 0x7f), (bend >> 7) & 0x7f, inChannel);
329}
The main class for MIDI handling. It is templated over the type of serial port to provide abstraction...
Definition MIDI.h:55
void send(const MidiMessage &)
Send a MIDI message.
Definition MIDI.hpp:118

References MIDI_PITCHBEND_MIN, PitchBend, and send().

Referenced by sendPitchBend().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: