Packageorg.si.sion.utils.soundfont
Classpublic class SiONSoundFont
InheritanceSiONSoundFont Inheritance Object

SiON Sound font class.



Public Properties
 PropertyDefined By
  defaultExpressionMode : int = 0
default expression mode
SiONSoundFont
  defaultFPS : Number = 60
default FPS
SiONSoundFont
  defaultVCommandShift : int = 4
default v command shoft
SiONSoundFont
  defaultVelocityMode : int = 0
default velocity mode
SiONSoundFont
  envelopes : Vector.<SiMMLEnvelopTable>
all SiMMLEnvelopTable instances
SiONSoundFont
  fmVoices : Vector.<SiONVoice>
all fm voice instances
SiONSoundFont
  pcmVoices : Vector.<SiONVoice>
all pcm voice instances
SiONSoundFont
  samplerTables : Vector.<SiOPMWaveSamplerTable>
all sampler table instances
SiONSoundFont
  sounds : *
all loaded Sound instances, access them by id
SiONSoundFont
  waveTables : Vector.<SiOPMWaveTable>
all SiOPMWaveTable inetances
SiONSoundFont
Public Methods
 MethodDefined By
  
SiONSoundFont(sounds:* = null)
constructor
SiONSoundFont
  
apply(data:SiONData = null, pcmVoiceOffset:int = 0, samplerTableOffset:int = 0, fmVoiceOffset:int = 0, waveTableOffset:int = 0, envelopeOffset:int = 0):void
apply sound font to SiONData or SiONDriver.
SiONSoundFont
Property Detail
defaultExpressionModeproperty
public var defaultExpressionMode:int = 0

default expression mode

defaultFPSproperty 
public var defaultFPS:Number = 60

default FPS

defaultVCommandShiftproperty 
public var defaultVCommandShift:int = 4

default v command shoft

defaultVelocityModeproperty 
public var defaultVelocityMode:int = 0

default velocity mode

envelopesproperty 
public var envelopes:Vector.<SiMMLEnvelopTable>

all SiMMLEnvelopTable instances

fmVoicesproperty 
public var fmVoices:Vector.<SiONVoice>

all fm voice instances

pcmVoicesproperty 
public var pcmVoices:Vector.<SiONVoice>

all pcm voice instances

samplerTablesproperty 
public var samplerTables:Vector.<SiOPMWaveSamplerTable>

all sampler table instances

soundsproperty 
public var sounds:*

all loaded Sound instances, access them by id

waveTablesproperty 
public var waveTables:Vector.<SiOPMWaveTable>

all SiOPMWaveTable inetances

Constructor Detail
SiONSoundFont()Constructor
public function SiONSoundFont(sounds:* = null)

constructor

Parameters
sounds:* (default = null)
Method Detail
apply()method
public function apply(data:SiONData = null, pcmVoiceOffset:int = 0, samplerTableOffset:int = 0, fmVoiceOffset:int = 0, waveTableOffset:int = 0, envelopeOffset:int = 0):void

apply sound font to SiONData or SiONDriver.

Parameters

data:SiONData (default = null) — SiONData to apply this font. null to set SiONDriver.
 
pcmVoiceOffset:int (default = 0) — index offset for pcmVoices
 
samplerTableOffset:int (default = 0) — index offset for samplerTable
 
fmVoiceOffset:int (default = 0) — index offset for fmVoices
 
waveTableOffset:int (default = 0) — index offset for waveTables
 
envelopeOffset:int (default = 0) — index offset for envelopes