Packageorg.si.sound.synthesizers
Classpublic class PSGSynth
InheritancePSGSynth Inheritance BasicSynth Inheritance VoiceReference Inheritance Object

Programmable Sound Generator Synthesizer



Public Properties
 PropertyDefined By
 InheritedamplitudeModulation : int
amplitude modulation.
BasicSynth
 InheritedattackTime : Number
attack rate (0-1), lower value makes attack slow.
BasicSynth
  channelGain : int
PSG channel gain (db) (0=0db, 7=14db, 15=mute)
PSGSynth
  channelMode : int
PSG channel mode (0=mute, 1=PSG, 2=noise, 3=PSG+noise).
PSGSynth
  channelNumber : int
[read-only] PSG channel number
PSGSynth
 Inheritedcutoff : Number
low-pass filter cutoff(0-1).
BasicSynth
  envelopControlMode : int
SSG Envelop control mode, only 8-17 are valiable, 0-7 set as no envelop.
PSGSynth
  envelopFreq : int
envelop frequency ...
PSGSynth
 InheritedfilterType : int
filter type (0:lowpass, 1:bandpass, 2:highpass)
BasicSynth
 InheritedlfoCycleFrames : int
modulation (low-frequency oscillator) cycle frames.
BasicSynth
 InheritedlfoWaveShape : int
modulation (low-frequency oscillator) wave shape, 0=saw, 1=square, 2=triangle, 3=random.
BasicSynth
  noiseFreq : int
noise frequency
PSGSynth
 InheritedpitchModulation : int
pitch modulation.
BasicSynth
 InheritedreleaseTime : Number
release rate (0-1), lower value makes release slow.
BasicSynth
 Inheritedresonance : Number
low-pass filter resonance(0-1).
BasicSynth
 Inheritedvoice : SiONVoice
voice setting
VoiceReference
Protected Properties
 PropertyDefined By
  _channelMode : int
PSG channel mode (0=mute, 1=PSG, 2=noise, 3=PSG+noise).
PSGSynth
  _channelTL : int
PSG channel gain (db) (0=0db, 7=14db, 15=mute)
PSGSynth
  _evelopRate : int
SSG envelop controling rate
PSGSynth
  _opp0 : SiOPMOperatorParam
operator parameter for op0
PSGSynth
  _opp1 : SiOPMOperatorParam
operator parameter for op1
PSGSynth
 Inherited_tracks : Vector.<SiMMLTrack>
tracks to control
BasicSynth
Public Methods
 MethodDefined By
  
PSGSynth(channelNumber:int = 0)
constructor
PSGSynth
 Inherited
setAmplitudeModulation(depth:int = 0, end_depth:int = 0, delay:int = 0, term:int = 0):void
Set amplitude modulation parameters (same as "ma" command in MML).
BasicSynth
 Inherited
setFilterEnvelop(filterType:int = 0, cutoff:Number = 1, resonance:Number = 0, far:int = 0, fdr1:int = 0, fdr2:int = 0, frr:int = 0, fdc1:Number = 1, fdc2:Number = 0.5, fsc:Number = 0.25, frc:Number = 1):void
set filter envelop (same as '@f' command in MML).
BasicSynth
 Inherited
setLPFEnvelop(cutoff:Number = 1, resonance:Number = 0, far:int = 0, fdr1:int = 0, fdr2:int = 0, frr:int = 0, fdc1:Number = 1, fdc2:Number = 0.5, fsc:Number = 0.25, frc:Number = 1):void
[Please use setFilterEnvelop instead of this function].
BasicSynth
 Inherited
setPitchModulation(depth:int = 0, end_depth:int = 0, delay:int = 0, term:int = 0):void
Set amplitude modulation parameters (same as "mp" command in MML).
BasicSynth
Property Detail
_channelModeproperty
protected var _channelMode:int

PSG channel mode (0=mute, 1=PSG, 2=noise, 3=PSG+noise).

_channelTLproperty 
protected var _channelTL:int

PSG channel gain (db) (0=0db, 7=14db, 15=mute)

_evelopRateproperty 
protected var _evelopRate:int

SSG envelop controling rate

_opp0property 
protected var _opp0:SiOPMOperatorParam

operator parameter for op0

_opp1property 
protected var _opp1:SiOPMOperatorParam

operator parameter for op1

channelGainproperty 
channelGain:int

PSG channel gain (db) (0=0db, 7=14db, 15=mute)


Implementation
    public function get channelGain():int
    public function set channelGain(value:int):void
channelModeproperty 
channelMode:int

PSG channel mode (0=mute, 1=PSG, 2=noise, 3=PSG+noise).


Implementation
    public function get channelMode():int
    public function set channelMode(value:int):void
channelNumberproperty 
channelNumber:int  [read-only]

PSG channel number


Implementation
    public function get channelNumber():int
envelopControlModeproperty 
envelopControlMode:int

SSG Envelop control mode, only 8-17 are valiable, 0-7 set as no envelop. The ssgec number of 16th and 17th are the extention of SiOPM.


Implementation
    public function get envelopControlMode():int
    public function set envelopControlMode(value:int):void
envelopFreqproperty 
envelopFreq:int

envelop frequency ... currently dishonesty.


Implementation
    public function get envelopFreq():int
    public function set envelopFreq(value:int):void
noiseFreqproperty 
noiseFreq:int

noise frequency


Implementation
    public function get noiseFreq():int
    public function set noiseFreq(value:int):void
Constructor Detail
PSGSynth()Constructor
public function PSGSynth(channelNumber:int = 0)

constructor

Parameters
channelNumber:int (default = 0) — pseudo channel number.