Packageorg.si.sion.sequencer
Classpublic class SiMMLTable
InheritanceSiMMLTable Inheritance Object

table for sequencer



Public Properties
 PropertyDefined By
  alg_init : Array
initial connection
SiMMLTable
  alg_ma3 : Array
algorism table for MA3
SiMMLTable
  alg_opl : Array
algorism table for OPL3
SiMMLTable
  alg_opm : Array
algorism table for OPM/OPN.
SiMMLTable
  alg_opx : Array
algorism table for OPX.
SiMMLTable
  channelModuleSetting : Array = null
module setting table
SiMMLTable
  effectModuleSetting : Array = null
module setting table
SiMMLTable
  _instance : SiMMLTable = null
[static] internal instance, you can access this after creating SiONDriver.
SiMMLTable
  instance : SiMMLTable
[static] [read-only] singleton instance
SiMMLTable
  presetRegisterVRC7 : Vector.<uint>
table of VRC7 preset voices (from virturenes)
SiMMLTable
  presetRegisterVRC7Drums : Vector.<uint>
table of VRC7/OPLL preset drums (from virturenes)
SiMMLTable
  presetRegisterYM2413 : Vector.<uint>
table of OPLL preset voices (from virturenes)
SiMMLTable
  presetVoiceVRC7 : Vector.<SiMMLVoice> = null
Preset voice set of VRC7
SiMMLTable
  presetVoiceVRC7Drums : Vector.<SiMMLVoice> = null
Preset voice set of VRC7/OPLL drum
SiMMLTable
  presetVoiceYM2413 : Vector.<SiMMLVoice> = null
Preset voice set of OPLL
SiMMLTable
  simulators : Array = null
module simulators
SiMMLTable
  tss_s2ar : Vector.<String> = null
table from tsscp
SiMMLTable
  tss_s2dr : Vector.<String> = null
table from tsscp
SiMMLTable
  tss_s2rr : Vector.<String> = null
table from tsscp s commnd to OPM rr
SiMMLTable
  tss_s2sr : Vector.<String> = null
table from tsscp
SiMMLTable
Public Methods
 MethodDefined By
  
constructor
SiMMLTable
  
Get Envelop table.
SiMMLTable
  
getPGType(moduleType:int, channelNum:int, toneNum:int = -1):int
[static] get 0th operators pgType number from moduleType, channelNum and toneNum.
SiMMLTable
  
Get voice data.
SiMMLTable
  
isSuitableForFMVoice(moduleType:int):Boolean
[static] get 0th operators pgType number from moduleType, channelNum and toneNum.
SiMMLTable
  
[static] Register envelop table.
SiMMLTable
  
registerMasterVoice(index:int, voice:SiMMLVoice):void
[static] Register voice data.
SiMMLTable
Public Constants
 ConstantDefined By
  ENV_TABLE_MAX : int = 512
[static]
SiMMLTable
  MT_ALL : int = 5
[static]
SiMMLTable
  MT_APU : int = 1
[static]
SiMMLTable
  MT_CUSTOM : int = 4
[static]
SiMMLTable
  MT_FM : int = 6
[static]
SiMMLTable
  MT_FM_MA3 : int = 20
[static]
SiMMLTable
  MT_FM_OPL3 : int = 19
[static]
SiMMLTable
  MT_FM_OPLL : int = 18
[static]
SiMMLTable
  MT_FM_OPM : int = 15
[static]
SiMMLTable
  MT_FM_OPN : int = 16
[static]
SiMMLTable
  MT_FM_OPNA : int = 17
[static]
SiMMLTable
  MT_GB : int = 12
[static]
SiMMLTable
  MT_KS : int = 11
[static]
SiMMLTable
  MT_MA3 : int = 3
[static]
SiMMLTable
  MT_MAX : int = 21
[static]
SiMMLTable
  MT_NOISE : int = 2
[static]
SiMMLTable
  MT_PCM : int = 7
[static]
SiMMLTable
  MT_PSG : int = 0
[static]
SiMMLTable
  MT_PULSE : int = 8
[static]
SiMMLTable
  MT_RAMP : int = 9
[static]
SiMMLTable
  MT_SAMPLE : int = 10
[static]
SiMMLTable
  MT_SID : int = 14
[static]
SiMMLTable
  MT_VRC6 : int = 13
[static]
SiMMLTable
  VOICE_MAX : int = 256
