Hi there!
Just getting started in this wonderful software. I got a problem, and i can’t seem to find the solution in the existing performance script example (a-z)2
What i want to do is simple. Control the size of a circular curve with a korg nano control fader. I got the following script running, which seems logical to me, but it doesn’t work. Hope someone sees a solution!
//Script "New Script"
//Insert requests for global variables:
function onConfigure() {
//title("enter title here");
//ask("prompt", "groupName", "variableName", defaultValue);
}
//Insert code to create score:
function onCreate() {
run (" add curve 1 ")
run (" setpos current 0 0 0 ")
run (" setpointsellipse current 1 1 ")
run (" add cursor 2 ")
run (" setcurve current lastCurve ")
}
//If a message is received
function onMessage(protocol, host, port, destination, values) {
if((protocol == "midi") && (destination == "cc") && (values.length > 2)) {
var channel = parseInt(values[0]);
var cc = parseInt(values[1]);
var val = parseInt(values[2]);
var sizer = val;
run (" setpointsellipse" + "1" + sizer + sizer);
}
}
Hi !
The mistake is here :
run ("setpointsellipse" + "1" + sizer + sizer);
should be
run ("setpointsellipse " + " 1 " + sizer + " " + sizer);
(be careful with spaces!)
Cookie | Duration | Description |
---|---|---|
cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |