OpenShot Audio Library | OpenShotAudio 0.3.2
|
#include <juce_MidiMessage.h>
Public Types | |
enum | SmpteTimecodeType { fps24 = 0 , fps25 = 1 , fps30drop = 2 , fps30 = 3 } |
enum | MidiMachineControlCommand { mmc_stop = 1 , mmc_play = 2 , mmc_deferredplay = 3 , mmc_fastforward = 4 , mmc_rewind = 5 , mmc_recordStart = 6 , mmc_recordStop = 7 , mmc_pause = 9 } |
Encapsulates a MIDI message.
Definition at line 34 of file juce_MidiMessage.h.
Types of MMC command.
Definition at line 799 of file juce_MidiMessage.h.
SMPTE timecode types. Used by the getFullFrameParameters() and fullFrame() methods.
Definition at line 765 of file juce_MidiMessage.h.
Creates a 3-byte short midi message.
byte1 | message byte 1 |
byte2 | message byte 2 |
byte3 | message byte 3 |
timeStamp | the time to give the midi message - this value doesn't use any particular units, so will be application-specific |
Definition at line 136 of file juce_MidiMessage.cpp.
Creates a 2-byte short midi message.
byte1 | message byte 1 |
byte2 | message byte 2 |
timeStamp | the time to give the midi message - this value doesn't use any particular units, so will be application-specific |
Definition at line 126 of file juce_MidiMessage.cpp.
Creates a 1-byte short midi message.
byte1 | message byte 1 |
timeStamp | the time to give the midi message - this value doesn't use any particular units, so will be application-specific |
Definition at line 117 of file juce_MidiMessage.cpp.
|
inline |
Creates a midi message from a list of bytes.
Definition at line 67 of file juce_MidiMessage.h.
Creates a midi message from a block of data.
Definition at line 107 of file juce_MidiMessage.cpp.
juce::MidiMessage::MidiMessage | ( | const void * | data, |
int | maxBytesToUse, | ||
int & | numBytesUsed, | ||
uint8 | lastStatusByte, | ||
double | timeStamp = 0 , |
||
bool | sysexHasEmbeddedLength = true |
||
) |
Reads the next midi message from some data.
This will read as many bytes from a data stream as it needs to make a complete message, and will return the number of bytes it used. This lets you read a sequence of midi messages from a file or stream.
data | the data to read from |
maxBytesToUse | the maximum number of bytes it's allowed to read |
numBytesUsed | returns the number of bytes that were actually needed |
lastStatusByte | in a sequence of midi messages, the initial byte can be dropped from a message if it's the same as the first byte of the previous message, so this lets you supply the byte to use if the first byte of the message has in fact been dropped. |
timeStamp | the time to give the midi message - this value doesn't use any particular units, so will be application-specific |
sysexHasEmbeddedLength | when reading sysexes, this flag indicates whether to expect the data to begin with a variable-length field indicating its size |
Definition at line 165 of file juce_MidiMessage.cpp.
|
noexcept |
Creates an active-sense message. Since the MidiMessage has to contain a valid message, this default constructor just initialises it with an empty sysex message.
Definition at line 100 of file juce_MidiMessage.cpp.
Referenced by createSysExMessage(), midiClock(), midiContinue(), midiStart(), and midiStop().
juce::MidiMessage::MidiMessage | ( | const MidiMessage & | other | ) |
Creates a copy of another midi message.
Definition at line 147 of file juce_MidiMessage.cpp.
juce::MidiMessage::MidiMessage | ( | const MidiMessage & | other, |
double | newTimeStamp | ||
) |
Creates a copy of another midi message, with a different timestamp.
Definition at line 156 of file juce_MidiMessage.cpp.
|
noexcept |
Destructor.
Definition at line 311 of file juce_MidiMessage.cpp.
|
noexcept |
Move constructor
Definition at line 295 of file juce_MidiMessage.cpp.
Adds a value to the message's timestamp. The units for the timestamp will be application-specific.
Definition at line 174 of file juce_MidiMessage.h.
|
staticnoexcept |
Creates an aftertouch message.
channel | the midi channel, in the range 1 to 16 |
noteNumber | the key number, 0 to 127 |
aftertouchAmount | the amount of aftertouch, 0 to 127 |
Definition at line 462 of file juce_MidiMessage.cpp.
|
staticnoexcept |
Creates an all-controllers-off message.
channel | the midi channel, in the range 1 to 16 |
Definition at line 639 of file juce_MidiMessage.cpp.
|
staticnoexcept |
Creates an all-notes-off message.
channel | the midi channel, in the range 1 to 16 |
Definition at line 611 of file juce_MidiMessage.cpp.
|
staticnoexcept |
Creates an all-sound-off message.
channel | the midi channel, in the range 1 to 16 |
Definition at line 622 of file juce_MidiMessage.cpp.
|
staticnoexcept |
Creates a channel-pressure change event.
channel | the midi channel: 1 to 16 |
pressure | the pressure, 0 to 127 |
Definition at line 486 of file juce_MidiMessage.cpp.
|
staticnoexcept |
Creates a controller message.
channel | the midi channel, in the range 1 to 16 |
controllerType | the type of controller |
value | the controller value |
Definition at line 566 of file juce_MidiMessage.cpp.
|
static |
Creates a system-exclusive message. The data passed in is wrapped with header and tail bytes of 0xf0 and 0xf7.
Definition at line 657 of file juce_MidiMessage.cpp.
|
staticnoexcept |
Creates an end-of-track meta-event.
Definition at line 877 of file juce_MidiMessage.cpp.
|
staticnoexcept |
Converts a floating-point value between 0 and 1 to a MIDI 7-bit value between 0 and 127.
Definition at line 40 of file juce_MidiMessage.cpp.
|
static |
Creates a full-frame MTC message.
Definition at line 938 of file juce_MidiMessage.cpp.
|
noexcept |
Returns the amount of aftertouch from an aftertouch messages.
The value returned is in the range 0 to 127, and will be nonsense for messages other than aftertouch messages.
Definition at line 456 of file juce_MidiMessage.cpp.
Referenced by getDescription(), and juce::Synthesiser::handleMidiEvent().
|
noexcept |
Returns the midi channel associated with the message.
Definition at line 359 of file juce_MidiMessage.cpp.
Referenced by getDescription(), juce::Synthesiser::handleMidiEvent(), juce::MPESynthesiser::handleMidiEvent(), juce::MidiKeyboardState::processNextMidiEvent(), and juce::MPEZoneLayout::processNextMidiEvent().
|
noexcept |
Returns the pressure from a channel pressure change message.
Definition at line 480 of file juce_MidiMessage.cpp.
Referenced by getDescription(), and juce::Synthesiser::handleMidiEvent().
Returns the name of a controller type number, or nullptr if unknown for this controller number.
Definition at line 1103 of file juce_MidiMessage.cpp.
Referenced by getDescription().
|
noexcept |
Returns the controller number of a controller message.
The name of the controller can be looked up using the getControllerName() method. Note that the value returned is invalid for messages that aren't controller changes.
Definition at line 554 of file juce_MidiMessage.cpp.
Referenced by getDescription(), juce::Synthesiser::handleMidiEvent(), juce::MPESynthesiser::handleMidiEvent(), and juce::MPEZoneLayout::processNextMidiEvent().
|
noexcept |
Returns the controller value from a controller message.
A value 0 to 127 is returned to indicate the new controller position. Note that the value returned is invalid for messages that aren't controller changes.
Definition at line 560 of file juce_MidiMessage.cpp.
Referenced by getDescription(), juce::Synthesiser::handleMidiEvent(), juce::MPESynthesiser::handleMidiEvent(), and juce::MPEZoneLayout::processNextMidiEvent().
String juce::MidiMessage::getDescription | ( | ) | const |
Returns a human-readable description of the midi message as a string, for example "Note On C#3 Velocity 120 Channel 1".
Definition at line 329 of file juce_MidiMessage.cpp.
|
noexcept |
Returns the velocity of a note-on or note-off message.
The value returned will be in the range 0 to 1.0 If the message isn't a note-on or off event, it will return 0.
Definition at line 431 of file juce_MidiMessage.cpp.
Referenced by juce::Synthesiser::handleMidiEvent(), and juce::MidiKeyboardState::processNextMidiEvent().
|
noexcept |
Extracts the timecode information from a full-frame midi timecode message.
You should only call this on messages where you've used isFullFrame() to check that they're the right kind.
Definition at line 925 of file juce_MidiMessage.cpp.
Returns the name of a bank of GM instruments, or nullptr if unknown for this bank number.
midiBankNumber | the bank, 0 to 15 |
Definition at line 1069 of file juce_MidiMessage.cpp.
Returns the standard name of a GM instrument, or nullptr if unknown for this index.
midiInstrumentNumber | the program number 0 to 127 |
Definition at line 1028 of file juce_MidiMessage.cpp.
|
noexcept |
Returns the key from a key-signature meta-event. This method must only be called if isKeySignatureMetaEvent() is true. A positive number here indicates the number of sharps in the key signature, and a negative number indicates a number of flats. So e.g. 3 = F# + C# + G#, -2 = Bb + Eb
Definition at line 860 of file juce_MidiMessage.cpp.
|
staticnoexcept |
Based on the first byte of a short midi message, this uses a lookup table to return the message length (either 1, 2, or 3 bytes).
The value passed in must be 0x80 or higher.
Definition at line 79 of file juce_MidiMessage.cpp.
Referenced by MidiMessage(), and MidiMessage().
|
noexcept |
Returns a pointer to the data in a meta-event.
Definition at line 701 of file juce_MidiMessage.cpp.
Referenced by getKeySignatureNumberOfSharpsOrFlats(), getTempoSecondsPerQuarterNote(), getTextFromTextMetaEvent(), and isKeySignatureMajorKey().
|
noexcept |
Returns the length of the data for a meta-event.
Definition at line 688 of file juce_MidiMessage.cpp.
Referenced by getTextFromTextMetaEvent().
|
noexcept |
Returns a meta-event's type number.
If the message isn't a meta-event, this will return -1.
Definition at line 682 of file juce_MidiMessage.cpp.
Referenced by isEndOfTrackMetaEvent(), isKeySignatureMetaEvent(), isTextMetaEvent(), and isTrackMetaEvent().
|
noexcept |
Returns the channel number from a channel meta-event.
Definition at line 763 of file juce_MidiMessage.cpp.
|
noexcept |
For an MMC message, this returns its type.
Make sure it's actually an MMC message with isMidiMachineControlMessage() before calling this method.
Definition at line 957 of file juce_MidiMessage.cpp.
|
staticnoexcept |
Returns the frequency of a midi note number.
The frequencyOfA parameter is an optional frequency for 'A', normally 440-444Hz for concert pitch.
Definition at line 1018 of file juce_MidiMessage.cpp.
|
static |
Returns the name of a midi note number.
E.g "C", "D#", etc.
noteNumber | the midi note number, 0 to 127 |
useSharps | if true, sharpened notes are used, e.g. "C#", otherwise they'll be flattened, e.g. "Db" |
includeOctaveNumber | if true, the octave number will be appended to the string, e.g. "C#4" |
octaveNumForMiddleC | if an octave number is being appended, this indicates the number that will be used for middle C's octave |
Definition at line 999 of file juce_MidiMessage.cpp.
Referenced by getDescription().
|
noexcept |
Returns the midi note number for note-on and note-off messages. If the message isn't a note-on or off, the value returned is undefined.
Definition at line 412 of file juce_MidiMessage.cpp.
Referenced by getDescription(), juce::Synthesiser::handleMidiEvent(), and juce::MidiKeyboardState::processNextMidiEvent().
|
noexcept |
Returns the pitch wheel position from a pitch-wheel move message.
The value returned is a 14-bit number from 0 to 0x3fff, indicating the wheel position. If called for messages which aren't pitch wheel events, the number returned will be nonsense.
Definition at line 527 of file juce_MidiMessage.cpp.
Referenced by getDescription(), and juce::Synthesiser::handleMidiEvent().
|
noexcept |
Returns the new program number of a program change message. If the message isn't a program change, the value returned is undefined.
Definition at line 509 of file juce_MidiMessage.cpp.
Referenced by getDescription(), juce::Synthesiser::handleMidiEvent(), and juce::MPESynthesiser::handleMidiEvent().
|
noexcept |
Returns the sequence number of a quarter-frame midi timecode message. This will be a value between 0 and 7.
Definition at line 906 of file juce_MidiMessage.cpp.
|
noexcept |
Returns the value from a quarter-frame message. This will be the lower nybble of the message's data-byte, a value between 0 and 15
Definition at line 907 of file juce_MidiMessage.cpp.
|
inlinenoexcept |
Returns a pointer to the raw midi data.
Definition at line 133 of file juce_MidiMessage.h.
Referenced by juce::MidiBuffer::addEvent(), getAfterTouchValue(), getChannel(), getChannelPressureValue(), getControllerNumber(), getControllerValue(), getDescription(), getMetaEventData(), getMetaEventLength(), getMetaEventType(), getMidiChannelMetaEventChannel(), getMidiMachineControlCommand(), getNoteNumber(), getPitchWheelValue(), getProgramChangeNumber(), getQuarterFrameSequenceNumber(), getQuarterFrameValue(), getSongPositionPointerMidiBeat(), getSysExData(), getVelocity(), isActiveSense(), isAftertouch(), isAllNotesOff(), isAllSoundOff(), isChannelPressure(), isController(), isFullFrame(), isMetaEvent(), isMidiChannelMetaEvent(), isMidiClock(), isMidiContinue(), isMidiMachineControlMessage(), isMidiStart(), isMidiStop(), isNoteOnOrOff(), isPitchWheel(), isProgramChange(), isQuarterFrame(), isResetAllControllers(), isSoftPedalOff(), isSoftPedalOn(), isSongPositionPointer(), isSostenutoPedalOff(), isSostenutoPedalOn(), isSustainPedalOff(), isSustainPedalOn(), isSysEx(), isTempoMetaEvent(), isTimeSignatureMetaEvent(), and isTrackNameEvent().
|
inlinenoexcept |
Returns the number of bytes of data in the message.
Definition at line 138 of file juce_MidiMessage.h.
Referenced by juce::MidiBuffer::addEvent(), and getDescription().
Returns the standard name of a channel 10 percussion sound, or nullptr if unknown for this note number.
midiNoteNumber | the key number, 35 to 81 |
Definition at line 1082 of file juce_MidiMessage.cpp.
|
noexcept |
Returns the midi beat-number of a song-position-pointer message.
Definition at line 884 of file juce_MidiMessage.cpp.
|
noexcept |
Returns a pointer to the sysex data inside the message. If this event isn't a sysex event, it'll return 0.
Definition at line 668 of file juce_MidiMessage.cpp.
|
noexcept |
Returns the size of the sysex data. This value excludes the 0xf0 header byte and the 0xf7 at the end.
Definition at line 673 of file juce_MidiMessage.cpp.
Returns the tick length from a tempo meta-event.
timeFormat | the 16-bit time format value from the midi file's header. |
Definition at line 782 of file juce_MidiMessage.cpp.
|
noexcept |
Calculates the seconds-per-quarter-note from a tempo meta-event.
Definition at line 769 of file juce_MidiMessage.cpp.
String juce::MidiMessage::getTextFromTextMetaEvent | ( | ) | const |
Returns the text from a text meta-event.
Definition at line 720 of file juce_MidiMessage.cpp.
Returns the time-signature values from a time-signature meta-event.
Definition at line 821 of file juce_MidiMessage.cpp.
|
inlinenoexcept |
Returns the timestamp associated with this message.
The exact meaning of this time and its units will vary, as messages are used in a variety of different contexts.
If you're getting the message from a midi file, this could be a time in seconds, or a number of ticks - see MidiFile::convertTimestampTicksToSeconds().
If the message is being used in a MidiBuffer, it might indicate the number of audio samples from the start of the buffer.
If the message was created by a MidiInput, see MidiInputCallback::handleIncomingMidiMessage() for details of the way that it initialises this value.
Definition at line 163 of file juce_MidiMessage.h.
Referenced by juce::MidiMessageCollector::addMessageToQueue().
|
noexcept |
Returns the velocity of a note-on or note-off message.
The value returned will be in the range 0 to 127. If the message isn't a note-on or off event, it will return 0.
Definition at line 423 of file juce_MidiMessage.cpp.
Referenced by getDescription(), and getFloatVelocity().
|
noexcept |
Returns true if this is an active-sense message.
Definition at line 680 of file juce_MidiMessage.cpp.
|
noexcept |
Returns true if the message is an aftertouch event.
For aftertouch events, use the getNoteNumber() method to find out the key that it applies to, and getAftertouchValue() to find out the amount. Use getChannel() to find out the channel.
Definition at line 451 of file juce_MidiMessage.cpp.
Referenced by getAfterTouchValue(), getDescription(), juce::Synthesiser::handleMidiEvent(), and juce::MPEInstrument::processNextMidiEvent().
|
noexcept |
Checks whether this message is an all-notes-off message.
Definition at line 616 of file juce_MidiMessage.cpp.
Referenced by getDescription(), juce::Synthesiser::handleMidiEvent(), juce::MidiKeyboardState::processNextMidiEvent(), and juce::MPEInstrument::processNextMidiEvent().
|
noexcept |
Checks whether this message is an all-sound-off message.
Definition at line 627 of file juce_MidiMessage.cpp.
Referenced by getDescription(), and juce::Synthesiser::handleMidiEvent().
|
noexcept |
Returns true if the message is a channel-pressure change event.
This is like aftertouch, but common to the whole channel rather than a specific note. Use getChannelPressureValue() to find out the pressure, and getChannel() to find out the channel.
Definition at line 475 of file juce_MidiMessage.cpp.
Referenced by getChannelPressureValue(), getDescription(), juce::Synthesiser::handleMidiEvent(), and juce::MPEInstrument::processNextMidiEvent().
|
noexcept |
Returns true if this is a midi controller message.
Definition at line 543 of file juce_MidiMessage.cpp.
Referenced by getControllerNumber(), getControllerValue(), getDescription(), juce::Synthesiser::handleMidiEvent(), juce::MPESynthesiser::handleMidiEvent(), juce::MPEInstrument::processNextMidiEvent(), and juce::MPEZoneLayout::processNextMidiEvent().
Returns true if this message is a controller message and if it has the specified controller type.
Definition at line 548 of file juce_MidiMessage.cpp.
Referenced by isSoftPedalOff(), isSoftPedalOn(), isSostenutoPedalOff(), isSostenutoPedalOn(), isSustainPedalOff(), and isSustainPedalOn().
|
noexcept |
Returns true if this is an 'end-of-track' meta-event.
Definition at line 712 of file juce_MidiMessage.cpp.
Returns true if the message applies to the given midi channel.
channelNumber | the channel number to look for, in the range 1 to 16 |
Definition at line 369 of file juce_MidiMessage.cpp.
|
noexcept |
Returns true if this is a full-frame midi timecode message.
Definition at line 914 of file juce_MidiMessage.cpp.
|
noexcept |
Returns true if this key-signature event is major, or false if it's minor. This method must only be called if isKeySignatureMetaEvent() is true.
Definition at line 865 of file juce_MidiMessage.cpp.
|
noexcept |
Returns true if this is a 'key-signature' meta-event.
Definition at line 855 of file juce_MidiMessage.cpp.
Referenced by juce::MidiFile::findAllKeySigEvents().
|
noexcept |
Returns true if this event is a meta-event.
Meta-events are things like tempo changes, track names, etc.
Definition at line 679 of file juce_MidiMessage.cpp.
Referenced by getDescription(), and getMetaEventData().
|
noexcept |
Returns true if this is a 'channel' meta-event.
A channel meta-event specifies the midi channel that should be used for subsequent meta-events.
Definition at line 761 of file juce_MidiMessage.cpp.
Referenced by getMidiChannelMetaEventChannel().
|
noexcept |
Returns true if this is a midi clock event.
Definition at line 902 of file juce_MidiMessage.cpp.
|
noexcept |
Returns true if this is a midi continue event.
Definition at line 896 of file juce_MidiMessage.cpp.
|
noexcept |
Checks whether this is an MMC "goto" message. If it is, the parameters passed-in are set to the time that the message contains.
Definition at line 970 of file juce_MidiMessage.cpp.
|
noexcept |
Checks whether this is an MMC message. If it is, you can use the getMidiMachineControlCommand() to find out its type.
Definition at line 947 of file juce_MidiMessage.cpp.
Referenced by getMidiMachineControlCommand().
Returns true if the given midi note number is a black key.
Definition at line 1023 of file juce_MidiMessage.cpp.
|
noexcept |
Returns true if this is a midi start event.
Definition at line 893 of file juce_MidiMessage.cpp.
|
noexcept |
Returns true if this is a midi stop event.
Definition at line 899 of file juce_MidiMessage.cpp.
Returns true if this message is a 'key-up' event.
If returnTrueForNoteOnVelocity0 is true, then his will also return true for a note-on event with a velocity of 0.
Definition at line 398 of file juce_MidiMessage.cpp.
Referenced by getDescription(), juce::Synthesiser::handleMidiEvent(), juce::MidiKeyboardState::processNextMidiEvent(), and juce::MPEInstrument::processNextMidiEvent().
Returns true if this message is a 'key-down' event.
returnTrueForVelocity0 | if true, then if this event is a note-on with velocity 0, it will still be considered to be a note-on and the method will return true. If returnTrueForVelocity0 is false, then if this is a note-on event with velocity 0, it'll be regarded as a note-off, and the method will return false |
Definition at line 390 of file juce_MidiMessage.cpp.
Referenced by getDescription(), juce::Synthesiser::handleMidiEvent(), juce::MidiKeyboardState::processNextMidiEvent(), and juce::MPEInstrument::processNextMidiEvent().
|
noexcept |
Returns true if this message is a 'key-down' or 'key-up' event.
Definition at line 406 of file juce_MidiMessage.cpp.
Referenced by getVelocity().
|
noexcept |
Returns true if the message is a pitch-wheel move.
Definition at line 522 of file juce_MidiMessage.cpp.
Referenced by getDescription(), getPitchWheelValue(), juce::Synthesiser::handleMidiEvent(), and juce::MPEInstrument::processNextMidiEvent().
|
noexcept |
Returns true if the message is a program (patch) change message.
Definition at line 504 of file juce_MidiMessage.cpp.
Referenced by getDescription(), getProgramChangeNumber(), juce::Synthesiser::handleMidiEvent(), and juce::MPESynthesiser::handleMidiEvent().
|
noexcept |
Returns true if this is a quarter-frame midi timecode message.
Definition at line 905 of file juce_MidiMessage.cpp.
|
noexcept |
Checks whether this message is a reset all controllers message.
Definition at line 633 of file juce_MidiMessage.cpp.
Referenced by juce::MPEInstrument::processNextMidiEvent().
|
noexcept |
Returns true if this message is a 'soft pedal up' controller message.
Definition at line 501 of file juce_MidiMessage.cpp.
|
noexcept |
Returns true if this message is a 'soft pedal down' controller message.
Definition at line 500 of file juce_MidiMessage.cpp.
|
noexcept |
Returns true if this is a song-position-pointer message.
Definition at line 883 of file juce_MidiMessage.cpp.
|
noexcept |
Returns true if this message is a 'sostenuto pedal up' controller message.
Definition at line 498 of file juce_MidiMessage.cpp.
|
noexcept |
Returns true if this message is a 'sostenuto pedal down' controller message.
Definition at line 497 of file juce_MidiMessage.cpp.
|
noexcept |
Returns true if this message is a 'sustain pedal up' controller message.
Definition at line 495 of file juce_MidiMessage.cpp.
|
noexcept |
Returns true if this message is a 'sustain pedal down' controller message.
Definition at line 494 of file juce_MidiMessage.cpp.
|
noexcept |
Returns true if this is a system-exclusive message.
Definition at line 652 of file juce_MidiMessage.cpp.
Referenced by getSysExData(), and getSysExDataSize().
|
noexcept |
Returns true if this is a 'tempo' meta-event.
Definition at line 760 of file juce_MidiMessage.cpp.
Referenced by juce::MidiFile::findAllTempoEvents(), and getTempoSecondsPerQuarterNote().
|
noexcept |
Returns true if this is a 'text' meta-event.
Definition at line 714 of file juce_MidiMessage.cpp.
|
noexcept |
Returns true if this is a 'time-signature' meta-event.
Definition at line 815 of file juce_MidiMessage.cpp.
Referenced by juce::MidiFile::findAllTimeSigEvents().
|
noexcept |
Returns true if this is a 'track' meta-event.
Definition at line 711 of file juce_MidiMessage.cpp.
|
noexcept |
Returns true if this is an 'track name' meta-event. You can use the getTextFromTextMetaEvent() method to get the track's name.
Definition at line 759 of file juce_MidiMessage.cpp.
|
static |
Creates a key-signature meta-event.
numberOfSharpsOrFlats | if positive, this indicates the number of sharps in the key; if negative, the number of flats |
isMinorKey | if true, the key is minor; if false, it is major |
Definition at line 870 of file juce_MidiMessage.cpp.
|
static |
Creates a master-volume change message.
volume | the volume, 0 to 1.0 |
Definition at line 644 of file juce_MidiMessage.cpp.
|
staticnoexcept |
Creates a midi channel meta-event.
channel | the midi channel, in the range 1 to 16 |
Definition at line 850 of file juce_MidiMessage.cpp.
|
staticnoexcept |
Creates a midi clock event.
Definition at line 903 of file juce_MidiMessage.cpp.
|
staticnoexcept |
Creates a midi continue event.
Definition at line 897 of file juce_MidiMessage.cpp.
|
static |
Creates an MMC message.
Definition at line 964 of file juce_MidiMessage.cpp.
|
static |
Creates an MMC "goto" message. This messages tells the device to go to a specific frame.
Definition at line 993 of file juce_MidiMessage.cpp.
|
staticnoexcept |
Creates a midi start event.
Definition at line 894 of file juce_MidiMessage.cpp.
|
staticnoexcept |
Creates a midi stop event.
Definition at line 900 of file juce_MidiMessage.cpp.
Multiplies the velocity of a note-on or note-off message by a given amount.
If the message isn't a note on or off, this will do nothing.
scaleFactor | the value by which to multiply the velocity |
Definition at line 442 of file juce_MidiMessage.cpp.
|
staticnoexcept |
Creates a key-up message.
channel | the midi channel, in the range 1 to 16 |
noteNumber | the key number, 0 to 127 |
Definition at line 603 of file juce_MidiMessage.cpp.
|
staticnoexcept |
Creates a key-up message.
channel | the midi channel, in the range 1 to 16 |
noteNumber | the key number, 0 to 127 |
velocity | in the range 0 to 1.0 |
Definition at line 598 of file juce_MidiMessage.cpp.
Referenced by juce::MidiMessageCollector::handleNoteOff(), and juce::MidiKeyboardState::noteOff().
|
staticnoexcept |
Creates a key-up message.
channel | the midi channel, in the range 1 to 16 |
noteNumber | the key number, 0 to 127 |
velocity | in the range 0 to 127 |
Definition at line 589 of file juce_MidiMessage.cpp.
|
staticnoexcept |
Creates a key-down message (using a floating-point velocity).
channel | the midi channel, in the range 1 to 16 |
noteNumber | the key number, 0 to 127 |
velocity | in the range 0 to 1.0 |
Definition at line 584 of file juce_MidiMessage.cpp.
Referenced by juce::MidiMessageCollector::handleNoteOn(), and juce::MidiKeyboardState::noteOn().
|
staticnoexcept |
Creates a key-down message (using an integer velocity).
channel | the midi channel, in the range 1 to 16 |
noteNumber | the key number, 0 to 127 |
velocity | in the range 0 to 127 |
Definition at line 575 of file juce_MidiMessage.cpp.
MidiMessage & juce::MidiMessage::operator= | ( | const MidiMessage & | other | ) |
Copies this message from another one.
Definition at line 267 of file juce_MidiMessage.cpp.
|
noexcept |
Move assignment operator
Definition at line 302 of file juce_MidiMessage.cpp.
|
staticnoexcept |
Converts a pitchbend value in semitones to a MIDI 14-bit pitchwheel position value.
Definition at line 48 of file juce_MidiMessage.cpp.
|
staticnoexcept |
Creates a pitch-wheel move message.
channel | the midi channel, in the range 1 to 16 |
position | the wheel position, in the range 0 to 16383 |
Definition at line 534 of file juce_MidiMessage.cpp.
|
staticnoexcept |
Creates a program-change message.
channel | the midi channel, in the range 1 to 16 |
programNumber | the midi program number, 0 to 127 |
Definition at line 515 of file juce_MidiMessage.cpp.
|
staticnoexcept |
Creates a quarter-frame MTC message.
sequenceNumber | a value 0 to 7 for the upper nybble of the message's data byte |
value | a value 0 to 15 for the lower nybble of the message's data byte |
Definition at line 909 of file juce_MidiMessage.cpp.
|
staticnoexcept |
Reads a midi variable-length integer.
data | the data to read the number from |
numBytesUsed | on return, this will be set to the number of bytes that were read |
Definition at line 60 of file juce_MidiMessage.cpp.
Referenced by getMetaEventData(), getMetaEventLength(), and MidiMessage().
Changes the message's midi channel. This won't do anything for non-channel messages like sysexes.
newChannelNumber | the channel number to change it to, in the range 1 to 16 |
Definition at line 379 of file juce_MidiMessage.cpp.
Changes the midi note number of a note-on or note-off message. If the message isn't a note on or off, this will do nothing.
Definition at line 417 of file juce_MidiMessage.cpp.
Changes the message's associated timestamp. The units for the timestamp will be application-specific - see the notes for getTimeStamp().
Definition at line 169 of file juce_MidiMessage.h.
Referenced by juce::MidiMessageCollector::handleNoteOff(), and juce::MidiMessageCollector::handleNoteOn().
Changes the velocity of a note-on or note-off message.
If the message isn't a note on or off, this will do nothing.
newVelocity | the new velocity, in the range 0 to 1.0 |
Definition at line 436 of file juce_MidiMessage.cpp.
|
staticnoexcept |
Creates a song-position-pointer message.
The position is a number of midi beats from the start of the song, where 1 midi beat is 6 midi clocks, and there are 24 midi clocks in a quarter-note. So there are 4 midi beats in a quarter-note.
Definition at line 886 of file juce_MidiMessage.cpp.
|
staticnoexcept |
Creates a tempo meta-event.
Definition at line 807 of file juce_MidiMessage.cpp.
|
static |
Creates a text meta-event.
Definition at line 728 of file juce_MidiMessage.cpp.
|
static |
Creates a time-signature meta-event.
Definition at line 836 of file juce_MidiMessage.cpp.
MidiMessage juce::MidiMessage::withTimeStamp | ( | double | newTimestamp | ) | const |
Return a copy of this message with a new timestamp. The units for the timestamp will be application-specific - see the notes for getTimeStamp().
Definition at line 354 of file juce_MidiMessage.cpp.