OpenShot Audio Library | OpenShotAudio 0.3.2
|
#include <juce_MPEMessages.h>
Static Public Member Functions | |
static MidiBuffer | setLowerZone (int numMemberChannels=0, int perNotePitchbendRange=48, int masterPitchbendRange=2) |
static MidiBuffer | setUpperZone (int numMemberChannels=0, int perNotePitchbendRange=48, int masterPitchbendRange=2) |
static MidiBuffer | setLowerZonePerNotePitchbendRange (int perNotePitchbendRange=48) |
static MidiBuffer | setUpperZonePerNotePitchbendRange (int perNotePitchbendRange=48) |
static MidiBuffer | setLowerZoneMasterPitchbendRange (int masterPitchbendRange=2) |
static MidiBuffer | setUpperZoneMasterPitchbendRange (int masterPitchbendRange=2) |
static MidiBuffer | clearLowerZone () |
static MidiBuffer | clearUpperZone () |
static MidiBuffer | clearAllZones () |
static MidiBuffer | setZoneLayout (MPEZoneLayout layout) |
Static Public Attributes | |
static const int | zoneLayoutMessagesRpnNumber = 6 |
This helper class contains the necessary helper functions to generate MIDI messages that are exclusive to MPE, such as defining the upper and lower MPE zones and setting per-note and master pitchbend ranges. You can then send them to your MPE device using MidiOutput::sendBlockOfMessagesNow.
All other MPE messages like per-note pitchbend, pressure, and third dimension, are ordinary MIDI messages that should be created using the MidiMessage class instead. You just need to take care to send them to the appropriate per-note MIDI channel.
Note: If you are working with an MPEZoneLayout object inside your app, you should not use the message sequences provided here. Instead, you should change the zone layout programmatically with the member functions provided in the MPEZoneLayout class itself. You should also make sure that the Expressive MIDI zone layout of your C++ code and of the MPE device are kept in sync.
Definition at line 48 of file juce_MPEMessages.h.
|
static |
Returns the sequence of MIDI messages that, if sent to an Expressive MIDI device, will clear the lower and upper zones.
Definition at line 76 of file juce_MPEMessages.cpp.
Referenced by setZoneLayout().
|
static |
Returns the sequence of MIDI messages that, if sent to an Expressive MIDI device, will clear the lower zone.
Definition at line 66 of file juce_MPEMessages.cpp.
Referenced by clearAllZones().
|
static |
Returns the sequence of MIDI messages that, if sent to an Expressive MIDI device, will clear the upper zone.
Definition at line 71 of file juce_MPEMessages.cpp.
Referenced by clearAllZones().
|
static |
Returns the sequence of MIDI messages that, if sent to an Expressive MIDI device, will set the lower MPE zone.
Definition at line 26 of file juce_MPEMessages.cpp.
Referenced by setZoneLayout().
|
static |
Returns the sequence of MIDI messages that, if sent to an Expressive MIDI device, will set the master pitchbend range of the lower MPE zone.
Definition at line 56 of file juce_MPEMessages.cpp.
Referenced by setLowerZone().
|
static |
Returns the sequence of MIDI messages that, if sent to an Expressive MIDI device, will set the per-note pitchbend range of the lower MPE zone.
Definition at line 46 of file juce_MPEMessages.cpp.
Referenced by setLowerZone().
|
static |
Returns the sequence of MIDI messages that, if sent to an Expressive MIDI device, will set the upper MPE zone.
Definition at line 36 of file juce_MPEMessages.cpp.
Referenced by setZoneLayout().
|
static |
Returns the sequence of MIDI messages that, if sent to an Expressive MIDI device, will set the master pitchbend range of the upper MPE zone.
Definition at line 61 of file juce_MPEMessages.cpp.
Referenced by setUpperZone().
|
static |
Returns the sequence of MIDI messages that, if sent to an Expressive MIDI device, will set the per-note pitchbend range of the upper MPE zone.
Definition at line 51 of file juce_MPEMessages.cpp.
Referenced by setUpperZone().
|
static |
Returns the sequence of MIDI messages that, if sent to an Expressive MIDI device, will reset the whole MPE zone layout of the device to the layout passed in. This will first clear the current lower and upper zones, then then set the zones contained in the passed-in zone layout, and set their per-note and master pitchbend ranges to their current values.
Definition at line 86 of file juce_MPEMessages.cpp.
The RPN number used for MPE zone layout messages.
Pitchbend range messages (both per-note and master) are instead sent on RPN 0 as in standard MIDI 1.0.
Definition at line 113 of file juce_MPEMessages.h.
Referenced by clearLowerZone(), clearUpperZone(), setLowerZone(), and setUpperZone().