Packageorg.si.sound
Classpublic class Arpeggiator
InheritanceArpeggiator Inheritance PatternSequencer Inheritance SoundObject Inheritance flash.events.EventDispatcher

Arpeggiator provides monophonic arpeggio pattern sound.



Public Properties
 PropertyDefined By
  changePatternOnNextSegment : Boolean
True to change bass line pattern at the head of segment.
Arpeggiator
 InheritedcoarseTune : int
Master coarse tuning, 1 for half-tone.
SoundObject
 Inheriteddelay : Number
Sound delay, uint in 16th beat.
SoundObject
 Inheriteddriver : SiONDriver
[read-only] SiONDriver instrance to operate.
SoundObject
 Inheritedeffectors : Array
Array of SiEffectBase to modify this sound object's output.
SoundObject
 InheritedeffectSend1 : Number
Channel effect send level for slot 1 (0:Minimum - 1:Maximum), this property can control track after play().
SoundObject
 InheritedeffectSend2 : Number
Channel effect send level for slot 2 (0:Minimum - 1:Maximum), this property can control track after play().
SoundObject
 InheritedeffectSend3 : Number
Channel effect send level for slot 3 (0:Minimum - 1:Maximum), this property can control track after play().
SoundObject
 InheritedeffectSend4 : Number
Channel effect send level for slot 4 (0:Minimum - 1:Maximum), this property can control track after play().
SoundObject
 InheritedeventMask : int
Track event mask.
SoundObject
 InheritedeventTriggerID : int
Track event trigger ID
SoundObject
 InheritedfineTune : Number
Master fine tuning, 1 for half-tone, you can specify fineTune<-1 or fineTune>1.
SoundObject
 InheritedgateTime : Number
[override] current length in the sequence, you cannot change this property.
PatternSequencer
 InheritedisPlaying : Boolean
[read-only] is playing ?
SoundObject
 Inheritedlength : Number
[override] current length in the sequence, you cannot change this property.
PatternSequencer
 Inheritedmute : Boolean
Channel mute, this property can control track after play().
SoundObject
 Inheritedname : String
Name.
SoundObject
  note : int
[override] change root note of the scale
Arpeggiator
  noteLength : Number
note length in 16th beat.
Arpeggiator
 InheritednoteOffTriggerType : int
[read-only] Track note off trigger type
SoundObject
 InheritednoteOnTriggerType : int
[read-only] Track note on trigger type
SoundObject
  noteQuantize : int
[NOT RECOMENDED] Only for the compatibility before version 0.58, the getTime property can be used instead of this property.
Arpeggiator
 InheritedonEnterFrame : Function
callback on enter frame
PatternSequencer
 InheritedonEnterSegment : Function
callback on enter segment
PatternSequencer
 InheritedonExitFrame : Function
callback on exit frame
PatternSequencer
 Inheritedpan : Number
Channel panning (-1:Left - 0:Center - +1:Right), this property can control track after play().
SoundObject
 Inheritedparent : SoundObjectContainer
[read-only] parent container.
SoundObject
  pattern : Array
Note index array of the arpeggio pattern.
Arpeggiator
 InheritedpitchBend : Number
Channel pitch bend, 1 for halftone, this property can control track after play().
SoundObject
 Inheritedportament : int
portament
PatternSequencer
 Inheritedquantize : Number
Synchronizing quantizing, uint in 16th beat.
SoundObject
  scale : Scale
scale instance
Arpeggiator
  scaleIndex : int
index on scale
Arpeggiator
  scaleName : String
specify scale by name
Arpeggiator
 Inheritedsequencer : Sequencer
[read-only] the Sequencer instance belonging to this PatternSequencer, where the sequence pattern appears.
PatternSequencer
 Inheritedsynthesizer : VoiceReference
Synthesizer to generate sound
SoundObject
 InheritedtrackID : int
[read-only] Track id
SoundObject
 Inheritedvoice : SiONVoice
Voice data to play
SoundObject
 Inheritedvolume : Number
