OpenShot Library | OpenShotAudio
0.2.2
|
Generates an appropriate sequence of MIDI CC messages to represent an RPN or NRPN message. More...
#include <juce_MidiRPN.h>
Static Public Member Functions | |
static MidiBuffer | generate (MidiRPNMessage message) |
Generates a MIDI sequence representing the given RPN or NRPN message. More... | |
static MidiBuffer | generate (int channel, int parameterNumber, int value, bool isNRPN=false, bool use14BitValue=true) |
Generates a MIDI sequence representing an RPN or NRPN message with the given parameters. More... | |
Generates an appropriate sequence of MIDI CC messages to represent an RPN or NRPN message.
This sequence (as a MidiBuffer) can then be directly sent to a MidiOutput.
Definition at line 127 of file juce_MidiRPN.h.
|
static |
Generates a MIDI sequence representing the given RPN or NRPN message.
Definition at line 121 of file juce_MidiRPN.cpp.
References juce::MidiRPNMessage::channel, juce::MidiRPNMessage::is14BitValue, juce::MidiRPNMessage::isNRPN, juce::MidiRPNMessage::parameterNumber, and juce::MidiRPNMessage::value.
Referenced by juce::MPEMessages::clearLowerZone(), juce::MPEMessages::clearUpperZone(), generate(), juce::MPEMessages::setLowerZone(), juce::MPEMessages::setLowerZoneMasterPitchbendRange(), juce::MPEMessages::setLowerZonePerNotePitchbendRange(), juce::MPEMessages::setUpperZone(), juce::MPEMessages::setUpperZoneMasterPitchbendRange(), and juce::MPEMessages::setUpperZonePerNotePitchbendRange().
|
static |
Generates a MIDI sequence representing an RPN or NRPN message with the given parameters.
channel | The MIDI channel of the RPN/NRPN message. |
parameterNumber | The parameter number, in the range 0 to 16383. |
value | The parameter value, in the range 0 to 16383, or in the range 0 to 127 if sendAs14BitValue is false. |
isNRPN | Whether you need a MIDI RPN or NRPN sequence (RPN is default). |
use14BitValue | If true (default), the value will have 14-bit precision (two MIDI bytes). If false, instead the value will have 7-bit precision (a single MIDI byte). |
Definition at line 130 of file juce_MidiRPN.cpp.
References juce::MidiBuffer::addEvent(), juce::MidiRPNMessage::channel, generate(), juce::MidiMessage::getChannel(), juce::MidiMessage::getControllerNumber(), juce::MidiMessage::getControllerValue(), juce::MidiBuffer::Iterator::getNextEvent(), juce::MidiRPNMessage::is14BitValue, juce::MidiRPNMessage::isNRPN, juce::MidiRPNMessage::parameterNumber, juce::MidiRPNDetector::parseControllerMessage(), juce::MidiRPNDetector::reset(), and juce::MidiRPNMessage::value.