Web
Analytics
Log In  

1

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

peek stat code music
P#25655 2016-07-21 07:58 ( Edited 2016-07-24 06: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

::

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

P#25732 2016-07-22 14: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 16:49)

::

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

P#25811 2016-07-24 06:52

Log in to post a comment

user:
password:

New User | Account Help
:: New User
X
About | Contact | Updates | Terms of Use
Follow Lexaloffle:        
Generated 2018-05-21 20:33 | 0.175s | 1572k | Q:13