[static]
SiMMLTable
Property Detail
_instanceproperty
public static var _instance:SiMMLTable = null

internal instance, you can access this after creating SiONDriver.

alg_initproperty 
public var alg_init:Array

initial connection

alg_ma3property 
public var alg_ma3:Array

algorism table for MA3

alg_oplproperty 
public var alg_opl:Array

algorism table for OPL3

alg_opmproperty 
public var alg_opm:Array

algorism table for OPM/OPN.

alg_opxproperty 
public var alg_opx:Array

algorism table for OPX. LSB4 is the flag of feedback connection.

channelModuleSettingproperty 
public var channelModuleSetting:Array = null

module setting table

effectModuleSettingproperty 
public var effectModuleSetting:Array = null

module setting table

instanceproperty 
instance:SiMMLTable  [read-only]

singleton instance


Implementation
    public static function get instance():SiMMLTable
presetRegisterVRC7property 
public var presetRegisterVRC7:Vector.<uint>

table of VRC7 preset voices (from virturenes)

presetRegisterVRC7Drumsproperty 
public var presetRegisterVRC7Drums:Vector.<uint>

table of VRC7/OPLL preset drums (from virturenes)

presetRegisterYM2413property 
public var presetRegisterYM2413:Vector.<uint>

table of OPLL preset voices (from virturenes)

presetVoiceVRC7property 
public var presetVoiceVRC7:Vector.<SiMMLVoice> = null

Preset voice set of VRC7

presetVoiceVRC7Drumsproperty 
public var presetVoiceVRC7Drums:Vector.<SiMMLVoice> = null

Preset voice set of VRC7/OPLL drum

presetVoiceYM2413property 
public var presetVoiceYM2413:Vector.<SiMMLVoice> = null

Preset voice set of OPLL

simulatorsproperty 
public var simulators:Array = null

module simulators

tss_s2arproperty 
public var tss_s2ar:Vector.<String> = null

table from tsscp

tss_s2drproperty 
public var tss_s2dr:Vector.<String> = null

table from tsscp

tss_s2rrproperty 
public var tss_s2rr:Vector.<String> = null

table from tsscp s commnd to OPM rr

tss_s2srproperty 
public var tss_s2sr:Vector.<String> = null

table from tsscp

Constructor Detail
SiMMLTable()Constructor
public function SiMMLTable()

constructor

Method Detail
getEnvelopTable()method
public function getEnvelopTable(index:int):SiMMLEnvelopTable

Get Envelop table.

Parameters

index:int — table number.

Returns
SiMMLEnvelopTable
getPGType()method 
public static function getPGType(moduleType:int, channelNum:int, toneNum:int = -1):int

get 0th operators pgType number from moduleType, channelNum and toneNum.

Parameters

moduleType:int — Channel module type
 
channelNum:int — Channel number. For %2-11, this value is same as 1st argument of '_@'.
 
toneNum:int (default = -1) — Tone number. Ussualy, this argument is used only in %0;PSG and %1;APU.

Returns
int — pgType value, or -1 when moduleType == 6(FM) or 7(PCM).
getSiMMLVoice()method 
public function getSiMMLVoice(index:int):SiMMLVoice

Get voice data.

Parameters

index:int — voice parameter number.

Returns
SiMMLVoice
isSuitableForFMVoice()method 
public static function isSuitableForFMVoice(moduleType:int):Boolean

get 0th operators pgType number from moduleType, channelNum and toneNum.

Parameters

moduleType:int — Channel module type

Returns
Boolean — pgType value, or -1 when moduleType == 6(FM) or 7(PCM).
registerMasterEnvelopTable()method 
public static function registerMasterEnvelopTable(index:int, table:SiMMLEnvelopTable):void

Register envelop table.

Parameters

index:int — table number refered by @@,na,np,nt,nf,_@@,_na,_np,_nt and _nf.
 
table:SiMMLEnvelopTable — envelop table.

registerMasterVoice()method 
public static function registerMasterVoice(index:int, voice:SiMMLVoice):void

Register voice data.

Parameters

index:int — voice parameter number refered by %6.
 
voice:SiMMLVoice — voice.

Constant Detail
ENV_TABLE_MAXConstant
public static const ENV_TABLE_MAX:int = 512

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

VOICE_MAXConstant 
public static const VOICE_MAX:int = 256