Jump to content

Problem mit DIO-Matrix


rubby
 Share

Recommended Posts

Hallo,

 

soweit so gut, es läuft alles, bis auf DIO_Matrix:

Software:

mios32_bootloader_v1_013_pre2

midibox_ng_v1_026

 

Ich verstehe immernoch nicht (ich finde, es ist nirgends "für dumme" beschrieben), wie ich jetzt die NGC aufbauen muss, damit die

DIO_Matrix mit der abgescannt wird.

 

Situation ist folgende:

 

http://ucapps.de/mid..._scanmatrix.pdf zeigt die "1st 8x8 Matrix".

 

Ich habe jetzt mal durchgetestet: C0-C7 auf R0 laufen Perfekt.

Jedoch ist die Note C7->R0  = G-1 (im MIOS).

C0-C7 auf R1-R7 bleiben jedoch in allen Kombinationen auf der Note G-1.

 

 

Habe mir jetzt mal kurz in LogiSim nur optisch einen Plan erstellt, wie ich die Verdrahtung legen würde:

post-17045-0-54696500-1376079064_thumb.j

 

Als 8x8.ngc hatte ich das hier auf die SD-Card geladen

Quote

 

RESET_HW

LCD "%C@(1:1:1)8x8 Samplepad"


EVENT_BUTTON id=1001 type=NoteOn key=36 chn=1

EVENT_BUTTON id=1002 type=NoteOn key=37 chn=1

EVENT_BUTTON id=1003 type=NoteOn key=38 chn=1

EVENT_BUTTON id=1004 type=NoteOn key=39 chn=1

EVENT_BUTTON id=1005 type=NoteOn key=40 chn=1

EVENT_BUTTON id=1006 type=NoteOn key=41 chn=1

EVENT_BUTTON id=1007 type=NoteOn key=42 chn=1

EVENT_BUTTON id=1008 type=NoteOn key=43 chn=1

EVENT_BUTTON id=1033 type=NoteOn key=44 chn=1

EVENT_BUTTON id=1034 type=NoteOn key=45 chn=1

EVENT_BUTTON id=1035 type=NoteOn key=46 chn=1

EVENT_BUTTON id=1036 type=NoteOn key=47 chn=1

EVENT_BUTTON id=1037 type=NoteOn key=48 chn=1

EVENT_BUTTON id=1038 type=NoteOn key=49 chn=1

EVENT_BUTTON id=1039 type=NoteOn key=50 chn=1

EVENT_BUTTON id=1040 type=NoteOn key=51 chn=1

EVENT_BUTTON id=1009 type=NoteOn key=52 chn=1

EVENT_BUTTON id=1010 type=NoteOn key=53 chn=1

EVENT_BUTTON id=1011 type=NoteOn key=54 chn=1

EVENT_BUTTON id=1012 type=NoteOn key=55 chn=1

EVENT_BUTTON id=1013 type=NoteOn key=56 chn=1

EVENT_BUTTON id=1014 type=NoteOn key=57 chn=1

EVENT_BUTTON id=1015 type=NoteOn key=58 chn=1

EVENT_BUTTON id=1016 type=NoteOn key=59 chn=1

EVENT_BUTTON id=1041 type=NoteOn key=60 chn=1

EVENT_BUTTON id=1042 type=NoteOn key=61 chn=1

EVENT_BUTTON id=1043 type=NoteOn key=62 chn=1

EVENT_BUTTON id=1044 type=NoteOn key=63 chn=1

EVENT_BUTTON id=1045 type=NoteOn key=64 chn=1

EVENT_BUTTON id=1046 type=NoteOn key=65 chn=1

EVENT_BUTTON id=1047 type=NoteOn key=66 chn=1

EVENT_BUTTON id=1048 type=NoteOn key=67 chn=1

EVENT_BUTTON id=1017 type=NoteOn key=68 chn=1

EVENT_BUTTON id=1018 type=NoteOn key=69 chn=1

