creating a trigger at running cursor position

Accueil Forums Scripts creating a trigger at running cursor position

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

    HI!
    Can someone give me an example of a script to create a trigger, when pressing a key on a controller, in the actual position of the running cursor.

    Here is my script:
    I put in BOLD the line than doesn´t work.

    function onConfigure() {
    //title(“enter title here”);
    //ask(“prompt”, “groupName”, “variableName”, defaultValue);
    }

    function onCreate() {
    run (” add curve 1 “)

    run (” setpos current 0 0 0 “)
    run (” setpointsellipse current 5 5 “)
    run (” add cursor 2 “)
    run (” setcurve current lastCurve “)
    run (” setspeed current 50 “)
    run (” setPattern current 0 0 1 “)
    run (” add trigger 23 “)
    run (” setpos current 4 3 0 “)

    run (” add trigger 25 “)
    run (” setpos current -4 -3 0 “)
    }

    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]);

    if (cc == 32) {

    run (” add trigger auto “)
    run(“setPos current ” + cursor_value_x + ” ” + cursor_value_y + ” 0″);

    }

    }
    }

    Thank´s

    Andrés

    #2832 Répondre
    Anonyme
    Inactif

    Hi!

    In the current version, it is not possible to that directly in IanniX. We make tests with new features that allows to do that for the next release. The only possibility is to use Pd or Max (cursor outputs its coordinates and pd send the information to create a trigger).

    Thanks!

2 sujets de 1 à 2 (sur un total de 2)
Répondre à : creating a trigger at running cursor position
Vos informations:





© IanniX Association

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