Visual Productions forum

Author Topic: MIDIMAPPING: playback button state doesn't work  (Read 2131 times)

November 13, 2013, 07:47:43 PM
Read 2131 times

mburger

  • Member
  • *
  • Posts: 2
I'm using Cuelux 1.3.41 for Mac and I'm fiddling around with MIDI mapping.

In the MIDI API there is mention of a playback state for both the buttons and the faders that expresses the state of the control in colour (e.g. Playback Direct Button 01 State). I use the code below in my mapping xml:

Code: [Select]
<actionlist label="feedback" source="System">
<action>
<trigger type="Unsigned" specifier="Change">Playback Direct Button 01 State</trigger>
<tasks>
<task type="Midi" function ="Control">
<argument type="Midi Address">Channel 2 - Message 9 - Index 0</argument>
</task>
</tasks>
</action>
</actionlist>

By use of a MIDI monitor, I discovered that the above code does fire a MIDI event if I click button 1, but the value of that event always is '0'.

I did expect something of for instance the colour of the LED on the button being reflected in the MIDI value, but so far I'm not really getting anywhere.

Can anyone point me in the right direction here?

Any help on getting the correct reflection of the button state through MIDI would be greatly appreciated!

November 14, 2013, 09:21:37 AM
Reply #1

Dennis Kromhout

  • Member
  • *
  • Posts: 838
Hello,

Depending of the flexibility of what you're using to receive the messages you could use the function we made for the Livid OhmRGB:

function="Control OhmRGB"

This sends:
Black = 0
White = 3
Cyan = 7
Magenta =15
Red = 31
Blue = 63
Yellow = 126
Green = 127
« Last Edit: November 14, 2013, 09:24:00 AM by Dennis Kromhout »
Dennis Kromhout

November 14, 2013, 07:04:41 PM
Reply #2

mburger

  • Member
  • *
  • Posts: 2
Dennis,

Thanks for your reply. The OhmRGB function looks promising! I'll give a try as soon as possible.

While we're on the topic of functions... The forum does provide me with lots of information already, but may I perhaps suggest to update the API PDF with some extra information on how to use the general functions (like 'Set' and 'Toggle' and the like)? And maybe even add information on functions like the one written specially for the OhmRGB?

I've got a feeling that the MIDI API is indeed much more powerful than now meets the eye.

Keep up the good work with Cuelux!

November 15, 2013, 09:38:23 AM
Reply #3

Dennis Kromhout

  • Member
  • *
  • Posts: 838
Yes, but the syntax has been changed a bit in CueluxPro so the document needs to be updated anyway.
Best is to look at the included midimaps.
The amount of people making their own maps is also very limited.
Dennis Kromhout

May 05, 2019, 10:38:48 PM
Reply #4

djlucky

  • Member
  • *
  • Posts: 88
hi, is there any way to set midi mapping for buttons in cuelux/emulation for example when i press first button-it starts first button show, when i press second button it ends first show and starts second button show
i don´t know if you will understand what i´m thinking. I´m planing to use software in a club with combination of launchpad mk2, and there is 64 buttons, so when a dj press some button it starts show, but when press another, it ends last show and start desired which coresponds to actualy pressed button.
if to write some code in midi or how to set program, because when there are to simultanously running cuelists they influece each other

May 06, 2019, 10:26:36 AM
Reply #5

Bootsy van der Zande

  • Administrator
  • Member
  • *****
  • Posts: 464
Hi,

You can bundle playbacks with the Bundle button on the right when you open the playback.
If you activate a Bundled playback, it will release all other playbacks in that Bundle.

So in your situation, you could have the launchpad buttons setup as 'Play' buttons. And then just bundle everything you want to play solo.
You can have multiple bundles as well!

Greetings,
Bootsy

May 06, 2019, 10:37:38 AM
Reply #6

djlucky

  • Member
  • *
  • Posts: 88
please can you send me small example file how to do that?

May 06, 2019, 12:29:35 PM
Reply #7

Bootsy van der Zande

  • Administrator
  • Member
  • *****
  • Posts: 464
Hi,

I've included a copy of the standard midi map for the Launchpad MK2. Every Midi Button is triggering a playback Button. I've also included a picture showing you the Bundle option in Cuelux. And I've added a file that explains the MIDI API. 

Greetings,
Bootsy

May 06, 2019, 05:18:29 PM
Reply #8

djlucky

  • Member
  • *
  • Posts: 88

 

SMF spam blocked by CleanTalk