Moai SDK
1.5 revision 1 (MoaiEdition)
|
Returns the beat fraction of this Event Instance (useful for music)
function getBeatFraction ( MOAIFmodEventInstance self )
self | ( MOAIFmodEventInstance ) |
Returns the fundamental frequency of this Event Instance.
function getDominantFrequency ( MOAIFmodEventInstance self )
self | ( MOAIFmodEventInstance ) |
Returns the measure fraction of this Event Instance (useful for music)
function getMeasureFraction ( MOAIFmodEventInstance self )
self | ( MOAIFmodEventInstance ) |
Get the name of the Event.
function getName ( MOAIFmodEventInstance self )
self | ( MOAIFmodEventInstance ) |
Get the number of Channels in this Event's Channel Group.
function getNumChannels ( MOAIFmodEventInstance self )
self | ( MOAIFmodEventInstance ) |
Gets the value (a number) of an Event parameter.
function getParameter ( MOAIFmodEventInstance self, string parameterName )
self | ( MOAIFmodEventInstance ) |
parameterName | ( string ) The name of the Event Parameter |
Gets the pitch of the Event Instance.
function getPitch ( MOAIFmodEventInstance self )
self | ( MOAIFmodEventInstance ) |
Returns the tempo of this Event Instance (useful for music)
function getTempo ( MOAIFmodEventInstance self )
self | ( MOAIFmodEventInstance ) |
Returns time within the Event, or if useSubsoundTime, will return the time within the *the first subsound only*.
function getTime ( MOAIFmodEventInstance self [, boolean useSubsoundTime ] )
self | ( MOAIFmodEventInstance ) |
useSubsoundTime | ( boolean ) Optional. If true, will return the time within the first subsound only (Default: false) |
Gets the volume of the Event Instance.
function getVolume ( MOAIFmodEventInstance self )
self | ( MOAIFmodEventInstance ) |
Checks to see if the instance is valid (i.e., currently playing)
function isValid ( MOAIFmodEventInstance self )
self | ( MOAIFmodEventInstance ) |
Sets the Event Instance to key off based on the passed in Event Parameter.
function keyOff ( MOAIFmodEventInstance self, string parameterName )
self | ( MOAIFmodEventInstance ) |
parameterName | ( string ) The name of the Event Parameter |
Mutes the Event Instance currently playing.
function mute ( MOAIFmodEventInstance self [, boolean setting ] )
self | ( MOAIFmodEventInstance ) |
setting | ( boolean ) Optional. Whether to mute or unmute. Defaults to true (mute). |
Pauses the Event Instance currently playing.
function pause ( MOAIFmodEventInstance self [, boolean setting ] )
self | ( MOAIFmodEventInstance ) |
setting | ( boolean ) Optional. Whether to pause or unpause. Defaults to true (pause). |
Sets the value (a number) of an Event parameter.
function setParameter ( MOAIFmodEventInstance self, string parameterName, number paramValue )
self | ( MOAIFmodEventInstance ) |
parameterName | ( string ) The name of the Event Parameter |
paramValue | ( number ) New value of the Event Parameter |
Sets the pitch of the Event Instance.
function setPitch ( MOAIFmodEventInstance self, number pitch )
self | ( MOAIFmodEventInstance ) |
pitch | ( number ) A pitch level, from 0.0 to 10.0 inclusive. 0.5 = half pitch, 2.0 = double pitch. Default = 1.0 |
Sets the volume of the Event Instance.
function setVolume ( MOAIFmodEventInstance self, number volume )
self | ( MOAIFmodEventInstance ) |
volume | ( number ) Volume is a number between 0 and 1 (where 1 is at full volume). |
Stops the Event Instance from playing.
function stop ( MOAIFmodEventInstance self )
self | ( MOAIFmodEventInstance ) |
For streaming sounds -- unloads the Event from memory on silence. (A good guideline to use is: for sounds that don't repeat often)
function unloadOnSilence ( MOAIFmodEventInstance self [, boolean setting ] )
self | ( MOAIFmodEventInstance ) |
setting | ( boolean ) Optional. Whether to unload on silence or not (Default: true) |