Packageorg.si.sound
Classpublic class PolyphonicSynthesizer
InheritancePolyphonicSynthesizer Inheritance MultiTrackSoundObject Inheritance SoundObject Inheritance flash.events.EventDispatcher

Polyphonic synthesizer class provides synthesizer with multi tracks.



Public Properties
 PropertyDefined By
 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
 Inheritednote : int
Base note of this sound
SoundObject
 InheritednoteOffTriggerType : int
[read-only] Track note off trigger type
SoundObject
 InheritednoteOnTriggerType : int
[read-only] Track note on trigger type
SoundObject
 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
 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
 Inheritedvolume : Number
Channel volume (0:Minimum - 1:Maximum), this property can control track after play().
SoundObject
Public Methods
 MethodDefined By
  
constructor
PolyphonicSynthesizer
 Inherited
fadeIn(time:Number):void
Set fading in.
SoundObject
 Inherited
fadeOut(time:Number):void
Set fading out.
SoundObject
  
noteOff(note:int, stopWithReset:Boolean = true):void
note off
PolyphonicSynthesizer
  
noteOn(note:int, velocity:int = 128, length:int = 0):void
note on
PolyphonicSynthesizer
  
play():void
[override] start streaming without any sounds
PolyphonicSynthesizer
 Inherited
reset():void
Reset
SoundObject
 Inherited
setVolume(slot:int, volume:Number):void
Set volume by index.
SoundObject
  
stop():void
[override] stop all tracks
PolyphonicSynthesizer
Events
 Event Summary Defined By
 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
Constructor Detail
PolyphonicSynthesizer()Constructor
public function PolyphonicSynthesizer(synth:VoiceReference = null)

constructor

Parameters
synth:VoiceReference (default = null) — synthesizer to play
Method Detail
noteOff()method
public function noteOff(note:int, stopWithReset:Boolean = true):void

note off

Parameters

note:int — note number to sound off (0-127)
 
stopWithReset:Boolean (default = true)

noteOn()method 
public function noteOn(note:int, velocity:int = 128, length:int = 0):void

note on

Parameters

note:int — note number (0-128)
 
velocity:int (default = 128) — velocity (0-128-255)
 
length:int (default = 0) — length (1 = 16th beat length)

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

start streaming without any sounds

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

stop all tracks