Packageorg.si.sion.utils
Classpublic dynamic class SiONPresetVoice

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


Example
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



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_WAVETABLE : int = 16
[static] Flag to include wave table 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_WAVETABLEconstant 
public static const INCLUDE_WAVETABLE:int = 16

Flag to include wave table voices.