Jump to content

MF_NG Modul mit LPC17 verbinden


Recommended Posts

Hier ist ein einfaches Konfigurationsbeispiel fuer 4 Baenke: http://svnmios.midibox.org/filedetails.php?repname=svn.mios32&path=%2Ftrunk%2Fapps%2Fcontrollers%2Fmidibox_ng_v1%2Fcfg%2Ftests%2Fmf_banks.ngc

 

Das MBHP_MF_NG Modul ist fuer das Motormix Protokoll konfiguriert (!), und kommuniziert in diesem Beispiel ueber OUT3/IN3 (-> J5.A6/A7)

Falls Du es erstmal ueber einen "normalen" MIDI IO betreiben moechte, dann koenntest Du auch MIDI IN2/OUT2 nehmen:

# we've a single MBHP_MF_NG module with 8 motorfaders
# It has to be configured for Motormix protocol!
MF n=1  enabled=1  midi_in_port=IN2  midi_out_port=OUT2  chn=1  ts_first_button_id=1001  config_port=USB3

 

LEDs bei 50% schalten: das geht bspw. mit fwd_id=LED:<hw_id>, also:

EVENT_MF  id= 1  hw_id= 1  bank=1  fwd_id=LED:1  type=CC  chn= 1 cc=16  range=0:127  lcd_pos=1:1:1  label="^std_mf"
EVENT_MF  id= 2  hw_id= 2  bank=1  fwd_id=LED:2  type=CC  chn= 2 cc=16  range=0:127  lcd_pos=1:1:1  label="^std_mf"
EVENT_MF  id= 3  hw_id= 3  bank=1  fwd_id=LED:3  type=CC  chn= 3 cc=16  range=0:127  lcd_pos=1:1:1  label="^std_mf"
EVENT_MF  id= 4  hw_id= 4  bank=1  fwd_id=LED:4  type=CC  chn= 4 cc=16  range=0:127  lcd_pos=1:1:1  label="^std_mf"
EVENT_MF  id= 5  hw_id= 5  bank=1  fwd_id=LED:5  type=CC  chn= 5 cc=16  range=0:127  lcd_pos=1:1:1  label="^std_mf"
EVENT_MF  id= 6  hw_id= 6  bank=1  fwd_id=LED:6  type=CC  chn= 6 cc=16  range=0:127  lcd_pos=1:1:1  label="^std_mf"
EVENT_MF  id= 7  hw_id= 7  bank=1  fwd_id=LED:7  type=CC  chn= 7 cc=16  range=0:127  lcd_pos=1:1:1  label="^std_mf"
EVENT_MF  id= 8  hw_id= 8  bank=1  fwd_id=LED:8  type=CC  chn= 8 cc=16  range=0:127  lcd_pos=1:1:1  label="^std_mf"

Es sollte sogar moeglich sein, die LEDs mit den Fadern zu dimmen! :smile:

EVENT_LED  id=1  dimmed=1
EVENT_LED  id=2  dimmed=1
EVENT_LED  id=3  dimmed=1
EVENT_LED  id=4  dimmed=1
EVENT_LED  id=5  dimmed=1
EVENT_LED  id=6  dimmed=1
EVENT_LED  id=7  dimmed=1
EVENT_LED  id=8  dimmed=1

 

Gruss, Thorsten.

Link to post
Share on other sites

Sehr schoen! :)

 

Die Touchbuttons sollten auf id=1001..1008 verfuegbar sein (so ist es im obigen Beispiel konfiguriert).

 

Du koenntest nun MIDI events wie folgt generieren:

# on touchsensor event (first id has been specified in the MF configuration above)
EVENT_BUTTON  id= 1001  type=NoteOn chn= 1 key=0x68  range=0:127  lcd_pos=1:1:2  label="^std_btn"
EVENT_BUTTON  id= 1002  type=NoteOn chn= 1 key=0x69  range=0:127  lcd_pos=1:1:2  label="^std_btn"
EVENT_BUTTON  id= 1003  type=NoteOn chn= 1 key=0x70  range=0:127  lcd_pos=1:1:2  label="^std_btn"
EVENT_BUTTON  id= 1004  type=NoteOn chn= 1 key=0x71  range=0:127  lcd_pos=1:1:2  label="^std_btn"
EVENT_BUTTON  id= 1005  type=NoteOn chn= 1 key=0x72  range=0:127  lcd_pos=1:1:2  label="^std_btn"
EVENT_BUTTON  id= 1006  type=NoteOn chn= 1 key=0x73  range=0:127  lcd_pos=1:1:2  label="^std_btn"
EVENT_BUTTON  id= 1007  type=NoteOn chn= 1 key=0x74  range=0:127  lcd_pos=1:1:2  label="^std_btn"
EVENT_BUTTON  id= 1008  type=NoteOn chn= 1 key=0x75  range=0:127  lcd_pos=1:1:2  label="^std_btn" 

 

Gruss, Thorsten.

Link to post
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...
×
×
  • Create New...