Visual Productions forum

Author Topic: MIDI Feedback  (Read 7148 times)

February 27, 2010, 05:53:22 AM
Read 7148 times

KnowSlumber

  • Member
  • *
  • Posts: 145
I'm trying to figure out the Feedback in cuelux and how to get it going with the APC40

Found this:
Quote
Using the midiin/midiout objects:
The top left button on the 5x8 clip control grid is 144 53 1, where 144-151 is the entire top horizontal row, 53-57 is the vertical row going down (the next row down in this case is 54), and 1 is the velocity. The bottom Clip Stop row is 52.

The Velocities are as follows
1 - Green
2 - Green Flashing
3 - Red
4 - Red Flashing
5 - Orange
6 - Orange Flashing

7-127 Are all green.
 


and when perusing the MIDI xmls in cuelux  found this:
Quote
<actionlist label="feedback" source="System">
                <action>
                    <trigger type="Unsigned" specifier="Change">Playback Fader 1 Intensity</trigger>
                    <tasks>
                        <task type="Midi" function ="Set">
                            <argument type="Midi Address">Channel 0 - Message 9 - Index 53</argument>
                        </task>
                    </tasks>
   </action>
        </actionlist>

how would I go about entering the velocities to turn on the lights?
« Last Edit: March 03, 2010, 04:10:56 AM by KnowSlumber »

March 03, 2010, 04:14:17 AM
Reply #1

KnowSlumber

  • Member
  • *
  • Posts: 145
I guess I should be more clear.

I need to be able to use a midi event (such as: pressing a go button)
to send a midi event with a velocity to my APC40,
which will turn on a light (red, green, or yellow).

I know cuelux can send outgoing midi messages to controllers (ala Behringer faders)

How is that code is written? Specifically in regards to velocities messages in midi?



March 03, 2010, 04:29:15 PM
Reply #2

Rick Willeme

  • Member
  • *
  • Posts: 619
    • Andy Cobben .nl
I searched for this controller. Nice one :D

But to be honest, I don't know how to send a color-feedback..
Rick Willeme
Light Engineer AndyCobben.nl

March 04, 2010, 12:13:30 AM
Reply #3

KnowSlumber

  • Member
  • *
  • Posts: 145
This is probably a question for Maarten or Jeroen.
« Last Edit: March 05, 2010, 12:17:58 AM by KnowSlumber »

March 05, 2010, 12:18:52 AM
Reply #4

KnowSlumber

  • Member
  • *
  • Posts: 145
b-b-b-bump...

March 05, 2010, 11:53:14 AM
Reply #5

Maarten Engels

  • Administrator
  • Member
  • *****
  • Posts: 2383
    • www.visualproductions.nl
The bump woke me up....

This would require a few lines of code specially for controlling the colour leds on this velocities function. I would need to get a unit to test as well. It's not impossible, but I rather give this one a 'medium' priority.
Maarten Engels
Visual Productions BV

March 10, 2010, 02:03:46 AM
Reply #6

vnx

  • Member
  • *
  • Posts: 93
Hi,

I also have some difficulties with MIDI-Feedback. At the moment I try to make a mapping for the Livid Ohm Controller. It has LEDs that can be controlled via MIDI. What I need is a way to control LEDs when one of the playback buttons at the top of the screen is pressed. I recently learned a lot from the Tascam mapping in terms of MIDI feedback, so I tried this one without success:

Code: [Select]
<action>
<trigger type="Unsigned" specifier="Change">Playback Button 01 Active</trigger>
    <tasks>
      <task type="Midi" function ="Control">
        <argument type="Midi Address">Channel 1 - Message 9 - Index 76</argument>
      </task>
    </tasks>
</action>

"Playback Button 01 Active" does not appear to do the job, so what is the right one?

Thanks a lot,

Ben
Cuelux 1.03b22 on MacBook Pro (MacOSX 10.6.5) / Thinkpad X41t (WinXP) using Livid Ohm64 Controller

March 12, 2010, 05:49:04 AM
Reply #7

KnowSlumber

  • Member
  • *
  • Posts: 145
so after much trial and error I've found that this:
Code: [Select]
<action>
                    <trigger type="Unsigned" specifier="Change">Playback Fader 1 Inactive</trigger>
                    <tasks>
                        <task type="Midi" function ="Control">
                            <argument type="Midi Address">Channel 0 - Message 09 - Index 53</argument>
                        </task>
                    </tasks>
