- This topic has 2 replies, 2 voices, and was last updated 10 months, 3 weeks ago by DanielAkerberg.
-
AuthorPosts
-
23 January 2024 at 16 h 17 min #6229DanielAkerbergMember
Hi,
In order to minimize the number of macros created I would like to trigger the same macro from a number of midi controller buttons and the the macro will perform different actions depending on the midi button that triggered the macro. All I have found is “$midiv_nt1$” but this doesn’t look sufficient. Thanks again!
23 January 2024 at 17 h 22 min #6231PhilippeKeymasterHi Daniel,
Yes, the old way to do that was to use “$midiv_nt1$” or “$midiv_cc1$” variables but now in Logelloop 6, we have added the Matrix data plug-in which aim is to do that !I had no time yet to make a tuto but I will try to do it as fast as possible.
You can find some explanation about it in the user manual.
To begin with that :
1 – open the data plug-ins window (cmd + U)
2 – load Matrix in a slot
3 – Choose a template, “16 dials” for example
4 – click the edit button, select all the macro code and copy it
5 – In the menu select “New macro”, give a name to your macro
6 – click the edit button, and paste the template in your macro—> you can use every dials to drive one macro.
—> each dial as a name or a number
—> you can put up to 64 dials in the same interface
—> You can connect a midi device to this data plug-in
—> As soon as the midi device is connected to the Matrix, click the learn button, select a number by clicking the red box, turn a dial on your midi device…
—> currentCaseValueString() will get the name or number of the dial
—> currentCaseOptionValueFloat(0) will get the value of this dialSo, in the macro, you can evaluate the dial that currently in use and his value with this :
CaseBranch 1
MessageMain { “Dial ” + (currentCaseValueString()) + ” value is : ” + currentCaseOptionValueFloat(0)}TrackVolume trk1 = {scale(currentCaseOptionValueFloat(0), 0, 127, -76, 0)}
BreakCaseBranchWhere, CaseBranch 1 will be activated when the dial 1 is used.
And in :TrackVolume trk1 = {scale(currentCaseOptionValueFloat(0), 0, 127, -76, 0)}
You convert the midi value to a suitable fader value.
This is an example… Feel free to ask if you have any question regarding Matrix.
Best,
Philippe23 January 2024 at 20 h 57 min #6234DanielAkerbergMemberThanks! I will take a look at this
-
AuthorPosts
- You must be logged in to reply to this topic.