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.
© IanniX Association
Qu'est-ce que IanniX ? | Téléchargement | Showcase | Forum | Recherche | À propos
Cookie | Durée | 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. |