Kontakt Skript

oove

oove

Registriert
10.08.10
Beiträge
2.834
Reaktionen
1.181
Punkte
6.608
Moin,

Ich habe hier ein sehr einfaches Kontakt Skript, welches tadellos funktioniert und ich möchte es ergänzen.

Es rechnet einen den Expression Controller in Velocity Werte um.
Nun möchte ich aber zusätzlich mit einem Pedal einen zweiten Controller (angenommen CC#5) einfügen, der im Grunde das gleiche macht, nur den letzten Wert zu dem des schon bestehenden Skripts dazu addiert.

Normalerweise ist es ja so, dass einfach der letzte Wert eines Controllers gilt. Es soll aber so sein, dass der letzte Wert des Controllers 2 zu dem neuen Wert des Controllers 1 (CC#11) dazu addiert wird. (Einstellbarer Offset)

Ich habe das Skript nicht selbst geschrieben und kann nur grob ablesen was da passiert. Im Detail kenne ich aber die Form der Befehle nicht. Vielleicht eine Variable in die Gleichung einfügen?

Das Skript sieht so aus:

on note
change_velo($EVENT_ID, 1 + 126 * %CC[11] / 127)
end on


Meine Idee war

on note
change_velo($EVENT_ID, 1 + 126 * %CC[11] / 127) add
change_velo($EVENT_ID, 1 + 126 * %CC[5] / 127)
end on

Was natürlich nicht funktioniert. Es soll nur veranschaulichen, was ich meine.

Leider komme ich in das NI Forum nicht herein, obwohl ich angemeldet bin. Mir fehlen die "ausreichenden Rechte" einen Post zu verfassen.
Ich hätte den Text auch auf englisch da, falls jemand dort angemeldet ist, wäre ich sehr dankbar, wenn ihn jemand für mich dort einstellt.

 
Leider komme ich in das NI Forum nicht herein, obwohl ich angemeldet bin. Mir fehlen die "ausreichenden Rechte" einen Post zu verfassen.
Ich hätte den Text auch auf englisch da, falls jemand dort angemeldet ist, wäre ich sehr dankbar, wenn ihn jemand für mich dort einstellt.
Sollte kein Problem sein.

Passt das so für ich?:
I have here a very simple contact script which works perfectly and I would like to add it.

It converts the expression controller into velocity values.
Now I would like to add a second controller (assuming CC#5) with a pedal, which basically does the same thing, but adds only the last value to the existing script.

Normally, it is the case that the last value of a controller applies. However, the last value of controller 2 is to be added to the new value of controller 1 (CC#11). (Adjustable offset)

I didn't write the script myself and can only roughly read what is happening there. In detail, I don't know the form of the commands. Perhaps insert a variable into the equation?

Translated with www.DeepL.com/Translator
 
Das ist ja super cool!!
hier müsste es hin:

https://www.native-instruments.com/forum/forums/scripting-workshop.205/

DANKEEE!!!

----------------------------------------------------------------------------------------------------
Hi

This is a very useful skript to change Contoller 11 to Velocity.
It makes me happy!

on note
change_velo($EVENT_ID, 1 + 126 * %CC[11] / 127)
end on


But my controller (Accordion Bellow) works very heavy and I would like to ADD an flexible offset with CC pedal.

For this I think I have to use the same skript line as shown. Either with the same controller number or maybe better with another. For example:

change_velo($EVENT_ID, 1 + 126 * %CC[5] / 127)


The only thing is, how to combine both? I dont know the word for ADDING the second CC#5 to the CC#11.

For example, the Pedal is closed = CC#5 with value 0, so the range of CC#11 coming from the Accordion Bellow should be 0-127.

But for example the Pedal is half open = CC#5 with value 64, so the range of CC#11 coming from the Accordion Bellow should be 64-127.

The Pedal works like a "Velocity Booster".

Sorry, I never learned programming. Looked in the Editor - bit still need help.
 
Wirklich?
Accordion Bellow = Akkordeon Balg

Das ist ja nicht so wichtig.

Oh ich sah Deine Korrektur nicht ... Moment ... PERFEKT!
Danke!
 
Achso, aber das rote Originalskript sollte dort schon erscheinen, damit man sieht um ws es geht.
 
Geilo!!!!

Der Mann ist ein Genie!

Und Du auch :jhappy:

Zuerst hatte ich rote Marierungen beim einfügen in Kontakt.
Also Schreibfehler oder so etwas. Es funktionierte auch nicht.

Beim 2. mal ging es plötzlich. Und zwar genau so wie es sein soll!
:champaign:
 
Leitest Du meinen Dank und die unbändige Freude auch an Herrn EvilDragon weiter?
Ich werde ihm zu Ehren eine ewig lodernde Feuerschale im Garten installieren!

Ach ... hast Du schon.

Danke!!
 

Ähnliche Themen

moonbooter
    • Danke
  • Artikel
Antworten
3
Aufrufe
2K
moonbooter
moonbooter
moonbooter
    • Danke
  • Artikel
Antworten
9
Aufrufe
1K
stromzoo
stromzoo
moonbooter
    • Danke
  • Artikel
Testberichte Test: Eventide H9 Max
Antworten
2
Aufrufe
1K
BassExplorer
B
moonbooter
    • Danke
  • Artikel
Antworten
2
Aufrufe
2K
Ennui
Ennui
moonbooter
    • Danke
  • Artikel
Antworten
4
Aufrufe
2K
ollo123
ollo123

Oft gelesene Themen

Zurück
Oben