| Package | org.si.sion.module.channels |
| Class | public class SiOPMChannelBase |
| Inheritance | SiOPMChannelBase Object |
| Subclasses | SiOPMChannelFM, SiOPMChannelPCM, SiOPMChannelSampler |
| Property | Defined By | ||
|---|---|---|---|
| activeOperatorIndex : int [write-only] active operator index (i). | SiOPMChannelBase | ||
| bufferIndex : int [read-only] buffer index | SiOPMChannelBase | ||
| channelType : int [read-only] channel type | SiOPMChannelBase | ||
| detune : int [write-only] detune (@dt) | SiOPMChannelBase | ||
| erst : Boolean [write-only] envelop reset (@er) | SiOPMChannelBase | ||
| filterType : int filter mode | SiOPMChannelBase | ||
| fixedPitch : int [write-only] fixed pitch (@fx) | SiOPMChannelBase | ||
| fmul : int [write-only] fine multiple (@ml) | SiOPMChannelBase | ||
| 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 | ||
| 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 [write-only] phase (@ph) | SiOPMChannelBase | ||
| pitch : int pitch | SiOPMChannelBase | ||
| rr : int [write-only] Release rate (@rr) | SiOPMChannelBase | ||
| ssgec : int [write-only] ssgec (@se) | SiOPMChannelBase | ||
| tl : int [write-only] total level (@tl) | SiOPMChannelBase | ||
| Property | Defined By | ||
|---|---|---|---|
| _basePipe : SLLint base pipe | SiOPMChannelBase | ||
| _bufferIndex : int buffering index | SiOPMChannelBase | ||
| _chip : SiOPMModule chip | SiOPMChannelBase | ||
| _cutoff : int cutoff frequency | SiOPMChannelBase | ||
| _cutoff_offset : int cutoff frequency | SiOPMChannelBase | ||
| _expressionTable : Vector.<int> expression table | SiOPMChannelBase | ||
| _filter_eg_cutoff : Vector.<int> eg level | SiOPMChannelBase | ||
| _filter_eg_cutoff_inc : int eg direction | SiOPMChannelBase | ||
| _filter_eg_next : int eg phase shift l. | SiOPMChannelBase | ||
| _filter_eg_state : int eg state | SiOPMChannelBase | ||
| _filter_eg_step : int eg step | SiOPMChannelBase | ||
| _filter_eg_time : Vector.<int> eg rate | SiOPMChannelBase | ||
| _filterOn : Boolean filter switch | SiOPMChannelBase | ||
| _filterType : int filter type | SiOPMChannelBase | ||
| _filterVriables : Vector.<Number> filter Variables | SiOPMChannelBase | ||
| _freq_ratio : int frequency ratio | SiOPMChannelBase | ||
| _funcProcess : Function functor to process | SiOPMChannelBase | ||
| _hasEffectSend : Boolean effect send flag | SiOPMChannelBase | ||
| _inPipe : SLLint in pipe | SiOPMChannelBase | ||
| _inputLevel : int input level | SiOPMChannelBase | ||
| _inputMode : int input level | SiOPMChannelBase | ||
| _isIdling : Boolean idling flag | SiOPMChannelBase | ||
| _isNoteOn : Boolean note on flag | SiOPMChannelBase | ||
| _lfo_on : int lfo switch | SiOPMChannelBase | ||
| _lfo_phase : int lfo phase | SiOPMChannelBase | ||
| _lfo_timer : int lfo timer | SiOPMChannelBase | ||
| _lfo_timer_step_ : int lfo step buffer | SiOPMChannelBase | ||
| _lfo_timer_step : int lfo timer step | SiOPMChannelBase | ||
| _lfo_waveShape : int lfo wave shape | SiOPMChannelBase | ||
| _lfo_waveTable : Vector.<int> lfo wave table | SiOPMChannelBase | ||
| _mute : Boolean mute | SiOPMChannelBase | ||
| _outPipe : SLLint out pipe | SiOPMChannelBase | ||
| _outputMode : int output mode | SiOPMChannelBase | ||
| _pan : int pan | SiOPMChannelBase | ||
| _prevStepRemain : int eg step residue | SiOPMChannelBase | ||
| _resonance : Number resonance | SiOPMChannelBase | ||
| _ringmodLevel : Number ringmod level | SiOPMChannelBase | ||
| _ringPipe : SLLint ringmod pipe | SiOPMChannelBase | ||
| _streams : Vector.<SiOPMStream> stream | SiOPMChannelBase | ||
| _table : SiOPMTable table | SiOPMChannelBase | ||
| _veocityTable : Vector.<int> veocity table | SiOPMChannelBase | ||
| _volumes : Vector.<Number> volume | SiOPMChannelBase | ||
| Method | Defined By | ||
|---|---|---|---|
SiOPMChannelBase(chip:SiOPMModule) Constructor | SiOPMChannelBase | ||
activateFilter(b:Boolean):void Filter activation | SiOPMChannelBase | ||
buffer(len:int):void Buffering | SiOPMChannelBase | ||
getSiOPMChannelParam(param:SiOPMChannelParam):void Get SiOPMChannelParam. | SiOPMChannelBase | ||
getStreamSend(streamNum:int):Number get stream send. | SiOPMChannelBase | ||
initialize(prev:SiOPMChannelBase, bufferIndex:int):void Initialize. | SiOPMChannelBase | ||
initializeLFO(waveform:int, customWaveTable:Vector.<int> = null):void initialize LFO (@lfo). | SiOPMChannelBase | ||
nop(len:int):void Buffering without processnig | SiOPMChannelBase | ||
noteOff():void Note off | SiOPMChannelBase | ||
noteOn():void Note on | SiOPMChannelBase | ||
offsetFilter(i:int):void LP Filter cutoff offset controled by table envelop (nf) | SiOPMChannelBase | ||
offsetVolume(expression:int, velocity:int):void offset volume, controled by SiMMLTrack. | SiOPMChannelBase | ||
reset():void Reset | SiOPMChannelBase | ||
resetChannelBufferStatus():void reset channel buffering status | SiOPMChannelBase | ||
setAlgorism(cnt:int, alg:int):void algorism (@al) | SiOPMChannelBase | ||
setAllAttackRate(ar:int):void Attack rate | SiOPMChannelBase | ||
setAllReleaseRate(rr:int):void Release rate (s) | SiOPMChannelBase | ||
setAllStreamSendLevels(param:Vector.<int>):void set all stream send levels by Vector.<int>. | SiOPMChannelBase | ||
setAmplitudeModulation(depth:int):void amplitude modulation (ma) | SiOPMChannelBase | ||
setChannelNumber(channelNum:int):void channel number (2nd argument of %) | SiOPMChannelBase | ||
setFeedBack(fb:int, fbc:int):void feedback (@fb) | SiOPMChannelBase | ||
setFrequencyRatio(ratio:int):void set chip "PSEUDO" frequency ratio by [%] (@clock). | SiOPMChannelBase | ||
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 parameters (@ call from SiMMLTrack._setChannelParameters()) | SiOPMChannelBase | ||
setPitchModulation(depth:int):void pitch modulation (mp) | SiOPMChannelBase | ||
setRegister(addr:int, data:int):void set register | SiOPMChannelBase | ||
setRingModulation(level:int, pipeIndex:int):void Set ring modulation pipe (@r). | SiOPMChannelBase | ||
setSiOPMChannelParam(param:SiOPMChannelParam, withVolume:Boolean, withModulation:Boolean = true):void Set by SiOPMChannelParam. | SiOPMChannelBase | ||
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 pgType and ptType (@ call from SiMMLChannelSetting.selectTone()/initializeTone()) | SiOPMChannelBase | ||
setVolumeTables(vtable:Vector.<int>, xtable:Vector.<int>):void set velocity and expression tables
| SiOPMChannelBase | ||
setWaveData(waveData:SiOPMWaveBase):void Set wave data. | SiOPMChannelBase | ||
| 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 No process (default functor of _funcProcess). | SiOPMChannelBase | ||
resetSVFilterState():void reset SVFilter | SiOPMChannelBase | ||
shiftSVFilterState(state:int):void shift SVFilter state | SiOPMChannelBase | ||
| Constant | Defined By | ||
|---|---|---|---|
| FILTER_BP : int = 1 [static] band pass filter | SiOPMChannelBase | ||
| FILTER_HP : int = 2 [static] high pass filter | SiOPMChannelBase | ||
| FILTER_LP : int = 0 [static] low pass filter | SiOPMChannelBase | ||
| INPUT_FEEDBACK : int = 2 [static] input from feedback | SiOPMChannelBase | ||
| INPUT_PIPE : int = 1 [static] input from pipe | SiOPMChannelBase | ||
| INPUT_ZERO : int = 0 [static] no input from pipe | SiOPMChannelBase | ||
| OUTPUT_ADD : int = 2 [static] add to pipe | SiOPMChannelBase | ||
| OUTPUT_OVERWRITE : int = 1 [static] overwrite pipe | SiOPMChannelBase | ||
| OUTPUT_STANDARD : int = 0 [static] standard output | SiOPMChannelBase | ||
| _basePipe | property |
protected var _basePipe:SLLintbase pipe
| _bufferIndex | property |
protected var _bufferIndex:intbuffering index
| _chip | property |
protected var _chip:SiOPMModulechip
| _cutoff | property |
protected var _cutoff:intcutoff frequency
| _cutoff_offset | property |
protected var _cutoff_offset:intcutoff frequency
| _expressionTable | property |
protected var _expressionTable:Vector.<int>expression table
| _filter_eg_cutoff | property |
protected var _filter_eg_cutoff:Vector.<int>eg level
| _filter_eg_cutoff_inc | property |
protected var _filter_eg_cutoff_inc:integ direction
| _filter_eg_next | property |
protected var _filter_eg_next:integ phase shift l.
| _filter_eg_state | property |
protected var _filter_eg_state:integ state
| _filter_eg_step | property |
protected var _filter_eg_step:integ step
| _filter_eg_time | property |
protected var _filter_eg_time:Vector.<int>eg rate
| _filterOn | property |
protected var _filterOn:Booleanfilter switch
| _filterType | property |
protected var _filterType:intfilter type
| _filterVriables | property |
protected var _filterVriables:Vector.<Number>filter Variables
| _freq_ratio | property |
protected var _freq_ratio:intfrequency ratio
| _funcProcess | property |
protected var _funcProcess:Functionfunctor to process
| _hasEffectSend | property |
protected var _hasEffectSend:Booleaneffect send flag
| _inPipe | property |
protected var _inPipe:SLLintin pipe
| _inputLevel | property |
protected var _inputLevel:intinput level
| _inputMode | property |
protected var _inputMode:intinput level
| _isIdling | property |
protected var _isIdling:Booleanidling flag
| _isNoteOn | property |
protected var _isNoteOn:Booleannote on flag
| _lfo_on | property |
protected var _lfo_on:intlfo switch
| _lfo_phase | property |
protected var _lfo_phase:intlfo phase
| _lfo_timer | property |
protected var _lfo_timer:intlfo timer
| _lfo_timer_step | property |
protected var _lfo_timer_step:intlfo timer step
| _lfo_timer_step_ | property |
protected var _lfo_timer_step_:intlfo step buffer
| _lfo_waveShape | property |
protected var _lfo_waveShape:intlfo wave shape
| _lfo_waveTable | property |
protected var _lfo_waveTable:Vector.<int>lfo wave table
| _mute | property |
protected var _mute:Booleanmute
| _outPipe | property |
protected var _outPipe:SLLintout pipe
| _outputMode | property |
protected var _outputMode:intoutput mode
| _pan | property |
protected var _pan:intpan
| _prevStepRemain | property |
protected var _prevStepRemain:integ step residue
| _resonance | property |
protected var _resonance:Numberresonance
| _ringmodLevel | property |
protected var _ringmodLevel:Numberringmod level
| _ringPipe | property |
protected var _ringPipe:SLLintringmod pipe
| _streams | property |
protected var _streams:Vector.<SiOPMStream>stream
| _table | property |
protected var _table:SiOPMTabletable
| _veocityTable | property |
protected var _veocityTable:Vector.<int>veocity table
| _volumes | property |
protected var _volumes:Vector.<Number>volume
| activeOperatorIndex | property |
activeOperatorIndex:int [write-only] active operator index (i).
public function set activeOperatorIndex(value:int):void| bufferIndex | property |
bufferIndex:int [read-only] buffer index
public function get bufferIndex():int| channelType | property |
channelType:int [read-only] channel type
public function get channelType():int| detune | property |
detune:int [write-only] detune (@dt)
public function set detune(value:int):void| erst | property |
erst:Boolean [write-only] envelop reset (@er)
public function set erst(value:Boolean):void| filterType | property |
filterType:intfilter mode
public function get filterType():int public function set filterType(value:int):void| fixedPitch | property |
fixedPitch:int [write-only] fixed pitch (@fx)
public function set fixedPitch(value:int):void| fmul | property |
fmul:int [write-only] fine multiple (@ml)
public function set fmul(value:int):void| isFilterActive | property |
isFilterActive:Boolean [read-only] Is filter active ?
public function get isFilterActive():Boolean| isIdling | property |
isIdling:Boolean [read-only] Is idling ?
public function get isIdling():Boolean| isNoteOn | property |
isNoteOn:Boolean [read-only] is this channel note on ?
public function get isNoteOn():Boolean| masterVolume | property |
masterVolume:intMaster volume (0-128)
public function get masterVolume():int public function set masterVolume(value:int):void| mute | property |
mute:BooleanMute
public function get mute():Boolean public function set mute(value:Boolean):void| pan | property |
pan:intPan (-64-64 left=-64, center=0, right=64). [left volume] = cos((pan+64)/128I.5) volume; [right volume] = sin((pan+64)/128I.5) volume;
public function get pan():int public function set pan(value:int):void| phase | property |
phase:int [write-only] phase (@ph)
public function set phase(value:int):void| pitch | property |
pitch:intpitch
public function get pitch():int public function set pitch(value:int):void| rr | property |
rr:int [write-only] Release rate (@rr)
public function set rr(value:int):void| ssgec | property |
ssgec:int [write-only] ssgec (@se)
public function set ssgec(value:int):void| tl | property |
tl:int [write-only] total level (@tl)
public function set tl(value:int):void| SiOPMChannelBase | () | Constructor |
public function SiOPMChannelBase(chip:SiOPMModule)Constructor
Parameterschip:SiOPMModule — Managing SiOPMModule. |
| _applyRingModulation | () | method |
protected function _applyRingModulation(pointer:SLLint, len:int):voidring modulation
Parameters
pointer:SLLint | |
len:int |
| _applySVFilter | () | method |
protected function _applySVFilter(pointer:SLLint, len:int, variables:Vector.<Number> = null):voidstate variable filter
Parameters
pointer:SLLint | |
len:int | |
variables:Vector.<Number> (default = null) |
| _nop | () | method |
protected function _nop(len:int):voidNo process (default functor of _funcProcess).
Parameters
len:int |
| activateFilter | () | method |
public function activateFilter(b:Boolean):voidFilter activation
Parameters
b:Boolean |
| buffer | () | method |
public function buffer(len:int):voidBuffering
Parameters
len:int |
| getSiOPMChannelParam | () | method |
public function getSiOPMChannelParam(param:SiOPMChannelParam):voidGet SiOPMChannelParam.
Parameters
param:SiOPMChannelParam |
| getStreamSend | () | method |
public function getStreamSend(streamNum:int):Numberget stream send.
Parameters
streamNum:int — stream number[0-7]. The streamNum of 0 means master volume.
|
Number — send level[0-1].
|
| initialize | () | method |
public function initialize(prev:SiOPMChannelBase, bufferIndex:int):voidInitialize.
Parameters
prev:SiOPMChannelBase | |
bufferIndex:int |
| initializeLFO | () | method |
public function initializeLFO(waveform:int, customWaveTable:Vector.<int> = null):voidinitialize LFO (@lfo).
Parameters
waveform:int — waveform number, -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.
|
| nop | () | method |
public function nop(len:int):voidBuffering without processnig
Parameters
len:int |
| noteOff | () | method |
public function noteOff():voidNote off
| noteOn | () | method |
public function noteOn():voidNote on
| offsetFilter | () | method |
public function offsetFilter(i:int):voidLP Filter cutoff offset controled by table envelop (nf)
Parameters
i:int |
| offsetVolume | () | method |
public function offsetVolume(expression:int, velocity:int):voidoffset volume, controled by SiMMLTrack.
Parameters
expression:int | |
velocity:int |
| reset | () | method |
public function reset():voidReset
| resetChannelBufferStatus | () | method |
public function resetChannelBufferStatus():voidreset channel buffering status
| resetSVFilterState | () | method |
protected function resetSVFilterState():voidreset SVFilter
| setAlgorism | () | method |
public function setAlgorism(cnt:int, alg:int):voidalgorism (@al)
Parameters
cnt:int | |
alg:int |
| setAllAttackRate | () | method |
public function setAllAttackRate(ar:int):voidAttack rate
Parameters
ar:int |
| setAllReleaseRate | () | method |
public function setAllReleaseRate(rr:int):voidRelease rate (s)
Parameters
rr:int |
| setAllStreamSendLevels | () | method |
public function setAllStreamSendLevels(param:Vector.<int>):voidset all stream send levels by Vector.<int>.
Parameters
param:Vector.<int> — Vector.<int>(8) of all volumes[0-128].
|
| setAmplitudeModulation | () | method |
public function setAmplitudeModulation(depth:int):voidamplitude modulation (ma)
Parameters
depth:int |
| setChannelNumber | () | method |
public function setChannelNumber(channelNum:int):voidchannel number (2nd argument of %)
Parameters
channelNum:int |
| setFeedBack | () | method |
public function setFeedBack(fb:int, fbc:int):voidfeedback (@fb)
Parameters
fb:int | |
fbc:int |
| setFrequencyRatio | () | method |
public function setFrequencyRatio(ratio:int):voidset chip "PSEUDO" frequency ratio by [%] (@clock).
Parameters
ratio:int |
| setInput | () | method |
public function setInput(level:int, pipeIndex:int):voidSet input pipe (@i).
Parameters
level:int — Input level. The value for a standard FM sound module is 5.
| |
pipeIndex:int — Input pipe index (0-3).
|
| setLFOCycleTime | () | method |
public function setLFOCycleTime(ms:Number):voidset LFO cycle time (@lfo).
Parameters
ms:Number |
| setOutput | () | method |
public function setOutput(outputMode:int, pipeIndex:int):voidSet output pipe (@o).
Parameters
outputMode:int — Output mode. 0=standard stereo out, 1=overwrite pipe. 2=add pipe.
| |
pipeIndex:int — Output stream/pipe index (0-3).
|
| setParameters | () | method |
public function setParameters(param:Vector.<int>):voidparameters (@ call from SiMMLTrack._setChannelParameters())
Parameters
param:Vector.<int> |
| setPitchModulation | () | method |
public function setPitchModulation(depth:int):voidpitch modulation (mp)
Parameters
depth:int |
| setRegister | () | method |
public function setRegister(addr:int, data:int):voidset register
Parameters
addr:int | |
data:int |
| setRingModulation | () | method |
public function setRingModulation(level:int, pipeIndex:int):voidSet ring modulation pipe (@r).
Parameters
level:int — Input level(0-8).
| |
pipeIndex:int — Input pipe index (0-3).
|
| setSiOPMChannelParam | () | method |
public function setSiOPMChannelParam(param:SiOPMChannelParam, withVolume:Boolean, withModulation:Boolean = true):voidSet by SiOPMChannelParam.
Parameters
param:SiOPMChannelParam | |
withVolume:Boolean | |
withModulation:Boolean (default = true) |
| setStreamBuffer | () | method |
public function setStreamBuffer(streamNum:int, stream:SiOPMStream = null):voidset stream buffer.
Parameters
streamNum:int — stream number[0-7]. The streamNum of 0 means master stream.
| |
stream:SiOPMStream (default = null) — stream buffer instance. Set null to set as default.
|
| setStreamSend | () | method |
public function setStreamSend(streamNum:int, volume:Number):voidset stream send.
Parameters
streamNum:int — stream number[0-7]. The streamNum of 0 means master volume.
| |
volume:Number — send level[0-1].
|
| setSVFilter | () | method |
public function 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):voidSVFilter envelop (@f).
Parameters
cutoff:int (default = 128) — initial cutoff (0-128).
| |
resonance:int (default = 0) — resonance (0-9).
| |
ar:int (default = 0) — attack rate (0-63).
| |
dr1:int (default = 0) — decay rate 1 (0-63).
| |
dr2:int (default = 0) — decay rate 2 (0-63).
| |
rr:int (default = 0) — release rate (0-63).
| |
dc1:int (default = 128) — decay cutoff level 1 (0-128).
| |
dc2:int (default = 128) — decay cutoff level 2 (0-128).
| |
sc:int (default = 128) — sustain cutoff level (0-128).
| |
rc:int (default = 128) — release cutoff level (0-128).
|
| setType | () | method |
public function setType(pgType:int, ptType:int):voidpgType and ptType (@ call from SiMMLChannelSetting.selectTone()/initializeTone())
Parameters
pgType:int | |
ptType:int |
| setVolumeTables | () | method |
public function setVolumeTables(vtable:Vector.<int>, xtable:Vector.<int>):voidset velocity and expression tables
Parameters
vtable:Vector.<int> — volume table (length = 513)
| |
xtable:Vector.<int> — expression table (length = 513)
|
| setWaveData | () | method |
public function setWaveData(waveData:SiOPMWaveBase):voidSet wave data.
Parameters
waveData:SiOPMWaveBase |
| shiftSVFilterState | () | method |
protected function shiftSVFilterState(state:int):voidshift SVFilter state
Parameters
state:int |
| FILTER_BP | Constant |
public static const FILTER_BP:int = 1band pass filter
| FILTER_HP | Constant |
public static const FILTER_HP:int = 2high pass filter
| FILTER_LP | Constant |
public static const FILTER_LP:int = 0low pass filter
| INPUT_FEEDBACK | Constant |
public static const INPUT_FEEDBACK:int = 2input from feedback
| INPUT_PIPE | Constant |
public static const INPUT_PIPE:int = 1input from pipe
| INPUT_ZERO | Constant |
public static const INPUT_ZERO:int = 0no input from pipe
| OUTPUT_ADD | Constant |
public static const OUTPUT_ADD:int = 2add to pipe
| OUTPUT_OVERWRITE | Constant |
public static const OUTPUT_OVERWRITE:int = 1overwrite pipe
| OUTPUT_STANDARD | Constant |
public static const OUTPUT_STANDARD:int = 0standard output