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: In JSFX when you do ext_noinit = 1; and init is not recalled, what about the @slider, whe playback and is stopped and the restarted, will the @slider be called? A null test that wasn't supposed to null when a slider hasn't been touched because the lookaheadcode is at @slider is actually pulling on playback stop/restart and no slider is touched. Making me.wondering if @slider is recalled each playback start in JSFX??
Asked by @slider (102.176.65.x) on June 21 2026, 7:27pm
Reply on June 21 2026, 8:16pm (edited at June 21 2026, 8:21pm):
    that's super easy to check, run this:
    @init
    ext_noinit = 1;
    @slider
    slider_call_cnt+=1;
    
    then look in the watch window to see what happens to slider_call_cnt :) (spoiler: @slider shouldn't normally get called, but if the samplerate or blocksize changes, or undo state is loaded, etc, it will).


Comments:
  • Posted by @slider (102.176.65.x) on June 21 2026, 8:40pm:
    Oh wow, eye-opener, I think I found it. The sample rate change retriggered the @slider. Stopping playback and using the plugin oversampling feature caused the @slider to retrigger and gave the correct values, that's why they null. Thanks so much. Will keep it in my notes. Pls indicate it in the manual that srate and block size change can retrigger even when using ext_noinit.


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

    Comment:    

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