Performance: simple control of a circular curve

Accueil Forums Scripts Performance: simple control of a circular curve

  • Ce sujet contient 1 réponse, 2 participants et a été mis à jour pour la dernière fois par Anonyme, le il y a 11 années et 8 mois.
2 sujets de 1 à 2 (sur un total de 2)
  • Auteur
    Messages
  • #2268 Répondre
    Anonyme
    Inactif

    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);
    }
    }
    #2816 Répondre
    Anonyme
    Inactif

    Hi !

    The mistake is here :

    run ("setpointsellipse" + "1" + sizer + sizer); 

    should be

    run ("setpointsellipse " + " 1 " + sizer + " " + sizer); 

    (be careful with spaces!)

2 sujets de 1 à 2 (sur un total de 2)
Répondre à : Répondre #2816 dans Performance: simple control of a circular curve
Vos informations :





© IanniX Association

Qu'est-ce que IanniX ? | Téléchargement | Showcase | Forum | Recherche | À propos