Channel volume (0:Minimum - 1:Maximum), this property can control track after play().
SoundObject
Public Methods
 MethodDefined By
  
Arpeggiator(scale:* = null, noteLength:Number = 2, pattern:Array = null)
constructor
Arpeggiator
 Inherited
fadeIn(time:Number):void
Set fading in.
SoundObject
 Inherited
fadeOut(time:Number):void
Set fading out.
SoundObject
 Inherited
play():void
[override] start sequence
PatternSequencer
 Inherited
reset():void
Reset
SoundObject
 Inherited
setVolume(slot:int, volume:Number):void
Set volume by index.
SoundObject
 Inherited
stop():void
[override] stop sequence
PatternSequencer
Events
 Event Summary Defined By
   Dispatch in each frame in PatternSequencer.Arpeggiator
   Dispatch in each segment in PatternSequencer.Arpeggiator
 Inherited Dispatch when the sound ends.SoundObject
 Inherited Dispatch when the note off appears in the sequence.SoundObject
 Inherited Dispatch when the sound starts.SoundObject
 Inherited Dispatch when the note on appears.SoundObject
Property Detail
changePatternOnNextSegmentproperty
changePatternOnNextSegment:Boolean

True to change bass line pattern at the head of segment.

The default value is true.


Implementation
    public function get changePatternOnNextSegment():Boolean
    public function set changePatternOnNextSegment(value:Boolean):void
noteproperty 
note:int[override]

change root note of the scale


Implementation
    public function get note():int
    public function set note(value:int):void
noteLengthproperty 
noteLength:Number

note length in 16th beat.


Implementation
    public function get noteLength():Number
    public function set noteLength(value:Number):void
noteQuantizeproperty 
noteQuantize:int

[NOT RECOMENDED] Only for the compatibility before version 0.58, the getTime property can be used instead of this property.


Implementation
    public function get noteQuantize():int
    public function set noteQuantize(value:int):void
patternproperty 
pattern:Array

Note index array of the arpeggio pattern. If the index is out of range, insert rest instead.


Implementation
    public function get pattern():Array
    public function set pattern(value:Array):void
scaleproperty 
scale:Scale

scale instance


Implementation
    public function get scale():Scale
    public function set scale(value:Scale):void
scaleIndexproperty 
scaleIndex:int

index on scale


Implementation
    public function get scaleIndex():int
    public function set scaleIndex(value:int):void
scaleNameproperty 
scaleName:String

specify scale by name


Implementation
    public function get scaleName():String
    public function set scaleName(value:String):void
Constructor Detail
Arpeggiator()Constructor
public function Arpeggiator(scale:* = null, noteLength:Number = 2, pattern:Array = null)

constructor

Parameters
scale:* (default = null) — Arpaggio scale, org.si.sion.utils.Scale instance, scale name String or null is suitable.
 
noteLength:Number (default = 2) — length for each note
 
pattern:Array (default = null) — Note index array of the arpeggio pattern. If the index is out of range, insert rest instead.

See also

Event Detail
enterFrame Event
Event Object Type: org.si.sound.events.SoundObjectEvent
SoundObjectEvent.type property = org.si.sound.events.SoundObjectEvent.ENTER_FRAME

Dispatch in each frame in PatternSequencer.

The properties of the event object have the following values:

PropertyValue
cancelablefalse
soundObjectTarget SoundObject.
tracknull. no meanings.
eventTriggerIDTrigger ID specifyed by setEventTrigger().
noteNote number.
bufferIndex0. no meanings
enterSegment Event  
Event Object Type: org.si.sound.events.SoundObjectEvent
SoundObjectEvent.type property = org.si.sound.events.SoundObjectEvent.ENTER_SEGMENT

Dispatch in each segment in PatternSequencer.

The properties of the event object have the following values:

PropertyValue
cancelablefalse
soundObjectTarget SoundObject.
tracknull. no meanings.
eventTriggerIDTrigger ID specifyed by setEventTrigger().
note0. no meanings
bufferIndex0. no meanings