EVENT_BUTTON id=1019 type=NoteOn key=70 chn=1

EVENT_BUTTON id=1020 type=NoteOn key=71 chn=1

EVENT_BUTTON id=1021 type=NoteOn key=72 chn=1

EVENT_BUTTON id=1022 type=NoteOn key=73 chn=1

EVENT_BUTTON id=1023 type=NoteOn key=74 chn=1

EVENT_BUTTON id=1024 type=NoteOn key=75 chn=1

EVENT_BUTTON id=1049 type=NoteOn key=76 chn=1

EVENT_BUTTON id=1050 type=NoteOn key=77 chn=1

EVENT_BUTTON id=1051 type=NoteOn key=78 chn=1

EVENT_BUTTON id=1052 type=NoteOn key=79 chn=1

EVENT_BUTTON id=1053 type=NoteOn key=80 chn=1

EVENT_BUTTON id=1054 type=NoteOn key=81 chn=1

EVENT_BUTTON id=1055 type=NoteOn key=82 chn=1

EVENT_BUTTON id=1056 type=NoteOn key=83 chn=1

EVENT_BUTTON id=1025 type=NoteOn key=84 chn=1

EVENT_BUTTON id=1026 type=NoteOn key=85 chn=1

EVENT_BUTTON id=1027 type=NoteOn key=86 chn=1

EVENT_BUTTON id=1028 type=NoteOn key=87 chn=1

EVENT_BUTTON id=1029 type=NoteOn key=88 chn=1

EVENT_BUTTON id=1030 type=NoteOn key=89 chn=1

EVENT_BUTTON id=1031 type=NoteOn key=90 chn=1

EVENT_BUTTON id=1032 type=NoteOn key=91 chn=1

EVENT_BUTTON id=1057 type=NoteOn key=92 chn=1

EVENT_BUTTON id=1058 type=NoteOn key=93 chn=1

EVENT_BUTTON id=1059 type=NoteOn key=94 chn=1

EVENT_BUTTON id=1060 type=NoteOn key=95 chn=1

EVENT_BUTTON id=1061 type=NoteOn key=96 chn=1

EVENT_BUTTON id=1062 type=NoteOn key=97 chn=1

EVENT_BUTTON id=1063 type=NoteOn key=98 chn=1

EVENT_BUTTON id=1064 type=NoteOn key=99 chn=1

 

was läuft hier falsch? wo ist mein Fehler?

 

Lg

rubby

Link to comment
Share on other sites

i figured out that this script is working:

 

 

RESET_HW
LCD "%C@(1:1:1)8x8 Sampler"

# HW definition:
DIN_MATRIX     n= 1     rows=8     inverted_sel=0     sr_din1=1 sr_dout_sel1=1 sr_dout_sel2=0
DIN_MATRIX     n= 2     rows=8     inverted_sel=0     sr_din1=2 sr_dout_sel1=1 sr_dout_sel2=0
# Buttonzuweisung

EVENT_BUTTON_MATRIX        id=1          type=NoteOn     key=36         lcd_pos=1:1:1     label="Matrix1 Pin %2p %b"     chn=1
EVENT_BUTTON_MATRIX        id=2          type=NoteOn     key=37         lcd_pos=1:1:1     label="Matrix1 Pin %2p %b"     chn=1
EVENT_BUTTON_MATRIX        id=3          type=NoteOn     key=38         lcd_pos=1:1:1     label="Matrix1 Pin %2p %b"     chn=1
EVENT_BUTTON_MATRIX        id=4          type=NoteOn     key=39         lcd_pos=1:1:1     label="Matrix1 Pin %2p %b"     chn=1
EVENT_BUTTON_MATRIX        id=5          type=NoteOn     key=40         lcd_pos=1:1:1     label="Matrix1 Pin %2p %b"     chn=1
EVENT_BUTTON_MATRIX        id=6           type=NoteOn     key=41         lcd_pos=1:1:1     label="Matrix1 Pin %2p %b"     chn=1
EVENT_BUTTON_MATRIX        id=7          type=NoteOn     key=42         lcd_pos=1:1:1     label="Matrix1 Pin %2p %b"     chn=1
EVENT_BUTTON_MATRIX        id=8          type=NoteOn     key=43         lcd_pos=1:1:1     label="Matrix1 Pin %2p %b"     chn=1
EVENT_BUTTON_MATRIX        id=9           type=NoteOn     key=44         lcd_pos=1:1:1     label="Matrix1 Pin %2p %b"     chn=1
EVENT_BUTTON_MATRIX        id=10         type=NoteOn     key=45         lcd_pos=1:1:1     label="Matrix1 Pin %2p %b"     chn=1
EVENT_BUTTON_MATRIX        id=11         type=NoteOn     key=46         lcd_pos=1:1:1     label="Matrix1 Pin %2p %b"     chn=1
EVENT_BUTTON_MATRIX        id=12         type=NoteOn     key=47         lcd_pos=1:1:1     label="Matrix1 Pin %2p %b"     chn=1
EVENT_BUTTON_MATRIX        id=13          type=NoteOn     key=48         lcd_pos=1:1:1     label="Matrix1 Pin %2p %b"     chn=1
EVENT_BUTTON_MATRIX        id=14         type=NoteOn     key=49         lcd_pos=1:1:1     label="Matrix1 Pin %2p %b"     chn=1
EVENT_BUTTON_MATRIX        id=15         type=NoteOn     key=50         lcd_pos=1:1:1     label="Matrix1 Pin %2p %b"     chn=1
EVENT_BUTTON_MATRIX        id=16           type=NoteOn     key=51         lcd_pos=1:1:1 label="Matrix1 Pin %2p %b"     chn=1
EVENT_BUTTON_MATRIX        id=17         type=NoteOn     key=52         lcd_pos=1:1:1     label="Matrix1 Pin %2p %b"     chn=1
EVENT_BUTTON_MATRIX        id=18         type=NoteOn     key=53         lcd_pos=1:1:1     label="Matrix1 Pin %2p %b"     chn=1
EVENT_BUTTON_MATRIX        id=19         type=NoteOn     key=54         lcd_pos=1:1:1     label="Matrix1 Pin %2p %b"     chn=1
EVENT_BUTTON_MATRIX        id=20         type=NoteOn     key=55         lcd_pos=1:1:1     label="Matrix1 Pin %2p %b"     chn=1
EVENT_BUTTON_MATRIX        id=21         type=NoteOn     key=56         lcd_pos=1:1:1     label="Matrix1 Pin %2p %b"     chn=1
EVENT_BUTTON_MATRIX        id=22         type=NoteOn     key=57         lcd_pos=1:1:1     label="Matrix1 Pin %2p %b"     chn=1
EVENT_BUTTON_MATRIX        id=23         type=NoteOn     key=58         lcd_pos=1:1:1     label="Matrix1 Pin %2p %b"     chn=1
EVENT_BUTTON_MATRIX        id=24         type=NoteOn     key=59         lcd_pos=1:1:1     label="Matrix1 Pin %2p %b"     chn=1
EVENT_BUTTON_MATRIX        id=25         type=NoteOn     key=60         lcd_pos=1:1:1     label="Matrix1 Pin %2p %b"     chn=1
EVENT_BUTTON_MATRIX        id=26         type=NoteOn     key=61         lcd_pos=1:1:1     label="Matrix1 Pin %2p %b"     chn=1
EVENT_BUTTON_MATRIX        id=27         type=NoteOn     key=62         lcd_pos=1:1:1     label="Matrix1 Pin %2p %b"     chn=1
EVENT_BUTTON_MATRIX        id=28         type=NoteOn     key=63         lcd_pos=1:1:1     label="Matrix1 Pin %2p %b"     chn=1
EVENT_BUTTON_MATRIX        id=29         type=NoteOn     key=64         lcd_pos=1:1:1     label="Matrix1 Pin %2p %b"     chn=1
EVENT_BUTTON_MATRIX        id=30           type=NoteOn     key=65         lcd_pos=1:1:1     label="Matrix1 Pin %2p %b"     chn=1
EVENT_BUTTON_MATRIX        id=31          type=NoteOn     key=66         lcd_pos=1:1:1     label="Matrix1 Pin %2p %b"     chn=1
EVENT_BUTTON_MATRIX        id=32         type=NoteOn     key=67         lcd_pos=1:1:1     label="Matrix1 Pin %2p %b"     chn=1
EVENT_BUTTON_MATRIX        id=33         type=NoteOn     key=68         lcd_pos=1:1:1     label="Matrix1 Pin %2p %b"     chn=1
EVENT_BUTTON_MATRIX        id=34         type=NoteOn     key=69         lcd_pos=1:1:1     label="Matrix1 Pin %2p %b"     chn=1
EVENT_BUTTON_MATRIX        id=35         type=NoteOn     key=70         lcd_pos=1:1:1     label="Matrix1 Pin %2p %b"     chn=1
EVENT_BUTTON_MATRIX        id=36         type=NoteOn     key=71         lcd_pos=1:1:1     label="Matrix1 Pin %2p %b"     chn=1
EVENT_BUTTON_MATRIX        id=38         type=NoteOn     key=72         lcd_pos=1:1:1     label="Matrix1 Pin %2p %b"     chn=1
EVENT_BUTTON_MATRIX        id=38         type=NoteOn     key=73         lcd_pos=1:1:1     label="Matrix1 Pin %2p %b"     chn=1
EVENT_BUTTON_MATRIX        id=39         type=NoteOn     key=74         lcd_pos=1:1:1     label="Matrix1 Pin %2p %b"     chn=1
EVENT_BUTTON_MATRIX        id=40           type=NoteOn     key=75         lcd_pos=1:1:1     label="Matrix1 Pin %2p %b"     chn=1
EVENT_BUTTON_MATRIX        id=41         type=NoteOn     key=76         lcd_pos=1:1:1     label="Matrix1 Pin %2p %b"     chn=1
EVENT_BUTTON_MATRIX        id=42         type=NoteOn     key=77         lcd_pos=1:1:1     label="Matrix1 Pin %2p %b"     chn=1
EVENT_BUTTON_MATRIX        id=43         type=NoteOn     key=78         lcd_pos=1:1:1     label="Matrix1 Pin %2p %b"     chn=1
EVENT_BUTTON_MATRIX        id=44         type=NoteOn     key=79         lcd_pos=1:1:1     label="Matrix1 Pin %2p %b"     chn=1
EVENT_BUTTON_MATRIX        id=45         type=NoteOn     key=80         lcd_pos=1:1:1     label="Matrix1 Pin %2p %b"     chn=1
EVENT_BUTTON_MATRIX        id=46         type=NoteOn     key=81         lcd_pos=1:1:1     label="Matrix1 Pin %2p %b"     chn=1
EVENT_BUTTON_MATRIX        id=47         type=NoteOn     key=82         lcd_pos=1:1:1     label="Matrix1 Pin %2p %b"     chn=1
EVENT_BUTTON_MATRIX        id=48         type=NoteOn     key=83         lcd_pos=1:1:1     label="Matrix1 Pin %2p %b"     chn=1
EVENT_BUTTON_MATRIX        id=49         type=NoteOn     key=84         lcd_pos=1:1:1     label="Matrix1 Pin %2p %b"     chn=1
EVENT_BUTTON_MATRIX        id=50         type=NoteOn     key=85         lcd_pos=1:1:1     label="Matrix1 Pin %2p %b"     chn=1
EVENT_BUTTON_MATRIX        id=51         type=NoteOn     key=86         lcd_pos=1:1:1     label="Matrix1 Pin %2p %b"     chn=1
EVENT_BUTTON_MATRIX        id=52         type=NoteOn     key=87         lcd_pos=1:1:1     label="Matrix1 Pin %2p %b"     chn=1
EVENT_BUTTON_MATRIX        id=53         type=NoteOn     key=88         lcd_pos=1:1:1     label="Matrix1 Pin %2p %b"     chn=1
EVENT_BUTTON_MATRIX        id=54         type=NoteOn     key=89         lcd_pos=1:1:1     label="Matrix1 Pin %2p %b"     chn=1
EVENT_BUTTON_MATRIX        id=55         type=NoteOn     key=90         lcd_pos=1:1:1     label="Matrix1 Pin %2p %b"     chn=1
EVENT_BUTTON_MATRIX        id=56         type=NoteOn     key=91         lcd_pos=1:1:1     label="Matrix1 Pin %2p %b"     chn=1
EVENT_BUTTON_MATRIX        id=57         type=NoteOn     key=92         lcd_pos=1:1:1     label="Matrix1 Pin %2p %b"     chn=1
EVENT_BUTTON_MATRIX        id=58         type=NoteOn     key=93         lcd_pos=1:1:1     label="Matrix1 Pin %2p %b"     chn=1
EVENT_BUTTON_MATRIX        id=59         type=NoteOn     key=94         lcd_pos=1:1:1     label="Matrix1 Pin %2p %b"     chn=1
EVENT_BUTTON_MATRIX        id=60         type=NoteOn     key=95         lcd_pos=1:1:1     label="Matrix1 Pin %2p %b"     chn=1
EVENT_BUTTON_MATRIX        id=61         type=NoteOn     key=96         lcd_pos=1:1:1     label="Matrix1 Pin %2p %b"     chn=1
EVENT_BUTTON_MATRIX        id=62         type=NoteOn     key=97         lcd_pos=1:1:1     label="Matrix1 Pin %2p %b"     chn=1
EVENT_BUTTON_MATRIX        id=63         type=NoteOn     key=98         lcd_pos=1:1:1     label="Matrix1 Pin %2p %b"     chn=1
EVENT_BUTTON_MATRIX        id=64         type=NoteOn     key=99         lcd_pos=1:1:1     label="Matrix1 Pin %2p %b"     chn=1
 
