Log In  

In demos, there are sometimes coordinated sound and visual effects. For example, in Elevated by rgba, there are lights in the sky that are coordinated with the notes.

Is the current state of the music system visible in the pico8 ram somewhere?

P#10448 2015-05-03 20:36 ( Edited 2015-05-04 19:43)

You can use some undocumented parameters of stat(n) for this

16..19 gives you the sfx currently playing on each channel or -1 for none
20..23 gives you the currently playing row number (0..31) or -1 for none

Note that the row number may not be very precise depending on what is going on with the host operating system's audio mixer. Also in the case of the web player which needs to have a large mixing buffer, the result is often slightly earlier that what is audible.

(p.s. you might want to change the post category to pico-8)

P#10459 2015-05-04 15:43 ( Edited 2015-05-04 19:44)

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-03-28 09:00:58 | 0.006s | Q:11