irrobert Posted July 15, 2020 Report Share Posted July 15, 2020 Hello, My English is not very good. I am trying to build an electronic stop knobs board. If I press a knob I want a signal to my grandorgue program. Later on I want to connect leds to indicate the state of the button. I made board, soldiered the button switch and connected them to a dio_matirix. The lpc17 had an old bootloader with midio128. I succeeded in installing midibox NG. The file "default.mio" was still on the SD card so I deleted it. The stop knobs (buttons) are not working out of the box. All the column buttons send the same note. I read a lot of manuals, but I do not get clear where to start. Probably edit the "default.ngc".... Any help is appreciated. Robert Quote Link to comment Share on other sites More sharing options...
Noise-Generator Posted July 15, 2020 Report Share Posted July 15, 2020 HI, FIrst step always look at the menu at ucapps.de There you (mostly) find everything. In this case go to ucapps.de > MIOS > Programming > MIOS32 > and you find examples hosted at github http://www.ucapps.de/mios32_c.html Number 10, enjoy! Quote Link to comment Share on other sites More sharing options...
irrobert Posted July 15, 2020 Author Report Share Posted July 15, 2020 thanks for the reference. But I do not see an example for the diomatrix. Only Din4_matrix. Apart from that: I do not think I have to compile a completely new program: only adjust the default.ngc. But how? Robert Quote Link to comment Share on other sites More sharing options...
Noise-Generator Posted July 15, 2020 Report Share Posted July 15, 2020 (edited) The dio matrix is a combination of din (input = knobs, encoders) and dout (output = leds) With the filebrowser in mios32 you can browse into your sd and edit the ngc Edited July 15, 2020 by Noise-Generator Quote Link to comment Share on other sites More sharing options...
irrobert Posted July 17, 2020 Author Report Share Posted July 17, 2020 I dowloaded the project.hex (midibox_ng) and it was installed correctly. It created new default.bin and default.ngc on my sdcard. I read the documentation and I studied the default.ngc. If I press a (knob) button I would expect the folowing results: keynotes between C2 (36) and D#7 (100). This is not the case. All outputs result in keynotes C1 ... G1 (24..2b) (only 8 notes). Why o why? Quote Link to comment Share on other sites More sharing options...
irrobert Posted July 17, 2020 Author Report Share Posted July 17, 2020 new idea: I switched on the following in default.ngc: DIN_MATRIX n= 1 rows=8 inverted_sel=0 inverted_row=0 mirrored_row=0 \ sr_dout_sel1= 1 sr_dout_sel2= 0 sr_din1= 1 sr_din2= 0 DIN_MATRIX n= 2 rows=8 inverted_sel=0 inverted_row=0 mirrored_row=0 \ result: no output at all when I press the buttons. Quote Link to comment Share on other sites More sharing options...
totoRaymond Posted July 18, 2020 Report Share Posted July 18, 2020 Hi, I'm no expert but I think your definition is wrong. You need a EVENT_* in order to send MIDI events. Try this: #definition of buttons matrix DIN_MATRIX n=1 rows=8 sr_dout_sel1=1 sr_din1=1 button_emu_id_offset=1001 #defines which SR to use and the hw_id of switches from 1001 to 1064 #definition for EVENT_BUTTON starting from id 1001 EVENT_BUTTON id= 1001 type= CC chn= 1 cc= 0 range= 0:127 button_mode=OnOff #this sends a MIDI CC on address 0 on channel 1 when first button of DIN_MATRIX is pressed Quote Link to comment Share on other sites More sharing options...
irrobert Posted July 18, 2020 Author Report Share Posted July 18, 2020 I guess you are right. I am going to try. It was one step forward two steps back: I troubleshooted the bootloader (which was not necessary) and it took me a lot of time to get it working properly again. i am going to try your suggestions: it looks good. Quote Link to comment Share on other sites More sharing options...
irrobert Posted July 18, 2020 Author Report Share Posted July 18, 2020 @totoraymond: Well you may not be an expert, but you are a genius!! I made the changes you proposed. After removing the other id entries it worked. Thank you so much! Quote Link to comment Share on other sites More sharing options...
totoRaymond Posted July 18, 2020 Report Share Posted July 18, 2020 No genius, thank you everything is explained in the documentation on ucapps.de even if I think some parts are not very clear. But now that you have a starting point you can experiment with all the possibilities that midibox NG can give you. Take the time to read the User Manual several times. And look at the examples on this page: https://github.com/midibox/mios32/tree/master/apps/controllers/midibox_ng_v1/cfg/tests Have fun! Thomas 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.