Skip to content
This repository has been archived by the owner on Jul 17, 2024. It is now read-only.

read back of sliders? #12

Open
umlaeute opened this issue Mar 3, 2016 · 3 comments
Open

read back of sliders? #12

umlaeute opened this issue Mar 3, 2016 · 3 comments

Comments

@umlaeute
Copy link
Contributor

umlaeute commented Mar 3, 2016

afaict (not having REAPER at hand), the specs allow a plugin to write to a slider variable, and the host is supposed to display this value.

probably the [jsusf~] could be given an extra outlet that would output the slider-values? (either when triggered manually, when a value has changed or for each block).

@asb2m10
Copy link
Owner

asb2m10 commented Mar 4, 2016

[jsusfx~] already supports this with the [dumpvars( message.

But I think that the runtime object ([jxrt~], see ref #11) should support this and output (via the oulets) the slider value for each slider when the [slider( message is received.

@umlaeute
Copy link
Contributor Author

umlaeute commented Mar 4, 2016

well, i don't think that printing values to the Pd-console is especially useful apart from debugging.
so i'm really talking about making those values in the patch.

but yes, if [jsusfx~]'s purpose is debugging scripts, and [jxrt~] is the object proper, i'm fine with putting that functionality there.

regarding the [slider( message, i'm not entirely sure whether a pull approach is always sufficient. i think it would be best if the user can decide whether they want to be notified of new changes or whether they want to query the current state (or both).

@asb2m10
Copy link
Owner

asb2m10 commented Mar 5, 2016

I doubt that on Reaper the slider update trigger is done on the dsp thread. There seems to be a low priority thread that updates everything at each ~100ms.

I'm not against the push approach; it's just that I'm not convinced yet to do this on the dsp thread. Sliders in native EEL2 are difficult to track because it's just machine code. We need to do a delta at each end of dsp buffer cycle and I find this ... overwhelming for something that is not often used. Maybe external thread like in reaper ...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants