new Note(pitch, velocity, start, duration)

Note abstraction. Instantiated by WX.Note.

Parameters

Name Type Optional Description

pitch

Number

 

MIDI pitch.

velocity

Number

 

MIDI velocity.

start

Number

 

Start time in tick.

duration

Number

 

Note durtion in tick.

Methods

static
changeDuration(delta)

Changes note duration by delta.

Parameter

Name Type Optional Description

delta

Number

 

Duration.

static
getEnd() → Number

Returns the note end time in tick.

Returns

Number 

static
setNote(note)

Sets note properties from a note.

Parameter

Name Type Optional Description

note

Note

 

static
toString() → String

Returns current properties in a string.

Returns

String 

static
translatePitch(delta)

Moves note pitch by delta.

Parameter

Name Type Optional Description

delta

Number

 

Pitch displacement.

static
translateStart(delta)

Moves note pitch by delta.

Parameter

Name Type Optional Description

delta

Number

 

Pitch displacement.

static
valueOf() → Number

Returns start time for numeric operation.

Returns

Number