How to execute a little Script

Home Forums Scripts How to execute a little Script

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #77307 Reply
    ComputerArtists_ThL
    Guest

    Dear love IANNIX Community,
    I still need help to execute a little IANNIX Script.

    I have the following Code:

    ####
    run(“clear”);
    run(“setScoreBPM 120”);

    // Kurve erzeugen
    var curveID = “curve0”;
    run(“createCurve ” + curveID);
    run(“setCurveName ” + curveID + ” SinusKurve”);

    // Sinuskurve mit Punkten
    var amplitude = 100;
    var period = 200;
    for (var i = 0; i <= 20; i++) {
    var x = i * 20;
    var y = Math.sin((x / period) * 2 * Math.PI) * amplitude;
    run(“addPoint ” + curveID + ” ” + x + ” ” + y + ” 0″);
    }

    // Cursor erzeugen und starten
    var cursorID = “cursor0”;
    run(“createCursor ” + cursorID);
    run(“linkCursorToCurve ” + cursorID + ” ” + curveID);
    run(“setCursorSpeed ” + cursorID + ” 100″);
    run(“startCursor ” + cursorID);

    // Trigger platzieren
    for (var j = 1; j <= 5; j++) {
    var triggerID = “trigger” + j;
    var position = j * 0.2;
    run(“createTrigger ” + triggerID);
    run(“setTriggerPosition ” + triggerID + ” ” + curveID + ” ” + position);
    run(“setTriggerAction ” + triggerID + ” osc:/trigger j=” + j);
    run(“setTriggerName ” + triggerID + ” Trigger_” + j);
    }

    // Score starten
    run(“run”);
    ####

    Which is generated by ChatGPT.

    I will test is this Code correct.
    So can anybody explain me is this Code correct.
    And How I can execute this Code.

Viewing 1 post (of 1 total)
Reply To: How to execute a little Script
Your information:





© IanniX Association

What is IanniX? | Download | Showcase | Forums | Research | About