[Csnd] Updating slider values based on Csound code
Date | 2018-11-09 15:15 |
From | Syl Morrison |
Subject | [Csnd] Updating slider values based on Csound code |
Hi again, sorry for two emails in two days, and hope I'm sending to the right place! I'd like to implement a link button in csound, wherein pressing the link button means values for three sliders get updated together. Here is the conditional I've set up for it: if k_button == 1 then S_value sprintfk "range(0, 1, %d, 0.1)", k_low_depth chnset S_value, "mid" k_mid_depth chnget "MidDepth" S_value sprintfk "range(0, 1, %d, 0.1)", k_mid_depth chnset S_value, "high" k_high_depth chnget "HighDepth" S_value sprintfk "range(0, 1, %d, 0.1)", k_high_depth chnset S_value, "low" k_low_depth chnget "LowDepth" endif This doesn't seem to update the visual position of the slider, I know it's a relatively minor aesthetic thing but I would like to be able to use it! I couldn't find much in the docs about it, am I missing something really basic or would I be better off hiding the three sliders and making one control when you press the link button? |
Date | 2018-11-09 15:41 |
From | 00000008a49663bc-dmarc-request@LISTSERV.HEANET.IE |
Subject | Re: [Csnd] Updating slider values based on Csound code |
Is this in Cabbage? If so I think you must only update the value in the slider channel (not the "identchannel()" channel but the "channel()" channel) Ciao Stefano
Il 9 novembre 2018 alle 16.15 Syl Morrison <honoonu@GMAIL.COM> ha scritto: |
Date | 2018-11-09 15:44 |
From | John ff |
Subject | Re: [Csnd] Updating slider values based on Csound code |
More details please.
The code you gave had no sliders so who is running them,?
Sent from TypeApp
On 9 Nov 2018, at 15:16, Syl Morrison <honoonu@gmail.com> wrote:
|
Date | 2018-11-09 15:50 |
From | Syl Morrison |
Subject | Re: [Csnd] Updating slider values based on Csound code |
it is in cabbage yeah! I tried that and it's throwing this error when I try to access it via channel as opposed to identchannel INIT ERROR in instr 1: channel already exists with incompatible type chnset.S S_value "MidDepth" B 0.000 - note deleted. i1 (signal_analysis) had 1 init errors On Fri, Nov 9, 2018 at 3:41 PM <00000008a49663bc-dmarc-request@listserv.heanet.ie> wrote:
|
Date | 2018-11-09 15:53 |
From | Syl Morrison |
Subject | Re: [Csnd] Updating slider values based on Csound code |
Attachments | AutoEQ2.csd |
Sorry, I'll attach the csd. The concept is an auto eq to prevent masking, by multiplying the fstream of a main signal by 1- the mags of a secondary signal. I hope that works without the image files etc, if not let me know and I'll attach them! On Fri, Nov 9, 2018 at 3:50 PM Syl Morrison <honoonu@gmail.com> wrote:
|
Date | 2018-11-09 16:45 |
From | Rory Walsh |
Subject | Re: [Csnd] Updating slider values based on Csound code |
Hi Syl, the Cabbage forum is here: Would you mind posted there are these questions are related more to GUI stuff in Cabbage than Csound? You log in and post with your gmail account, no need to register. On Fri, 9 Nov 2018 at 15:53, Syl Morrison <honoonu@gmail.com> wrote:
|
Date | 2018-11-09 16:50 |
From | Syl Morrison |
Subject | Re: [Csnd] Updating slider values based on Csound code |
Sure, sorry about that! Thanks for your help all!!! On Fri, Nov 9, 2018 at 4:45 PM Rory Walsh <rorywalsh@ear.ie> wrote:
|
Date | 2018-11-09 17:36 |
From | 00000008a49663bc-dmarc-request@LISTSERV.HEANET.IE |
Subject | Re: [Csnd] Updating slider values based on Csound code |
You must send a kvalue as a number kvariable not a string, like: chnset k_mid_depth, "MidDepth" Il 9 novembre 2018 alle 16.50 Syl Morrison <honoonu@GMAIL.COM> ha scritto: |