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

◆ sendPitchBend() [1/2]

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

Send a Pitch Bend message using a floating point value.

Parameters
inPitchValueThe amount of bend to send (in a floating point format), between -1.0f (maximum downwards bend) and +1.0f (max upwards bend), center value is 0.0f.
inChannelThe channel on which the message will be sent (1 to 16).

Definition at line 339 of file MIDI.hpp.

341{
343 const int value = int(inPitchValue * double(scale));
345}
The main class for MIDI handling. It is templated over the type of serial port to provide abstraction...
Definition MIDI.h:55
void sendPitchBend(int inPitchValue, Channel inChannel)
Send a Pitch Bend message using a signed integer value.
Definition MIDI.hpp:324

References MIDI_PITCHBEND_MAX, MIDI_PITCHBEND_MIN, scale, and sendPitchBend().

+ Here is the call graph for this function: