Packageorg.si.sion.utils
Classpublic dynamic class SiONPresetVoice
InheritanceSiONPresetVoice Inheritance Object

Preset voice data. 650 voices are available now (default:16, valsound:258, GM:128x2, GMdrum:60x2).

View the examples



Public Properties
 PropertyDefined By
  categolies : Array
categoly list.
SiONPresetVoice
  mutex : SiONPresetVoice
[static] [read-only] mutex object
SiONPresetVoice
  waveTables : Array
wave tables
SiONPresetVoice
  waveTablesHex : Array
wave tables hex
SiONPresetVoice
Public Methods
 MethodDefined By
  
SiONPresetVoice(includeFlag:int = 0xffff)
constructor.
SiONPresetVoice
Public Constants
 ConstantDefined By
  INCLUDE_ALL : int = 0xffff
[static] Flag to include all voices.
SiONPresetVoice
  INCLUDE_DEFAULT : int = 1
[static] Flag to include default voices.
SiONPresetVoice
  INCLUDE_MIDI : int = 4
[static] Flag to include General MIDI voices.
SiONPresetVoice
  INCLUDE_MIDIDRUM : int = 8
[static] Flag to include General MIDI drum set voices.
SiONPresetVoice
  INCLUDE_SINGLE_DRUM : int = 32
[static] Flag to include single voice drum voices.
SiONPresetVoice
  INCLUDE_VALSOUND : int = 2
[static] Flag to include voices set [valsound] (http://www.valsound.com/).
SiONPresetVoice
  INCLUDE_VC7 : int = 128
[static] Flag to include VC7 preset voices.
SiONPresetVoice
  INCLUDE_WAVETABLE : int = 16
[static] Flag to include wave table voices.
SiONPresetVoice
  INCLUDE_YM2413 : int = 64
[static] Flag to include YM2413 preset voices.
SiONPresetVoice
Property Detail
categoliesproperty
public var categolies:Array

categoly list.

mutexproperty 
mutex:SiONPresetVoice  [read-only]

mutex object


Implementation
    public static function get mutex():SiONPresetVoice
waveTablesproperty 
public var waveTables:Array

wave tables

waveTablesHexproperty 
public var waveTablesHex:Array

wave tables hex

Constructor Detail
SiONPresetVoice()Constructor
public function SiONPresetVoice(includeFlag:int = 0xffff)

constructor.

Parameters
includeFlag:int (default = 0xffff) — Flag to select which voices are included.
Constant Detail
INCLUDE_ALLConstant
public static const INCLUDE_ALL:int = 0xffff

Flag to include all voices.

INCLUDE_DEFAULTConstant 
public static const INCLUDE_DEFAULT:int = 1

Flag to include default voices.

INCLUDE_MIDIConstant 
public static const INCLUDE_MIDI:int = 4

Flag to include General MIDI voices.

INCLUDE_MIDIDRUMConstant 
public static const INCLUDE_MIDIDRUM:int = 8

Flag to include General MIDI drum set voices.

INCLUDE_SINGLE_DRUMConstant 
public static const INCLUDE_SINGLE_DRUM:int = 32

Flag to include single voice drum voices.

INCLUDE_VALSOUNDConstant 
public static const INCLUDE_VALSOUND:int = 2

Flag to include voices set [valsound] (http://www.valsound.com/).

INCLUDE_VC7Constant 
public static const INCLUDE_VC7:int = 128

Flag to include VC7 preset voices.

INCLUDE_WAVETABLEConstant 
public static const INCLUDE_WAVETABLE:int = 16

Flag to include wave table voices.

INCLUDE_YM2413Constant 
public static const INCLUDE_YM2413:int = 64

Flag to include YM2413 preset voices.

Examples
Create new instance and access voices by key.
var voices:SiONPresetVoice = new SiONPresetVoice(); // create new instance.
var voice:SiONVoice = voices["valsound.piano1"];    // access voice by key
Or you can access Array list by categoly key.
var voices:SiONPresetVoice = new SiONPresetVoice(); // create new instance.
var bassVoiceList:Array = voices["valsound.bass"];  // access voice list by categoly key
var bass10:SiONVoice = bassVoiceList[10];           // access voice by index
Or you can access Array list by categolies property.
var voices:SiONPresetVoice = new SiONPresetVoice(); // create new instance.
var voiceList:Array = voices.categolies[2];         // access voice list by categoly index
trace(voiceList["name"]);                           // outputs "valsound.bell"
var bell2:SiONVoice = voiceList[2];                 // access voice by index