Link to comment
Share on other sites

  • 4 months later...

Hi rubby or anybody else using DIN matrices with the DIO_Matrix module

Does the above script fully work for you now? I am playing around with a DIN_Matrix as well with the DIO_Matrix module, connected directly to J8/9 without any other modules at that port. However, I do have some issues with everything connected to O7 of J3 at the moment. Whenever I switch on any switch on that output, nothing happens. If i switch it off, it bounces on/off for the same times as the amount of buttons I assigned to the matrix (e.g. 64 times if I have 64 buttons assigned). It is definitely no switch bounce as usual, as I don't have this problem at any other pin.

First, I assumed a hardware problem. However, if I interchange the chips, it is still just O7 on J3 (O7 on J4 is ok). I can disconnect my Switch matrix (it's actually three 6 step rotary switches at I0-5 and O5-7 with a single diode at the common pin) and short the pins manually on the DIO_Matrix board and do have the same effect. also the PCB traces are fine and there is no shortcut at any pin. I believe, it has something to do with the configuration. But either I didn't fully get the way this matrix has to be configured (I tried your script as well as an own one with Midibox_NG V1.026) or something strange is going on :-)

Everything else I got fully working so far (AINSER64, SD Card, GLCD).

Thanks for your help!

Edited by Highcooley
Link to comment
Share on other sites

Ok, problem is solved. Obviously, a lot of configurations in the default.ngc are redundant and are mixing each other up, if the hardware is not specifically designed. Why rubby's code had the same effect, I don't know. However, as long as I set up only the amount of buttons currently in use, it works.

 

Another thing is how to set up the rotary switch to act as it should (same CC but different range/value). But since nobody cared to answer here, I'll post this question in a more apropriate topic.

Edited by Highcooley
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...