Record Class ARI1EventNoteOn
java.lang.Object
java.lang.Record
com.io7m.aradine.instrument.spi1.ARI1EventNoteOn
- 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 ARI1EventNoteOn(int timeOffsetInFrames, int note, double velocity)
extends Record
implements ARI1EventNoteType
A note has started.
-
Constructor Summary
ConstructorsConstructorDescriptionARI1EventNoteOn(int timeOffsetInFrames, int note, double velocity) Creates an instance of aARI1EventNoteOnrecord 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
-
ARI1EventNoteOn
public ARI1EventNoteOn(int timeOffsetInFrames, int note, double velocity) Creates an instance of aARI1EventNoteOnrecord 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
-