PicoPicoGameEngine

Quick Links

MML Objects

ppflmml

:play()

ppflmml[n]:play(mml)
n : number

mml : string

--play CDEFGABC
function start()
  if #pptouch() > 0 then
    ppflmml[1]:play(mml)
  end
end

mml="t120o5l4cdefgab<c"

:stop()

ppflmml[n]:stop()
n : number

:pause()

ppflmml[n]:pause()
n : number

:preload()

ppflmml[n]:preload(mml)
n : number

:resume()

ppflmml[n]:resume()
n : number

:isPlaying()

result = ppflmml[n]:isPlaying()
n : number

result : boolean

  • true
  • false

:isPaused()

result = ppflmml[n]:isPaused()
n : number

result : boolean

  • true
  • false

:volume()

ppflmml[n]:volume(vol)
vol : number

n : number

:noteOn()

ppflmml[n]:noteOn(track, noteNo, volume)
track : number

noteNo : number

volume : number

n : number

ppflmml[1]:play("@3")
note=false

function start()
  if #pptouch() > 0 then
    if not note then
      ppflmml[1]:noteOn(1,67,1)
      note=true
    end
  else
    ppflmml[1]:noteOff(1)
    note=false
  end
end

:noteOff()

ppflmml[n]:noteOff(track)
track : number

n : number

ppsemml

:play()

ppsemml[n]:play(mml)
n : number

mml : string

:stop()

ppsemml[n]:stop()
n : number

:isPlaying()

result = ppsemml[n]:isPlaying()
n : number

  • true
  • false

:volume()

ppsemml[n]:volume(volume)
n : number

volume : number

ppsewave

:wav9()

ppsewave[n]:wav9(waveNo, intVol, loopFlag, data)
waveNo : number

intVol : number

loopFlag : boolean

  • true
  • false
data : string

n : number

:wav10()

ppsewave[n]:wav10(waveNo, data)
waveNo : number

data : string

n : number

:wav13()

ppsewave[n]:wav13(waveNo, data)
waveNo : number

data : string

n : number