| Package | org.si.sion.module.channels | 
| Class | public class SiOPMChannelPCM | 
| Inheritance | SiOPMChannelPCM    SiOPMChannelBase   Object | 
| Property | Defined By | ||
|---|---|---|---|
| activeOperatorIndex : int [override] [write-only]  active operator index (i)   | SiOPMChannelPCM | ||
![]()  | bufferIndex : int [read-only]  buffer index   | SiOPMChannelBase | |
![]()  | channelType : int [read-only]  channel type   | SiOPMChannelBase | |
| detune : int [override] [write-only]  detune (@dt)   | SiOPMChannelPCM | ||
| erst : Boolean [override] [write-only]  envelop reset (@er)   | SiOPMChannelPCM | ||
![]()  | filterType : int  filter mode   | SiOPMChannelBase | |
| fixedPitch : int [override] [write-only]  fixed pitch (@fx)   | SiOPMChannelPCM | ||
| fmul : int [override] [write-only]  fine multiple (@ml)   | SiOPMChannelPCM | ||
![]()  | isFilterActive : Boolean [read-only]  Is filter active ?   | SiOPMChannelBase | |
![]()  | isIdling : Boolean [read-only]  Is idling ?   | SiOPMChannelBase | |
![]()  | isNoteOn : Boolean [read-only]  is this channel note on ?   | SiOPMChannelBase | |
![]()  | masterVolume : int  Master volume (0-128)   | SiOPMChannelBase | |
![]()  | mute : Boolean  Mute   | SiOPMChannelBase | |
| operator : SiOPMOperator  operator for layer0   | SiOPMChannelPCM | ||
![]()  | pan : int  Pan (-64-64 left=-64, center=0, right=64).
          [left volume]  = cos((pan+64)/128I.5) volume;
          [right volume] = sin((pan+64)/128I.5) volume;
           | SiOPMChannelBase | |
| phase : int [override] [write-only]  phase  (@ph)   | SiOPMChannelPCM | ||
| pitch : int [override]  pitch = (note << 6) | (kf & 63) [0,8191]   | SiOPMChannelPCM | ||
| rr : int [override] [write-only]  release rate (@rr)   | SiOPMChannelPCM | ||
| ssgec : int [override] [write-only]  ssgec (@se)   | SiOPMChannelPCM | ||
| tl : int [override] [write-only]  total level (@tl)   | SiOPMChannelPCM | ||
| Method | Defined By | ||
|---|---|---|---|
SiOPMChannelPCM(chip:SiOPMModule)  constructor   | SiOPMChannelPCM | ||
![]()  | activateFilter(b:Boolean):void  Filter activation   | SiOPMChannelBase | |
buffer(len:int):void [override]  Buffering   | SiOPMChannelPCM | ||
getSiOPMChannelParam(param:SiOPMChannelParam):void [override]  Get SiOPMChannelParam.  | SiOPMChannelPCM | ||
![]()  | getStreamSend(streamNum:int):Number  get stream send.  | SiOPMChannelBase | |
initialize(prev:SiOPMChannelBase, bufferIndex:int):void [override]  Initialize.  | SiOPMChannelPCM | ||
initializeLFO(waveform:int, customWaveTable:Vector.<int> = null):void [override]  initialize low frequency oscillator.  | SiOPMChannelPCM | ||
![]()  | nop(len:int):void  Buffering without processnig   | SiOPMChannelBase | |
noteOff():void [override]  Note off.  | SiOPMChannelPCM | ||
noteOn():void [override]  Note on.  | SiOPMChannelPCM | ||
![]()  | offsetFilter(i:int):void  LP Filter cutoff offset controled by table envelop (nf)   | SiOPMChannelBase | |
offsetVolume(expression:int, velocity:int):void [override]  update all tl offsets of final carriors   | SiOPMChannelPCM | ||
reset():void [override]  Reset.  | SiOPMChannelPCM | ||
resetChannelBufferStatus():void [override]  Prepare buffering   | SiOPMChannelPCM | ||
setAlgorism(cnt:int, alg:int):void [override]  Set algorism (@al) 
            | SiOPMChannelPCM | ||
