justin = { main feed , music , code , askjf , pubkey };
Ask Justin Frankel
No reasonable question unanswered since 2009!

Suggested topics: programming, music, sleep, coffee, etc.

Note: please do not ask questions about REAPER features, bugs or scheduling, use the forums instead.


Name: Ask: Human (enter yes):
[back to index] | [unreplied] | [replied] | [recent comments] | [all]

Question: Hi, this is supposed to be a simple playback counter, but only the first playback gets detected and updated to 1 but then gets stuck at 1 even when we've stopped and played back multiple times. Could it be that the built-in playstate is sending wrong values? I'm struggling to find whats wrong. pastebin.com/z2DbtZJa
Asked by debug (102.176.65.x) on September 22 2025, 9:22pm
Reply on September 22 2025, 10:23pm:
    by default in JSFX, everything (all memory, variables, etc) get reset to 0 and @init gets called on each playback start. you can disable this behavior by setting ext_noinit=1 in @init.


Comments:
  • Posted by debug (102.176.65.x) on September 23 2025, 12:16am:
    Wow, working perfectly 👌 Thanks so much!


Comment:
    Your Name:   -- Site Owner's Name:  (for human-verification)

    Comment:    

    
  
[back to index] | [unreplied] | [replied] | [recent comments] | [all]
Copyright 2025 Justin Frankel. | RSS