Jump to content

Question about Midibox64E and sequencing


Nat
 Share

Recommended Posts

Hello, I am currently building a midibox64E.  My box will feature 16 buttons with leds at the bottom to simulate beat boxes and pattern sequencers.  I made myself a nice step sequencer in Max/MSP and I was wondering if it was possible to control the leds on my midibox.  When I start a pattern the leds (onscreen) light up while going through the pattern.  I'd like to know if it would be possible to link my max patch to the midibox and make the physical leds light up at the same time.  I can send any midi message using max.

Thanks,

Nat

Link to comment
Share on other sites

Guest Zzzz...

hi...

Thanks for this question....

although i don't know the question to your answer...

For a while i thought i was the only one here using MAX/MSP/jitter/nato/softvns...

...it should be possible with a workaround option...(like a (universal) USB-interface (like a pic16c765..) i think)....I'm still trying to figure this out (for something else)...but through the MIDI communication...i'am not sure....

(Maybe it could be done by changing the code in the Pic rightaway ...but i am not able to modify the .asm-files at this moment (simply because i don't understand the language yet)..... maybe by sending sysex out of Max/MSP)....(actually i started (but quit) already by making a own "midiox" by Max/MSP, but this was rather difficult...)...

I don't own a midibox 64E...but am currently making a full SID and a midibox 8 plus (last one for controlling video)...

Like your question....Anxious to know the answer too....

Grtz  Erik

Link to comment
Share on other sites

I think it's actually easier than that, however my box is not ready to test this.

If each button on the surface is associated with a controller # and that max sends out the appropriate message for each button, I think the button should light up.  I just need a confirmation by thorsten or someone who made this.

Link to comment
Share on other sites

What you're asking for is the Midi Leds option found on vmidibox.

Enable this, and istead of assigning each dout shift register to the apropriate DIN SR, assign it to the MIDI Status rec. for Entry #s you want. Then assign your buttons to controllers that the software leds are sending.

Voila!

(It should work!)

PS. On the 16f firmwares the midi leds function works only on the default internal bank. no banksticks. on 18f it works anywere!

Link to comment
Share on other sites

Wow nice, and in midi leds mode, if the button associated to the led sends the corresponding midi message, will the button led light up when pushed ?

Edit :

I'll try to make my question clearer.

Let's say I want to control mutes in Logic or Cubase with the controller.  Will the led light up/down if I activate/deactivate the mute onscreen, and will it also light up/down if I press the corresponding button on the surface ?

Thanks

Link to comment
Share on other sites

Hi Nat,

no, it won't, because it would be a disturbing behaviour. If the LEDs are assigned to the MIDI status, only the host application can control the LEDs.

Why? Example: for a generic controller the buttons should send an "On event" if pressed, and an "Off event" if depressed (default setup). The host application will take care for the button behaviour internally (common triggering key, toggle/radio buttons, ...). If the host application provides an internal banking scheme, the behaviour can change dynamically - switching to different channels or from a Solo to a Mute layer... this all can be controlled by the host application.

Assumed that a single button controls the mute function of track #18 and the MIDIbox would lit the LED internally as well as the host application would control the LED.

You press the button: the LED will lit

The host application sends back the event: the LED will lit

You depress the button: the LED will be turned off

-> but it should stay on!

Another example: 16 buttons are used to select the record channel - the host application is configured in a way that only one channel can be recorded at once. This means that only one of 16 LED should lit (radio-button function).

You press button #2: LED #2 will lit

The host application will turn off the last active LED and turn on LED #2

You depress button #2: LED will be turned off

-> but it should stay on to notify the selected channel!

Also this shows: it doesn't really make sense to turn on/off a LED from internal if a LED displays the MIDI status.

For your sequencer: everything is in your hand!

Best Regards, Thorsten.

Link to comment
Share on other sites

Also this shows: it doesn't really make sense to turn on/off a LED from internal if a LED displays the MIDI status.

For your sequencer: everything is in your hand!

To see if I get this well :

If the leds are assigned to their normal mode (midi status off)

If I press a button that is assigned to the mute on channel one, It will activate this mute in software and the LED assigned to that button will light up only while the button is being pressed down.  In this same mode, if I press the mute onscreen or have some automation triggering it, the LED on the surface won't react.

Now, if the leds are assigned to midi status.

If I press the button assigned to a mute, it will activate this mute, the led on the surface won't light up.  If if trigger the mute onscreen, it will light or unlight the LED.

Am I right ?  I'm just trying to understand here, I'm not raving or asking for a new feature :)

EDIT :

I guess that if I am wrong in my previous statement, it will then work this way :

If the controller is set to midi status mode,  if I press button 1 which is assigned to mute 1, the button will activate the mute and the sequencer will send this back to the controller which will light up the led.  Now if I press again, the controller will unmute the track and  the sequencer will send back a message to the controller to shut  the led.  If I click onscreen or have some automation, the led will follow the sate of the mute.  That's sounds more logical to me, in this case, the led is only controlled by midi messages coming from the sequencer.

Sorry, this will eventually get clear in my head :)

EDIT 3 :

If I am right about my second statement, then Cubase won't be able to handle this.  Cubase will only send messages to the controller when you toggle them onscreen.  If I press a button on the controller, cubase won't send back the status of the button to the controller.  I guess this is a software flaw ?

Link to comment
Share on other sites

I'll see what thorsten thinks about this, but in the event that the flaw comes from Cubase (which I think is the case) I'll write a nice app in Max to solve this problem, if your interested on having it please send me your config in private.

If they can't do it then i'll DO IT MYSELF :p

Link to comment
Share on other sites

Hrmpf! I didn't know that the MIDI remote implementation of Cubase SX is so imperfect...

BUT: It's funny, I just realized that I already took care for forwarding the received value to the common LED state register:

        btfsc   MB64E_CFG0, MB64E_CFG0_MIDILEDS, BANKED; only if MIDILEDS flag set
        andwf   INDF0, F        ; (MB64E_BUTTON_VALUES_SR0)

        andwf   INDF1, F        ; (MB64E_MBUTTON_VALUES_SR0)

this means:

a) the "MIDI LEDs" flag has another function in the MIOS implementation compared to the PIC16F firmware which has to be documented

a) don't change the LED map, just enable the "MIDI LEDs" flag with vmidibox or the mk_syx script and it will work :)

Best Regards, Thorsten.

Link to comment
Share on other sites

Thanks Thorsten,

But that won't work with Cubase since it doesn't send back the data ?

EDIT :

About the midi remote implementation of Cubase,

it's worse than you can think, they totally broke the thing in SX 2 / Nuendo 2, you can't control pan or EQ anymore which is ridiculous...  

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...