setAllAttackRate(ar:int):void [override]  Attack rate   | SiOPMChannelPCM | ||
setAllReleaseRate(rr:int):void [override]  Release rate (s)   | SiOPMChannelPCM | ||
![]()  | setAllStreamSendLevels(param:Vector.<int>):void  set all stream send levels by Vector.<int>.  | SiOPMChannelBase | |
setAmplitudeModulation(depth:int):void [override]  Amplitude modulation.  | SiOPMChannelPCM | ||
setChannelNumber(channelNum:int):void [override]  set channel number (2nd argument of %)   | SiOPMChannelPCM | ||
setFeedBack(fb:int, fbc:int):void [override]  Set feedback(@fb).  | SiOPMChannelPCM | ||
setFrequencyRatio(ratio:int):void [override]  set chip "PSEUDO" frequency ratio by [%].  | SiOPMChannelPCM | ||
![]()  | setInput(level:int, pipeIndex:int):void  Set input pipe (@i).  | SiOPMChannelBase | |
![]()  | setLFOCycleTime(ms:Number):void  set LFO cycle time (@lfo).  | SiOPMChannelBase | |
![]()  | setOutput(outputMode:int, pipeIndex:int):void  Set output pipe (@o).  | SiOPMChannelBase | |
setParameters(param:Vector.<int>):void [override]  Set parameters (@ command).  | SiOPMChannelPCM | ||
setPitchModulation(depth:int):void [override]  Pitch modulation.  | SiOPMChannelPCM | ||
setRegister(addr:int, data:int):void [override]  set register   | SiOPMChannelPCM | ||
![]()  | setRingModulation(level:int, pipeIndex:int):void  Set ring modulation pipe (@r).  | SiOPMChannelBase | |
setSiOPMChannelParam(param:SiOPMChannelParam, withVolume:Boolean, withModulation:Boolean = true):void [override]  Set by SiOPMChannelParam.  | SiOPMChannelPCM | ||
setSiOPMParameters(ar:int, dr:int, sr:int, rr:int, sl:int, tl:int, ksr:int, ksl:int, mul:int, dt1:int, detune:int, ams:int, phase:int, fixNote:int):void  Set sound by 14 basic params.  | SiOPMChannelPCM | ||
![]()  | setStreamBuffer(streamNum:int, stream:SiOPMStream = null):void  set stream buffer.  | SiOPMChannelBase | |
![]()  | setStreamSend(streamNum:int, volume:Number):void  set stream send.  | SiOPMChannelBase | |
![]()  | setSVFilter(cutoff:int = 128, resonance:int = 0, ar:int = 0, dr1:int = 0, dr2:int = 0, rr:int = 0, dc1:int = 128, dc2:int = 128, sc:int = 128, rc:int = 128):void  SVFilter envelop (@f).  | SiOPMChannelBase | |
setType(pgType:int, ptType:int):void [override]  pgType and ptType (@).  | SiOPMChannelPCM | ||
![]()  | setVolumeTables(vtable:Vector.<int>, xtable:Vector.<int>):void  set velocity and expression tables
            | SiOPMChannelBase | |
