Log In  

How to get index of which pattern is currently playing in music?
Not talking about sfx.

P#25655 2016-07-21 07:58 ( Edited 2016-07-24 10:52)

if it's possible, it's gonna be some kind of peek()

i'm too lazy to actually do it, but i'd write a cartridge that peeks a chunk of memory, then changes the current pattern, re-peeks the same chunk, and checks it for differences... good luck, my dude

P#25675 2016-07-21 14:24 ( Edited 2016-07-21 18:24)

I tried it but couldn't find anything by peeking.

P#25732 2016-07-22 14:54 ( Edited 2016-07-22 18:54)

There isn't a way to get the current pattern directly. You'd have to keep checking with stat(16)..stat(19) to see if the currently playing sfxes on the music channels have changed (assuming no duplicate pattern data), and then manually keep track of the pattern index.

P#25737 2016-07-22 16:47 ( Edited 2016-07-22 20:49)

But it will still cause problems if the window is idle and skips a pattern.

P#25811 2016-07-24 06:52 ( Edited 2016-07-24 10:52)

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-03-28 11:15:29 | 0.006s | Q:15