Packageorg.si.sound
Classpublic class ChordPad
InheritanceChordPad Inheritance MultiTrackSoundObject Inheritance SoundObject Inheritance flash.events.EventDispatcher

Chord pad provides polyphonic synthesizer controled by chord and rhythm pattern.



Public Properties
 PropertyDefined By
  changePatternOnSegment : Boolean
True to change bass line pattern at the head of segment.
ChordPad
  chord : Chord
chord instance
ChordPad
  chordName : String
specify chord by name
ChordPad
 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
Track gate time (0:Minimum - 1:Maximum).
SoundObject
 InheritedisPlaying : Boolean
[read-only] is playing ?
SoundObject
 Inheritedlength : Number
Sound length in 16th beat, 0 sets inifinity length.
SoundObject
 Inheritedmute : Boolean
Channel mute, this property can control track after play().
SoundObject
 Inheritedname : String
Name.
SoundObject
  note : int
[override] root note of current chord
ChordPad
  noteLength : Number
note length in 16th beat.
ChordPad
 InheritednoteOffTriggerType : int
[read-only] Track note off trigger type
SoundObject
 InheritednoteOnTriggerType : int
[read-only] Track note on trigger type
SoundObject
  operatorCount : int
[read-only] Number of monophonic operators
ChordPad
  operators : Vector.<Sequencer>
[read-only] list of monophonic operators
ChordPad
 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
Number Array of the sequence notes' length.
ChordPad
 InheritedpitchBend : Number
Channel pitch bend, 1 for halftone, this property can control track after play().
SoundObject
 Inheritedquantize : Number
Synchronizing quantizing, uint in 16th beat.
SoundObject
 Inheritedsynthesizer : VoiceReference
Synthesizer to generate sound
SoundObject
 InheritedtrackCount : int
[read-only] Returns the number of tracks.
MultiTrackSoundObject
 InheritedtrackID : int
[read-only] Track id
SoundObject
 Inheritedvoice : SiONVoice
Voice data to play
SoundObject
  voiceMode : int
voicing mode
ChordPad
 Inheritedvolume : Number
Channel volume (0:Minimum - 1:Maximum), this property can control track after play().
SoundObject
Public Methods
 MethodDefined By
  
ChordPad(chord:* = null, operatorCount:int = 3, voiceMode:int, pattern:Array = null, changePatternOnSegment:Boolean = true)
constructor
ChordPad
 Inherited
fadeIn(time:Number):void
Set fading in.
SoundObject
 Inherited
fadeOut(time:Number):void
Set fading out.
SoundObject
  
play():void
[override] play drum sequence
ChordPad
 Inherited
reset():void
Reset
SoundObject
 Inherited
setVolume(slot:int, volume:Number):void
Set volume by index.
SoundObject
  
stop():void
[override] stop sequence
ChordPad
Events
 Event Summary Defined By
   Dispatch in each frame in PatternSequencer.ChordPad
   Dispatch in each segment in PatternSequencer.ChordPad
 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
Public Constants
 ConstantDefined By
  CLOSED : int = 0x543210
[static] closed voicing mode [o5c,o5e,o5g,o5b,o6e,o6g] for CM7
ChordPad
  HIGH : int = 0x765432
[static] high-position voicing mode [o5g,o5b,o6e,o6g,o6b,o7e] for CM7
ChordPad
  MIDDLE : int = 0x654321
[static] middle-position voicing mode [o5e,o5g,o5b,o6e,o6g,o6b] for CM7
ChordPad
  OPENED : int = 0x654320
[static] opened voicing mode [o5c,o5g,o5b,o6e,o6g,o6b] for CM7
ChordPad
  OPENED_HIGH : int = 0x876542
[static] opened high-position voicing mode [o5g,o6e,o6g,o6b,o7e,o7g] for CM7
ChordPad
Property Detail
changePatternOnSegmentproperty
changePatternOnSegment:Boolean

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

The default value is true.


Implementation
    public function get changePatternOnSegment():Boolean
    public function set changePatternOnSegment(value:Boolean):void
chordproperty 
chord:Chord

chord instance

The default value is Chord("C").


Implementation
    public function get chord():Chord
    public function set chord(value:Chord):void
chordNameproperty 
chordName:String

specify chord by name

The default value is "C".


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

root note of current chord

The default value is 60.


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
operatorCountproperty 
operatorCount:int  [read-only]

Number of monophonic operators


Implementation
    public function get operatorCount():int
operatorsproperty 
operators:Vector.<Sequencer>  [read-only]

list of monophonic operators


Implementation
    public function get operators():Vector.<Sequencer>
patternproperty 
pattern:Array

Number Array of the sequence notes' length. If the value is 0, insert rest instead.


Implementation
    public function get pattern():Array
    public function set pattern(value:Array):void
voiceModeproperty 
voiceMode:int

voicing mode

The default value is CLOSED.


Implementation
    public function get voiceMode():int
    public function set voiceMode(value:int):void
Constructor Detail
ChordPad()Constructor
public function ChordPad(chord:* = null, operatorCount:int = 3, voiceMode:int, pattern:Array = null, changePatternOnSegment:Boolean = true)

constructor

Parameters
chord:* (default = null) — org.si.sion.utils.Chord, chord name String or null is suitable.
 
operatorCount:int (default = 3) — Number of monophonic operators (1-6).
 
voiceMode:int (default = NaN) — Voicing mode.
 
pattern:Array (default = null) — Number Array of the sequence notes' length. If the value is 0, insert rest instead.
 
changePatternOnSegment:Boolean (default = true) — When this is true, pattern and chord are changed at the head of next segment.
Method Detail
play()method
override public function play():void

play drum sequence

stop()method 
override public function stop():void

stop sequence

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
Constant Detail
CLOSEDConstant
public static const CLOSED:int = 0x543210

closed voicing mode [o5c,o5e,o5g,o5b,o6e,o6g] for CM7

See also

voiceMode
HIGHConstant 
public static const HIGH:int = 0x765432

high-position voicing mode [o5g,o5b,o6e,o6g,o6b,o7e] for CM7

See also

voiceMode
MIDDLEConstant 
public static const MIDDLE:int = 0x654321

middle-position voicing mode [o5e,o5g,o5b,o6e,o6g,o6b] for CM7

See also

voiceMode
OPENEDConstant 
public static const OPENED:int = 0x654320

opened voicing mode [o5c,o5g,o5b,o6e,o6g,o6b] for CM7

See also

voiceMode
OPENED_HIGHConstant 
public static const OPENED_HIGH:int = 0x876542

opened high-position voicing mode [o5g,o6e,o6g,o6b,o7e,o7g] for CM7

See also

voiceMode