setWaveData(waveData:SiOPMWaveBase):void [override]  Set wave data.  | SiOPMChannelPCM | ||
toString():String  Output parameters.  | SiOPMChannelPCM | ||
| Method | Defined By | ||
|---|---|---|---|
![]()  | _applyRingModulation(pointer:SLLint, len:int):void  ring modulation   | SiOPMChannelBase | |
![]()  | _applySVFilter(pointer:SLLint, len:int, variables:Vector.<Number> = null):void  state variable filter   | SiOPMChannelBase | |
_nop(len:int):void [override]  No process (default functor of _funcProcess).  | SiOPMChannelPCM | ||
![]()  | resetSVFilterState():void  reset SVFilter   | SiOPMChannelBase | |
![]()  | shiftSVFilterState(state:int):void  shift SVFilter state   | SiOPMChannelBase | |
| _am_depth | property | 
protected var _am_depth:intam depth
| _am_out | property | 
protected var _am_out:intam output level
| _eg_timer_initial | property | 
protected var _eg_timer_initial:intENV_TIMER_INITIAL freq_ratio
| _filterVriables2 | property | 
protected var _filterVriables2:Vector.<Number>for stereo filter
| _lfo_timer_initial | property | 
protected var _lfo_timer_initial:intLFO_TIMER_INITIAL freq_ratio
| _pcmTable | property | 
protected var _pcmTable:SiOPMWavePCMTablepcm table
| _pm_depth | property | 
protected var _pm_depth:intpm depth
| _pm_out | property | 
protected var _pm_out:intpm output level
| activeOperatorIndex | property | 
activeOperatorIndex:int  [write-only] [override] active operator index (i)
    public function set activeOperatorIndex(value:int):void| detune | property | 
detune:int  [write-only] [override] detune (@dt)
    public function set detune(value:int):void| erst | property | 
erst:Boolean  [write-only] [override] envelop reset (@er)
    public function set erst(value:Boolean):void| fixedPitch | property | 
fixedPitch:int  [write-only] [override] fixed pitch (@fx)
    public function set fixedPitch(value:int):void| fmul | property | 
fmul:int  [write-only] [override] fine multiple (@ml)
    public function set fmul(value:int):void| idlingThreshold | property | 
_sion_internal static var idlingThreshold:int = 5120eg_out threshold to check idling
| operator | property | 
public var operator:SiOPMOperatoroperator for layer0
| phase | property | 
phase:int  [write-only] [override] phase (@ph)
    public function set phase(value:int):void| pitch | property | 
pitch:int[override] pitch = (note << 6) | (kf & 63) [0,8191]
    public function get pitch():int    public function set pitch(value:int):void| registerMapChannel | property | 
_sion_internal var registerMapChannel:int| registerMapType | property | 
_sion_internal var registerMapType:intregister map type
| rr | property | 
rr:int  [write-only] [override] release rate (@rr)
    public function set rr(value:int):void| ssgec | property | 
ssgec:int  [write-only] [override] ssgec (@se)
    public function set ssgec(value:int):void| tl | property | 
tl:int  [write-only] [override] total level (@tl)
    public function set tl(value:int):void| SiOPMChannelPCM | () | Constructor | 
| _nop | () | method | 
override protected function _nop(len:int):voidNo process (default functor of _funcProcess).
Parameters
len:int | 
| buffer | () | method | 
override public function buffer(len:int):voidBuffering
Parameters
len:int | 
| getSiOPMChannelParam | () | method | 
override public function getSiOPMChannelParam(param:SiOPMChannelParam):voidGet SiOPMChannelParam.
Parameters
param:SiOPMChannelParam — SiOPMChannelParam.
          | 
| initialize | () | method | 
override public function initialize(prev:SiOPMChannelBase, bufferIndex:int):voidInitialize.
Parameters
prev:SiOPMChannelBase | |
bufferIndex:int | 
| initializeLFO | () | method | 
override public function initializeLFO(waveform:int, customWaveTable:Vector.<int> = null):voidinitialize low frequency oscillator. and stop lfo
Parameters
waveform:int — LFO waveform. 0=saw, 1=pulse, 2=triangle, 3=noise. -1 to set customized wave table
           | |
customWaveTable:Vector.<int> (default = null) — customized wave table, the length is 256 and the values are limited in the range of 0-255. This argument is available when waveform=-1.
          | 
| noteOff | () | method | 
override public function noteOff():voidNote off.
| noteOn | () | method | 
override public function noteOn():voidNote on.
| offsetVolume | () | method | 
override public function offsetVolume(expression:int, velocity:int):voidupdate all tl offsets of final carriors
Parameters
expression:int | |
velocity:int | 
| reset | () | method | 
override public function reset():voidReset.
| resetChannelBufferStatus | () | method | 
override public function resetChannelBufferStatus():voidPrepare buffering
| setAlgorism | () | method | 
override public function setAlgorism(cnt:int, alg:int):voidSet algorism (@al)
Parameters
cnt:int — Operator count.
           | |
