Jump to content

4 buttons 1 pot


cimo
 Share

Recommended Posts

hallo

it sounds easy but i need help:

4 buttons with leds

1 pot (pedal)

MB64

a)do the usual tweaking on main.asm

b)in mb64_meta.inc change meta event 00

MB64_META_Handler_00
   ;; set global channel to the second byte of a F0 xx meta event
   movff MB64_GLOBAL_CHANNEL, MIDI_EVNT1
   return
tx TK c) change mb64_presets.inc
MB64_Presets_OffsetButtons

	;; DIN/DOUT group 0

	BUTTON_ENTRY 0xf0, 0x01, 0x7f, 0x00

	BUTTON_ENTRY 0xf0, 0x02, 0x7f, 0x00

	BUTTON_ENTRY 0xf0, 0x03, 0x7f, 0x00

	BUTTON_ENTRY 0xf0, 0x04, 0x7f, 0x00

	BUTTON_ENTRY 0x94, 0x30, 0x7f, 0x00

	BUTTON_ENTRY 0x95, 0x30, 0x7f, 0x00

	BUTTON_ENTRY 0x96, 0x30, 0x7f, 0x00

	BUTTON_ENTRY 0x97, 0x30, 0x7f, 0x00

>>in main.asm i set pots number to 1 and buttons to 4

>>i just need to change the cc/channel sent by the pot with the 4 buttons so also a "group" switch would be ok, but groups are only on MB64E not in MB64

-am i right?

i need MB64 for the soft take over, it s a pedal for guitar

considering a possible development, is it possible to assign the midi channel via meta event to 2 buttons (next/previous) and assign eg 8 leds to monitor in which global channel the box is? 

thanks

simone

Link to comment
Share on other sites

Before working with assembly language and meta events, I would suggest to go for the C wrapper for such a simple application, which would only use maybe 10% of the MIDIbox64 firmware.

Here an example for soft-takeover:

http://www.ucapps.de/mios_c_send_ain_takeover.html

Using buttons:

http://www.ucapps.de/mios_c_send_din.html

Using LEDs:

http://www.ucapps.de/mios_c_set_dout.html

Best Regards, Thorsten.

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