Record Class ARI1EventNoteOff
java.lang.Object
java.lang.Record
com.io7m.aradine.instrument.spi1.ARI1EventNoteOff
- Record Components:
timeOffsetInFrames- The offset of the note from the start of the processing periodnote- The note numbervelocity- The velocity
- All Implemented Interfaces:
ARI1EventNoteType, ARI1EventType
public record ARI1EventNoteOff(int timeOffsetInFrames, int note, double velocity)
extends Record
implements ARI1EventNoteType
A note has stopped.
-
Constructor Summary
ConstructorsConstructorDescriptionARI1EventNoteOff(int timeOffsetInFrames, int note, double velocity) Creates an instance of aARI1EventNoteOffrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intnote()Returns the value of thenoterecord component.intReturns the value of thetimeOffsetInFramesrecord component.final StringtoString()Returns a string representation of this record class.doublevelocity()Returns the value of thevelocityrecord component.
-
Constructor Details
-
ARI1EventNoteOff
public ARI1EventNoteOff(int timeOffsetInFrames, int note, double velocity) Creates an instance of aARI1EventNoteOffrecord class.- Parameters:
timeOffsetInFrames- the value for thetimeOffsetInFramesrecord componentnote- the value for thenoterecord componentvelocity- the value for thevelocityrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
timeOffsetInFrames
public int timeOffsetInFrames()Returns the value of thetimeOffsetInFramesrecord component.- Specified by:
timeOffsetInFramesin interfaceARI1EventType- Returns:
- the value of the
timeOffsetInFramesrecord component
-
note
-
velocity
-