Jump to content

Remap DIN J4 to send notes


Shaeded
 Share

Recommended Posts

Hi

Im using the MB64E application, my setup consits of 1xAINX3, 1xDINX4, 1xCORE V3 (No LCD!). Pots, Enc's, Buttons.

AINX3 no problem.

DINX4 J3, J5-J10(Buttons, Enc's) no problem.

DINX4 J4 not reacting to pressed buttons. Now i know that J4 in the standard MB64E firmware is maped to the F1,F2,F3,F4. I need a little help on Editing the setup_midibox16e.asm. I want the Buttons on J4 to output notes

Thanx

Link to comment
Share on other sites

Hi

Thanks for the advice, i already knew that. I used it a 1000 times. But now im looking forward, to stepping up my game.

Take a look at my status, im a Newbie. Im not planning on staying a newbie. I have a little to none programming skills :P. But! Im probably the best Electronics Technician out there :o(OMG)(LOL) ;). NO! Im just very GOOD. ;). So my status is an issue here.

Why cant my Status be: Midibox Electronics Guru with no programming skills :P (that would be a long tile)

No! OK, i know you have to earn your stripes. :D

I want to edit the *.asm/*.inc manualy, so i dont have to use the MB64E editor (No offence the Tool is great). I've already edited the  setup_midibox16e.asm to suit my needs. I just cant figure out what part of the *.asm/*.inc i need to edit to get J4 on the DINX4 up an running.

A little code/pointing out where to look, whould be of help.

Link to comment
Share on other sites

Don't worry bout forum status it doesn't mean squat. It's just matched to postcount, which is only a representation of how long you have been here and how much you talk. There are lots of gurus around here with "Newbie" under their name. There are a couple of newbies with guru under their name too (points at self) Don't pay any attention to it!

As for the issue at hand: Figure out which button numbers you are trying to change, and move on from there, working backwards in he code to get to the part you want to change....

Link to comment
Share on other sites

I indeed thought that considering your number of postings a newbie help with the link to serge's tool would benefit you.  :-[

I am probably one of the best software troubleshooter on this planet, but my electronics is dusty so say at least.  :P

Even so, apparantly you earn your stars here with number of useless postings you make, so I better stay the newbie.  ;)

You can write your text in the personal profile under the personal picture, even if you do not have a picture. That's where I put my programmers status.

Link to comment
Share on other sites

Ok, I had a look at the code. I need a little more info.

In short: Do you have buttons on J3 as well?

In long: Can you tell me what exactly you have connected to which Jumper pins at J3 - J10

As you are an electronics guru I assume you have eliminated the possibility of a fried chip, broken power line, malfunctioning button, misplaced solder etc ???

You can send me your current .asm file as well as a private message and I will see what I can do for you.

All the best, and don't forget to have fun!  ;)

Link to comment
Share on other sites

OK in short: Buttons are connected to J4

OK in long: J3 4xButtons, J5 1xEncoder 2xButtons, J6 4xButtons, J7 1xEncoder 2xButtons, J8 1xEncoder, J9 2xButtons, J10 4xButtons (all working)

I swapped the SR (74HC165) 1 and 3. Everything on the 3rd SR still worked. Everything on the 1st SR J3 4xbuttons, still worked. J4 4xButtons no function. That Ellimnates the possabilitie of a fried Chip. ???

I'll take a look at the DINX4 board, but i doubt thats the problem. Then again you never know.

Im not at home right now, so i cant send you my .asm now.

Link to comment
Share on other sites

Ok, I had a look. (This is just dry code reading, I do not have the possibility yet to test these things in hardware).

From the 64e.ini file

    # Navigation buttons, only available as MIDI triggers when they

    # have been disabled in main.asm

    21  =  90 7C 7F  @OnOff

    22  =  90 7D 7F  @OnOff

    23  =  90 7E 7F  @OnOff

    24  =  90 7F 7F  @OnOff

This is your J4. As in the .asm you send me it says:

#define DEFAULT_DIN_SR_PIN_01_08  2

#define DEFAULT_DIN_SR_PIN_09_16  3

#define DEFAULT_DIN_SR_PIN_17_24  1

#define DEFAULT_DIN_SR_PIN_25_32  4

#define DEFAULT_DIN_SR_PIN_33_40  9

Saying that your first chip (shift register) is allocated to pin numbers 17 to 24.

There are two things to do now.

1. Change the main.asm to enable the pins and buttons (it's actually a buttons.inc file)

2. Change the pin numbering for the first shift register.

I would go for number two. Remember that your buttons on J3 will get new numbers too!

#define DEFAULT_DIN_SR_PIN_01_08  2

#define DEFAULT_DIN_SR_PIN_09_16  3

#define DEFAULT_DIN_SR_PIN_33_40  1

#define DEFAULT_DIN_SR_PIN_25_32  4

#define DEFAULT_DIN_SR_PIN_17_24  9

J3 is now 33-36, and J4 37-40.

I hope this works.

Link to comment
Share on other sites

Yeeeeaaaaahhhhh

Your a good man Gioxannes, things are working fine now. Now with your code, it seems that my SR9 on J? wont be sending out any midi messages/notes (its ok, im not using it). Im just trying to figure out, what the changes to the code meant (i think i understood :))

Once again GOOD MAN!

Thanx

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...