</action>

is: 90 35 00 (hex)
or: Note On #2, F3 vel 0 (standard)

Unfortunately for me, it send vel 000 (90 35 7F) when turned on and vel 127 (90 35 00) when turned off. Which is opposite of what I need. But at least I got a solo light working kind of.

So I still need an answer to my original question:

Is there a way to manually set velocities in the MIDI xml?
And if so, what is that code?







March 16, 2010, 08:51:41 PM
Reply #8

Maarten Engels

  • Administrator
  • Member
  • *****
  • Posts: 2383
    • www.visualproductions.nl
Unfortunately for me, it send vel 000 (90 35 7F) when turned on and vel 127 (90 35 00) when turned off. Which is opposite of what I need. But at least I got a solo light working kind of.
Changing 'Inactive' to 'Active' would give you the opposite.

Is there a way to manually set velocities in the MIDI xml?
And if so, what is that code?
The syntax supports the following, but to be honest I haven't tested it myself yet:

Code: [Select]
<action>
                    <trigger type="Unsigned" specifier="Change">Playback Fader 1 Inactive</trigger>
                    <tasks>
                        <task type="Midi" function ="Set">
                            <argument type="Midi Address">Channel 0 - Message 9 - Index 53</argument>
                            <argument type="Unsigned">23</argument>
                        </task>
                    </tasks>
</action>

So the second <argument> would become the velocity value.
Maarten Engels
Visual Productions BV

March 18, 2010, 12:03:46 AM
Reply #9

KnowSlumber

  • Member
  • *
  • Posts: 145
Beautiful.
I'm going to try it right now.

March 19, 2010, 03:14:37 AM
Reply #10

KnowSlumber

  • Member
  • *
  • Posts: 145
Awesome. It totally works.

I can't get it to light up red when turned off though. I figured I'd add the inverse after
Code: [Select]
<action>
                    <trigger type="Unsigned" specifier="Change">Playback Button 01 Active</trigger>
                    <tasks>
                        <task type="Midi" function ="Set">
                            <argument type="Midi Address">Channel 0 - Message 09 - Index 53</argument>
   <argument type="Unsigned">01</argument>
                        </task>
                    </tasks>
</action>
  
   <action>
                    <trigger type="Unsigned" specifier="Change">Playback Button 01 Inactive</trigger>
                    <tasks>
                        <task type="Midi" function ="Set">
                            <argument type="Midi Address">Channel 0 - Message 09 - Index 53</argument>
   <argument type="Unsigned">03</argument>
                        </task>
                    </tasks>
</action>
Basically just changed the color (01 to 03) and trigger (active to inactive).

But it doesn't like it.

Any ideas?

April 02, 2010, 02:36:26 AM
Reply #11

KnowSlumber

  • Member
  • *
  • Posts: 145
Maybe I should rephrase:

How would I write the feedback code to send a Midi message upon a playback button becoming inactive?

April 03, 2010, 03:28:49 AM
Reply #12

KnowSlumber

  • Member
  • *
  • Posts: 145
I really need to get this working if possible.
Or at least some kind of indication of whether its possible or not.


April 03, 2010, 05:11:10 AM
Reply #13

vnx

  • Member
  • *
  • Posts: 93
Hi,

Although I don't have a controller with 2-colored LEDs I did some testing on mine with one color. Please try to change:

Code: [Select]
<task type="Midi" function ="Set">

to

Code: [Select]
<task type="Midi" function ="Control">

For the inactive trigger and maybe for the active trigger as well. When using "Set" my testing LED does light up when the playback button is inactive (as it should), but does not deactivate when the playback button is active. So maybe it works for you as well...

Best,

Ben

Cuelux 1.03b22 on MacBook Pro (MacOSX 10.6.5) / Thinkpad X41t (WinXP) using Livid Ohm64 Controller

April 03, 2010, 09:10:36 AM
Reply #14

KnowSlumber

  • Member
  • *
  • Posts: 145
Thanks Ben,

I'll give it a shot.

Do I understand correctly that you're using the "Playback Button 01 Inactive" as a valid and functioning trigger?

 

SMF spam blocked by CleanTalk