Record Class ARI1EventNotePitchBend
java.lang.Object
java.lang.Record
com.io7m.aradine.instrument.spi1.ARI1EventNotePitchBend
- Record Components:
timeOffsetInFrames- The offset of the note from the start of the processing periodpitch- The signed pitch bend value
- All Implemented Interfaces:
ARI1EventNoteType, ARI1EventType
public record ARI1EventNotePitchBend(int timeOffsetInFrames, double pitch)
extends Record
implements ARI1EventNoteType
The pitch bend has changed.
-
Constructor Summary
ConstructorsConstructorDescriptionARI1EventNotePitchBend(int timeOffsetInFrames, double pitch) Creates an instance of aARI1EventNotePitchBendrecord 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.doublepitch()Returns the value of thepitchrecord component.intReturns the value of thetimeOffsetInFramesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ARI1EventNotePitchBend
public ARI1EventNotePitchBend(int timeOffsetInFrames, double pitch) Creates an instance of aARI1EventNotePitchBendrecord class.- Parameters:
timeOffsetInFrames- the value for thetimeOffsetInFramesrecord componentpitch- the value for thepitchrecord 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
-
pitch
-