| Package | org.si.sound.patterns |
| Class | public class Note |
| Inheritance | Note Object |
| Property | Defined By | ||
|---|---|---|---|
| data : * = null Any informations | Note | ||
| gateTime : Number = NaN Gate time of this note, Number.NaN sets playing with swquencers default gateTime. | Note | ||
| length : Number = 0 Length in 16th beat [16 for whole tone], Number.NaN sets playing with sequencers default length. | Note | ||
| note : int = 0 Note number[-1-127], -1 (or all negatives) sets playing with sequencers default note. | Note | ||
| velocity : int = 0 Velocity[-1-128], -1 (or all negatives) sets playing with sequencers default velocity, 0 sets no note (rest). | Note | ||
| voiceIndex : Number = 0 Voice index refering from PatternSequencer.voiceList, -1 (or all negatives) sets no voice changing. | Note | ||
| Method | Defined By | ||
|---|---|---|---|
Note(note:int = -1, velocity:int = 0, length:Number, voiceIndex:int = -1, gateTime:Number, data:* = null) constructor
| Note | ||
return new instance copied parameters from this note. | Note | ||
Copy from another note. | Note | ||
setNote(note:int = -1, velocity:int = -1, length:Number, voiceIndex:int = -1, gateTime:Number, data:* = null):Note Set note. | Note | ||
Set as rest. | Note | ||
| data | property |
public var data:* = nullAny informations
| gateTime | property |
public var gateTime:Number = NaNGate time of this note, Number.NaN sets playing with swquencers default gateTime.
| length | property |
public var length:Number = 0Length in 16th beat [16 for whole tone], Number.NaN sets playing with sequencers default length.
| note | property |
public var note:int = 0Note number[-1-127], -1 (or all negatives) sets playing with sequencers default note.
| velocity | property |
public var velocity:int = 0Velocity[-1-128], -1 (or all negatives) sets playing with sequencers default velocity, 0 sets no note (rest).
| voiceIndex | property |
public var voiceIndex:Number = 0Voice index refering from PatternSequencer.voiceList, -1 (or all negatives) sets no voice changing.
See also
| Note | () | Constructor |
public function Note(note:int = -1, velocity:int = 0, length:Number, voiceIndex:int = -1, gateTime:Number, data:* = null)constructor
Parametersnote:int (default = -1) — Note number[-1-127], -1 sets playing with sequencer's default note.
| |
velocity:int (default = 0) — Velocity[-1-128], -1 sets playing with sequencer's default velocity, 0 sets no note (rest).
| |
length:Number (default = NaN) — Length in 16th beat [16 for whole tone], Number.NaN sets playing with sequencers default length.
| |
voiceIndex:int (default = -1) — Voice index refering from PatternSequencer.voiceList, -1 (or all negatives) sets no voice changing.
| |
gateTime:Number (default = NaN) — Gate time of this note[0-1], Number.NaN sets playing with swquencers default gateTime.
| |
data:* (default = null) — Any informations you want.
|
See also
| clone | () | method |
public function clone():Notereturn new instance copied parameters from this note.
ReturnsNote — new clone instance
|
| copyFrom | () | method |
public function copyFrom(src:Note):NoteCopy from another note.
Parameters
src:Note — source note instnace.
|
Note — this instance
|
| setNote | () | method |
public function setNote(note:int = -1, velocity:int = -1, length:Number, voiceIndex:int = -1, gateTime:Number, data:* = null):NoteSet note.
Parameters
note:int (default = -1) — Note number[-1-127], -1 sets playing with sequencer's default note.
| |
velocity:int (default = -1) — Velocity[-1-128], -1 sets playing with sequencer's default velocity, 0 sets no note (rest).
| |
length:Number (default = NaN) — Length in 16th beat [16 for whole tone], Number.NaN sets playing with sequencers default length.
| |
voiceIndex:int (default = -1) — Voice index refering from PatternSequencer.voiceList, -1 (or all negatives) sets no voice changing. | |
gateTime:Number (default = NaN) — Gate time of this note[0-1], Number.NaN sets playing with swquencers default gateTime.
| |
data:* (default = null) — Any informations you want.
|
Note — this instance.
|
See also
| setRest | () | method |