Packageorg.si.sion.sequencer.simulator
Classpublic class SiMMLSimulatorBase
InheritanceSiMMLSimulatorBase Inheritance Object
Subclasses SiMMLSimulatorAPU, SiMMLSimulatorBaseFM, SiMMLSimulatorDCSG, SiMMLSimulatorGB, SiMMLSimulatorKS, SiMMLSimulatorMA3WaveTable, SiMMLSimulatorNoise, SiMMLSimulatorPCM, SiMMLSimulatorPSG, SiMMLSimulatorPulse, SiMMLSimulatorRamp, SiMMLSimulatorSampler, SiMMLSimulatorSID, SiMMLSimulatorSiOPM, SiMMLSimulatorVRC6, SiMMLSimulatorWT

Base class of all module simulators which control "SiMMLTrack" (not SiOPMChannel) to simulate various modules.



Public Properties
 PropertyDefined By
  type : int
module type
SiMMLSimulatorBase
Protected Properties
 PropertyDefined 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
Public Methods
 MethodDefined 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
  
selectTone(track:SiMMLTrack, voiceIndex:int):MMLSequence
select tone by tone number.
SiMMLSimulatorBase
Public Constants
 ConstantDefined 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
Property Detail
_channelVoiceSetproperty
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

_defaultOpeCountproperty 
protected var _defaultOpeCount:int

Default operator count

_defaultVoiceSetproperty 
protected var _defaultVoiceSet:SiMMLSimulatorVoiceSet

Default table converting from MML voice number to SiOPM pgType

_isSuitableForFMVoiceproperty 
protected var _isSuitableForFMVoice:Boolean

This simulator can be used as the FM voice's source wave or not

typeproperty 
public var type:int

module type

Constructor Detail
SiMMLSimulatorBase()Constructor
public function SiMMLSimulatorBase(type:int, channelCount:int, defaultVoiceSet:SiMMLSimulatorVoiceSet, isSuitableForFMVoice:Boolean = true)



Parameters
type:int
 
channelCount:int
 
defaultVoiceSet:SiMMLSimulatorVoiceSet
 
isSuitableForFMVoice:Boolean (default = true)
Method Detail
initializeTone()method
public function initializeTone(track:SiMMLTrack, chNum:int, bufferIndex:int):int

initialize tone by channel number. call from SiMMLTrack::reset()/setChannelModuleType(). call from "%" MML command

Parameters

track:SiMMLTrack
 
chNum:int
 
bufferIndex:int

Returns
int
selectTone()method 
public function selectTone(track:SiMMLTrack, voiceIndex:int):MMLSequence

select tone by tone number. call from initializeTone(), SiMMLTrack::setChannelModuleType()/_bufferEnvelop()/_keyOn()/_setChannelParameters(). call from "%" and "@" MML command

Parameters

track:SiMMLTrack
 
voiceIndex:int

Returns
MMLSequence
Constant Detail
MT_ALLConstant
public static const MT_ALL:int = 5

MT_APUConstant 
public static const MT_APU:int = 1

MT_CUSTOMConstant 
public static const MT_CUSTOM:int = 4

MT_FMConstant 
public static const MT_FM:int = 6

MT_FM_MA3Constant 
public static const MT_FM_MA3:int = 20

MT_FM_OPL3Constant 
public static const MT_FM_OPL3:int = 19

MT_FM_OPLLConstant 
public static const MT_FM_OPLL:int = 18

MT_FM_OPMConstant 
public static const MT_FM_OPM:int = 15

MT_FM_OPNConstant 
public static const MT_FM_OPN:int = 16

MT_FM_OPNAConstant 
public static const MT_FM_OPNA:int = 17

MT_GBConstant 
public static const MT_GB:int = 12

MT_KSConstant 
public static const MT_KS:int = 11

MT_MA3Constant 
public static const MT_MA3:int = 3

MT_MAXConstant 
public static const MT_MAX:int = 21

MT_NOISEConstant 
public static const MT_NOISE:int = 2

MT_PCMConstant 
public static const MT_PCM:int = 7

MT_PSGConstant 
public static const MT_PSG:int = 0

MT_PULSEConstant 
public static const MT_PULSE:int = 8

MT_RAMPConstant 
public static const MT_RAMP:int = 9

MT_SAMPLEConstant 
public static const MT_SAMPLE:int = 10

MT_SIDConstant 
public static const MT_SID:int = 14

MT_VRC6Constant 
public static const MT_VRC6:int = 13