30 jassert (midiChannel > 0 && midiChannel <= 16);
78 return noteID ==
other.noteID;
84 return noteID !=
other.noteID;
100 void runTest()
override
102 beginTest (
"getFrequencyInHertz");
105 note.initialNote = 60;
106 note.totalPitchbendInSemitones = -0.5;
119 expect (ratio > 1.0 /
oneCent);
This class represents a single value for any of the MPE dimensions of control.
This is a base class for classes that perform a unit test.
unsigned short uint16
A platform-independent 16-bit unsigned integer type.
Type unalignedPointerCast(void *ptr) noexcept
Casts a pointer to another type via void*, which suppresses the cast-align warning which sometimes ar...
unsigned char uint8
A platform-independent 8-bit unsigned integer type.
This struct represents a playing MPE note.
KeyState
Possible values for the note key state.
@ off
The key is up (off).
uint8 initialNote
The MIDI note number that was sent when the note was triggered.
double getFrequencyInHertz(double frequencyOfA=440.0) const noexcept
Returns the current frequency of the note in Hertz.
MPENote() noexcept
Default constructor.
bool operator!=(const MPENote &other) const noexcept
Returns true if two notes are different notes, determined by their unique ID.
uint8 midiChannel
The MIDI channel which this note uses.
bool isValid() const noexcept
Checks whether the MPE note is valid.
bool operator==(const MPENote &other) const noexcept
Returns true if two notes are the same, determined by their unique ID.