JUCE-7.0.12-0-g4f43011b96 JUCE-7.0.12-0-g4f43011b96
JUCE — C++ application framework with suport for VST, VST3, LV2 audio plug-ins

« « « Anklang Documentation
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
juce::MidiRPNGenerator Class Reference

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.
 
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.
 

Detailed Description

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.

@tags{Audio}

Definition at line 135 of file juce_MidiRPN.h.

Member Function Documentation

◆ generate() [1/2]

MidiBuffer juce::MidiRPNGenerator::generate ( int  channel,
int  parameterNumber,
int  value,
bool  isNRPN = false,
bool  use14BitValue = true 
)
static

Generates a MIDI sequence representing an RPN or NRPN message with the given parameters.

Parameters
channelThe MIDI channel of the RPN/NRPN message.
parameterNumberThe parameter number, in the range 0 to 16383.
valueThe parameter value, in the range 0 to 16383, or in the range 0 to 127 if sendAs14BitValue is false.
isNRPNWhether you need a MIDI RPN or NRPN sequence (RPN is default).
use14BitValueIf 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 123 of file juce_MidiRPN.cpp.

◆ generate() [2/2]

MidiBuffer juce::MidiRPNGenerator::generate ( MidiRPNMessage  message)
static

Generates a MIDI sequence representing the given RPN or NRPN message.

Definition at line 114 of file juce_MidiRPN.cpp.


The documentation for this class was generated from the following files: