SetMusicHasGlobalPitch

From OxeyeWiki

Jump to: navigation, search

audio.setMusicHasGlobalPitch(onOff)

Toggles whether music is affected by the global pitch setting or not. Defaults to false.

Available from DaisyMoon v1.0.1

Parameter Expected Type Description
onOff A boolean Set this to true to enable global pitching for music.
Returns

Returns nothing.

Daisymoon Audio Lib

Example

   --high pitched music!
   audio.setMusicHasGlobalPitch(true)
   audio.setGlobalPitch(1.5)

   --restore again
   audio.setGlobalPitch(1.0)
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox