Packageorg.si.sound.patterns
Classpublic class Note
InheritanceNote Inheritance Object

Note object used in PatternSequencer.



Public Properties
 PropertyDefined 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
Public Methods
 MethodDefined 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
Property Detail
dataproperty
public var data:* = null

Any informations

gateTimeproperty 
public var gateTime:Number = NaN

Gate time of this note, Number.NaN sets playing with swquencers default gateTime.

lengthproperty 
public var length:Number = 0

Length in 16th beat [16 for whole tone], Number.NaN sets playing with sequencers default length.

noteproperty 
public var note:int = 0

Note number[-1-127], -1 (or all negatives) sets playing with sequencers default note.

velocityproperty 
public var velocity:int = 0

Velocity[-1-128], -1 (or all negatives) sets playing with sequencers default velocity, 0 sets no note (rest).

voiceIndexproperty 
public var voiceIndex:Number = 0

Voice index refering from PatternSequencer.voiceList, -1 (or all negatives) sets no voice changing.

See also

si.org.sound.PatternSequencer.voiceList
Constructor Detail
Note()Constructor
public function Note(note:int = -1, velocity:int = 0, length:Number, voiceIndex:int = -1, gateTime:Number, data:* = null)

constructor

Parameters
note: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

si.org.sound.PatternSequencer.voiceList.
Method Detail
clone()method
public function clone():Note

return new instance copied parameters from this note.

Returns
Note — new clone instance
copyFrom()method 
public function copyFrom(src:Note):Note

Copy from another note.

Parameters

src:Note — source note instnace.

Returns
Note — this instance
setNote()method 
public function setNote(note:int = -1, velocity:int = -1, length:Number, voiceIndex:int = -1, gateTime:Number, data:* = null):Note

Set 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.

Returns
Note — this instance.

See also

si.org.sound.PatternSequencer.voiceList.
setRest()method 
public function setRest():Note

Set as rest.

Returns
Note