alg:int — Algolism number of the operator's connection.
          | 
| setAllAttackRate | () | method | 
override public function setAllAttackRate(ar:int):voidAttack rate
Parameters
ar:int | 
| setAllReleaseRate | () | method | 
override public function setAllReleaseRate(rr:int):voidRelease rate (s)
Parameters
rr:int | 
| setAmplitudeModulation | () | method | 
override public function setAmplitudeModulation(depth:int):voidAmplitude modulation.
Parameters
depth:int — depth = (ams) ? (amd << (ams-1)) : 0;
          | 
| setChannelNumber | () | method | 
override public function setChannelNumber(channelNum:int):voidset channel number (2nd argument of %)
Parameters
channelNum:int | 
| setFeedBack | () | method | 
override public function setFeedBack(fb:int, fbc:int):voidSet feedback(@fb). Do nothing.
Parameters
fb:int — Feedback level. Ussualy in the range of 0-7.
           | |
fbc:int — Feedback connection. Operator index which feeds back its output.
          | 
| setFrequencyRatio | () | method | 
override public function setFrequencyRatio(ratio:int):voidset chip "PSEUDO" frequency ratio by [%]. 100 means 3.56MHz. This value effects only for envelop and lfo speed.
Parameters
ratio:int | 
| setParameters | () | method | 
override public function setParameters(param:Vector.<int>):voidSet parameters (@ command).
Parameters
param:Vector.<int> | 
| setPitchModulation | () | method | 
override public function setPitchModulation(depth:int):voidPitch modulation.
Parameters
depth:int — depth = (pms<6) ? (pmd >> (6-pms)) : (pmd << (pms-5));
          | 
| setRegister | () | method | 
override public function setRegister(addr:int, data:int):voidset register
Parameters
addr:int | |
data:int | 
| setSiOPMChannelParam | () | method | 
override public function setSiOPMChannelParam(param:SiOPMChannelParam, withVolume:Boolean, withModulation:Boolean = true):voidSet by SiOPMChannelParam.
Parameters
param:SiOPMChannelParam — SiOPMChannelParam.
           | |
withVolume:Boolean — Set volume when its true.
           | |
withModulation:Boolean (default = true) — Set modulation when its true.
          | 
| setSiOPMParameters | () | method | 
 public function setSiOPMParameters(ar:int, dr:int, sr:int, rr:int, sl:int, tl:int, ksr:int, ksl:int, mul:int, dt1:int, detune:int, ams:int, phase:int, fixNote:int):voidSet sound by 14 basic params. The value of int.MIN_VALUE means not to change.
Parameters
ar:int — Attack rate [0-63].
           | |
dr:int — Decay rate [0-63].
           | |
sr:int — Sustain rate [0-63].
           | |
rr:int — Release rate [0-63].
           | |
sl:int — Sustain level [0-15].
           | |
tl:int — Total level [0-127].
           | |
ksr:int — Key scaling [0-3].
           | |
ksl:int — key scale level [0-3].
           | |
mul:int — Multiple [0-15].
           | |
dt1:int — Detune 1 [0-7]. 
           | |
detune:int — Detune.
           | |
ams:int — Amplitude modulation shift [0-3].
           | |
phase:int — Phase [0-255].
           | |
fixNote:int — Fixed note number [0-127].
          | 
| setType | () | method | 
override public function setType(pgType:int, ptType:int):voidpgType and ptType (@). call from SiMMLChannelSetting.selectTone()
Parameters
pgType:int | |
ptType:int | 
| setWaveData | () | method | 
override public function setWaveData(waveData:SiOPMWaveBase):voidSet wave data. (called from setType())
Parameters
waveData:SiOPMWaveBase — SiOPMWavePCMTable to set.
          | 
| toString | () | method | 
 public function toString():StringOutput parameters.
ReturnsString |