cryptogen Posted January 23, 2006 Report Share Posted January 23, 2006 Hi,I have a midibox64 project with 1.6 mios and the midibox64 2.4 application. There is 1 DIN and 1 DOUT controlling the 32 buttons, LTC module, 1 core. I currently have the buttons set to TOGGLE and they work fine.However, I would like to be able to toggle the buttons from my PC. The following is an example from MIDIOX when I toggle the button on/off from the midibox (values in decimal)124182 1 -- 176 12 127 1 --- Control Change 125085 1 -- 176 12 0 1 --- Control ChangeNow, if I issue the same commands from the MIDIOX Control Panel to toggle the same button (the messages midiox generate look exactly the same except for the timestamp) nothing toggles on midibox. The button does not light up, nor does the toggle state appear to be any different if i hit the button on the midibox.Do I have to send a different message to the midibox to toggle the button, or does the midibox64 application not support this type of remote control? Or, are there some additional changes that need to be made the midibox64 app?The only changes i made to the main.asm in the midibox64 app where allowing the menu buttons to be user assignable (changing 4 values to 0xff) and i also found some code in a different msg to possibly light up the leds that i put under:USER_MPROC_NotifyFoundEventIFSET MIOS_PARAMETER3, 6, call MIOS_DOUT_PinSet1 ; set LEDif value >= 64IFCLR MIOS_PARAMETER3, 6, call MIOS_DOUT_PinSet0 ; clearLED if value < 64What I am ultimately trying to accomplish is creating a c++ program that will be able to toggle the buttons via the PC.Any ideas?Thank you,Bret Quote Link to comment Share on other sites More sharing options...
TK. Posted January 23, 2006 Report Share Posted January 23, 2006 Hi Bret,I have a midibox64 project with 1.6 mios and the midibox64 2.4 application.I guess that you mean MIOS V1.8 (not sure if MB64 v2.4 runs properly on older OS versions)Do I have to send a different message to the midibox to toggle the button, or does the midibox64 application not support this type of remote control? Or, are there some additional changes that need to be made the midibox64 app?By default the LEDs are not switched via external MIDI events, this has to be enabled for each DOUT register seperately in the .ini file (-> mk_syx script), or with Serge's MIDIbox editor.Here the options and the default mapping:[tt]################################################################################# LED Map: assignes the LED shift registers to the Button Shift# registers or special values# Currently following values are supported:# 0 Default Setting (see Map below)# 1 Button Shift Register 1 (Button ID #1-#8)# 2 Button Shift Register 2 (Button ID #9-#16)# 3 Button Shift Register 3 (F1-F4 and Navigation Buttons: ID #17-#24)# 4 Button Shift Register 4 (Button ID #25-#32)# 5 Button Shift Register 5 (Button ID #33-#40)# 6 Button Shift Register 6 (Button ID #41-#48)# 7 Button Shift Register 7 (Button ID #49-#56)# 8 Button Shift Register 8 (Button ID #57-#64)# 9 reserved# 10 External Bank (1 of 8 )# 11-15 reserved# 16 MIDI Status received for Button ID #1-#8# 17 MIDI Status received for Button ID #9-#16# 18 MIDI Status received for Button ID #17-#24# 19 MIDI Status received for Button ID #25-#32# 20 MIDI Status received for Button ID #33-#40# 21 MIDI Status received for Button ID #41-#48# 22 MIDI Status received for Button ID #49-#56# 23 MIDI Status received for Button ID #57-#64# 24-31 reserved################################################################################[LED_MAP] LED_SR1 = 1 # (Button ID #1-#8) LED_SR2 = 2 # (Button ID #9-#16) LED_SR3 = 3 # (F1-F4 and Navigation Buttons: ID #17-#24) LED_SR4 = 4 # (Button ID #57-#64) LED_SR5 = 5 # (Button ID #25-#32) LED_SR6 = 6 # (Button ID #33-#40) LED_SR7 = 7 # (Button ID #41-#48) LED_SR8 = 8 # (Button ID #49-#56)What I am ultimately trying to accomplish is creating a c++ program that will be able to toggle the buttons via the PC.If you don't need all the MB64 features, you could also create a MIOS C based application, here an code snippet which allows you to control 128 LEDs from external: http://www.ucapps.de/mios_c_set_dout.htmlBest Regards, Thorsten. Quote Link to comment Share on other sites More sharing options...
cryptogen Posted January 24, 2006 Author Report Share Posted January 24, 2006 Hi,It worked! thanksProblem:I was using serge's midibox editor, however i had left the dout shiftregisters at their default (which i thought was correct anyway). However, when I switched them to "MIDI Status received" and uploaded the new .ini, everything started working.Thanks again,Bret Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.