| Package | org.si.sion.sequencer.simulator |
| Class | public class SiMMLSimulatorBase |
| Inheritance | SiMMLSimulatorBase Object |
| Subclasses | SiMMLSimulatorAPU, SiMMLSimulatorBaseFM, SiMMLSimulatorDCSG, SiMMLSimulatorGB, SiMMLSimulatorKS, SiMMLSimulatorMA3WaveTable, SiMMLSimulatorNoise, SiMMLSimulatorPCM, SiMMLSimulatorPSG, SiMMLSimulatorPulse, SiMMLSimulatorRamp, SiMMLSimulatorSampler, SiMMLSimulatorSID, SiMMLSimulatorSiOPM, SiMMLSimulatorVRC6, SiMMLSimulatorWT |
| Property | Defined By | ||
|---|---|---|---|
| type : int module type | SiMMLSimulatorBase | ||
| Property | Defined By | ||
|---|---|---|---|
| _channelVoiceSet : Vector.<SiMMLSimulatorVoiceSet> Tables converting from MML voice number to SiOPM pgType for each channel, if the table is different for each channel | SiMMLSimulatorBase | ||
| _defaultOpeCount : int Default operator count | SiMMLSimulatorBase | ||
| _defaultVoiceSet : SiMMLSimulatorVoiceSet Default table converting from MML voice number to SiOPM pgType | SiMMLSimulatorBase | ||
| _isSuitableForFMVoice : Boolean This simulator can be used as the FM voice's source wave or not | SiMMLSimulatorBase | ||
| Method | Defined By | ||
|---|---|---|---|
SiMMLSimulatorBase(type:int, channelCount:int, defaultVoiceSet:SiMMLSimulatorVoiceSet, isSuitableForFMVoice:Boolean = true) | SiMMLSimulatorBase | ||
initializeTone(track:SiMMLTrack, chNum:int, bufferIndex:int):int initialize tone by channel number. | SiMMLSimulatorBase | ||
select tone by tone number. | SiMMLSimulatorBase | ||
| Constant | Defined By | ||
|---|---|---|---|
| MT_ALL : int = 5 [static] | SiMMLSimulatorBase | ||
| MT_APU : int = 1 [static] | SiMMLSimulatorBase | ||
| MT_CUSTOM : int = 4 [static] | SiMMLSimulatorBase | ||
| MT_FM : int = 6 [static] | SiMMLSimulatorBase | ||
| MT_FM_MA3 : int = 20 [static] | SiMMLSimulatorBase | ||
| MT_FM_OPL3 : int = 19 [static] | SiMMLSimulatorBase | ||
| MT_FM_OPLL : int = 18 [static] | SiMMLSimulatorBase | ||
| MT_FM_OPM : int = 15 [static] | SiMMLSimulatorBase | ||
| MT_FM_OPN : int = 16 [static] | SiMMLSimulatorBase | ||
| MT_FM_OPNA : int = 17 [static] | SiMMLSimulatorBase | ||
| MT_GB : int = 12 [static] | SiMMLSimulatorBase | ||
| MT_KS : int = 11 [static] | SiMMLSimulatorBase | ||
| MT_MA3 : int = 3 [static] | SiMMLSimulatorBase | ||
| MT_MAX : int = 21 [static] | SiMMLSimulatorBase | ||
| MT_NOISE : int = 2 [static] | SiMMLSimulatorBase | ||
| MT_PCM : int = 7 [static] | SiMMLSimulatorBase | ||
| MT_PSG : int = 0 [static] | SiMMLSimulatorBase | ||
| MT_PULSE : int = 8 [static] | SiMMLSimulatorBase | ||
| MT_RAMP : int = 9 [static] | SiMMLSimulatorBase | ||
| MT_SAMPLE : int = 10 [static] | SiMMLSimulatorBase | ||
| MT_SID : int = 14 [static] | SiMMLSimulatorBase | ||
| MT_VRC6 : int = 13 [static] | SiMMLSimulatorBase | ||
| _channelVoiceSet | property |
protected var _channelVoiceSet:Vector.<SiMMLSimulatorVoiceSet>Tables converting from MML voice number to SiOPM pgType for each channel, if the table is different for each channel
| _defaultOpeCount | property |
protected var _defaultOpeCount:intDefault operator count
| _defaultVoiceSet | property |
protected var _defaultVoiceSet:SiMMLSimulatorVoiceSetDefault table converting from MML voice number to SiOPM pgType
| _isSuitableForFMVoice | property |
protected var _isSuitableForFMVoice:BooleanThis simulator can be used as the FM voice's source wave or not
| type | property |
public var type:intmodule type
| SiMMLSimulatorBase | () | Constructor |
public function SiMMLSimulatorBase(type:int, channelCount:int, defaultVoiceSet:SiMMLSimulatorVoiceSet, isSuitableForFMVoice:Boolean = true)type:int | |
channelCount:int | |
defaultVoiceSet:SiMMLSimulatorVoiceSet | |
isSuitableForFMVoice:Boolean (default = true) |
| initializeTone | () | method |
public function initializeTone(track:SiMMLTrack, chNum:int, bufferIndex:int):intinitialize tone by channel number. call from SiMMLTrack::reset()/setChannelModuleType(). call from "%" MML command
Parameters
track:SiMMLTrack | |
chNum:int | |
bufferIndex:int |
int |
| selectTone | () | method |
public function selectTone(track:SiMMLTrack, voiceIndex:int):MMLSequenceselect tone by tone number. call from initializeTone(), SiMMLTrack::setChannelModuleType()/_bufferEnvelop()/_keyOn()/_setChannelParameters(). call from "%" and "@" MML command
Parameters
track:SiMMLTrack | |
voiceIndex:int |
MMLSequence |
| MT_ALL | Constant |
public static const MT_ALL:int = 5| MT_APU | Constant |
public static const MT_APU:int = 1| MT_CUSTOM | Constant |
public static const MT_CUSTOM:int = 4| MT_FM | Constant |
public static const MT_FM:int = 6| MT_FM_MA3 | Constant |
public static const MT_FM_MA3:int = 20| MT_FM_OPL3 | Constant |
public static const MT_FM_OPL3:int = 19| MT_FM_OPLL | Constant |
public static const MT_FM_OPLL:int = 18| MT_FM_OPM | Constant |
public static const MT_FM_OPM:int = 15| MT_FM_OPN | Constant |
public static const MT_FM_OPN:int = 16| MT_FM_OPNA | Constant |
public static const MT_FM_OPNA:int = 17| MT_GB | Constant |
public static const MT_GB:int = 12| MT_KS | Constant |
public static const MT_KS:int = 11| MT_MA3 | Constant |
public static const MT_MA3:int = 3| MT_MAX | Constant |
public static const MT_MAX:int = 21| MT_NOISE | Constant |
public static const MT_NOISE:int = 2| MT_PCM | Constant |
public static const MT_PCM:int = 7| MT_PSG | Constant |
public static const MT_PSG:int = 0| MT_PULSE | Constant |
public static const MT_PULSE:int = 8| MT_RAMP | Constant |
public static const MT_RAMP:int = 9| MT_SAMPLE | Constant |
public static const MT_SAMPLE:int = 10| MT_SID | Constant |
public static const MT_SID:int = 14| MT_VRC6 | Constant |
public static const MT_VRC6:int = 13