Submit
Browse
Anonymous
Login
RSS
SuperCollider Code
Fork Code: Using CCResponder Function to Use Midi Controller Slider to Generate and Control the Frequency of a SinOsc Frequency Variable
name
code content
( var freq, { c = CCResponder({ |src,chan,num,value| [src,chan,num,value].postln; test = (CCResponder[value]); }); c.learn; // wait for the first controller SinOsc.ar(freq, 0, 0.5) }.play;
code description
I have only been using SuperCollider for a couple of weeks, and I am finding it rather tough, so please bear with me. I would like to use the argument 'value' (integer) from the function CCResponder to control the frequency of the frequency argument of SinOsc. I know I will need to declare a variable and manipulate the variable to the correct value to be used with freq. I am not sure how to access the 'value' argument of CCResponder and also how to convert it to a useable value to be used with SinOsc's freq. I know this is probably easy to do, but I am banging my head against a brick wall at the moment.
use markdown for formating
category tags
comma separated, i.g. "wild, siren" (do not enter default SC class names, please)
ancestor(s)
comma separated identificators, i.g. "1-C,1-1,1-4M,1-x"
Private?
the code will be accessible by direct url and not visible in public activity
signup to submit public code without captcha
comment of change