It is currently Thu Apr 18, 2024 10:23 pm


DIY console with combination number display

Building organ consoles for use with Hauptwerk, adding MIDI to existing consoles, obtaining parts, ...
  • Author
  • Message
Offline

jano63

Member

  • Posts: 1
  • Joined: Fri Oct 09, 2020 12:14 pm
  • Location: Slovakia

DIY console with combination number display

PostWed Oct 14, 2020 5:18 pm

I have made my own console with Illuminated combination buttons and 3x7-segment LED-display for displaying number of combination.
Could I get from Hauptwerk a whole combination number as MIDI message when a value changes (in Hauptwerk app)?

Is it possible to set (send to Hauptwerk) by any MIDI-message whole number of wanted combination (all 3 difits) instead of incremental messages like "+1"," -1", "+10", "+100", ...?
Offline
User avatar

IainStinson

Member

  • Posts: 1392
  • Joined: Tue Dec 29, 2009 6:08 pm
  • Location: NW England, UK

Re: DIY console with combination number display

PostWed Oct 14, 2020 5:26 pm

You asked :
Could I get from Hauptwerk a whole combination number as MIDI message when a value changes (in Hauptwerk app)?


You can using the MIDI console status output system - See page 261 and following in the HW 5 User manual.
Iain
Offline

edgaut

Member

  • Posts: 2
  • Joined: Sun Jul 19, 2020 10:07 am

Re: DIY console with combination number display

PostSat Nov 28, 2020 6:28 am

Hi,

You can just extract a couple characters from a System Exclusive message (make sure to configure Hauptwerk to send out these messages by enabling an LCD). Here's a code snippet from the Arduino code I use (a modified version of some code from this excellent site: https://teensyhauptwerk.wordpress.com/):

Code: Select all

if ((midiType == MIDI_SYSEX) && (data1 < 80)) {     
    //this is a SysEx message and will fit in our array   
    byte * sysexmessage=usbMIDI.getSysExArray();
    hwline1="";
    hwline2="";
    if ((sysexmessage[1]==ID_HAUPTWERK) && (data1 > 24)) {
          //this is from Hauptwerk
 
          for (int x=11; x<(14); x++){
            //step through sysex message (we just want characters 11, 12 and 13 as this is the stepper number)
            byte c=sysexmessage[x];
            hwline1 = hwline1 + char(c);
          }
          for (int x=22; x<(38); x++){
            //step through sysex message
            byte c=sysexmessage[x];
            hwline2 = hwline2 + char(c);
          }
          stepNum = String(hwline1);
        }
      }
    }

oled.print(stepNum);




Here it is in action: https://drive.google.com/file/d/1jEzdiy ... MMW7u/view

I can link the whole thing and give you more detailed instructions if this is helpful.

Thanks,

Ed

p.s. I'm not sure it's possible to set the combination number without using the 'levels' i.e. +/- 100 +/-10. You can jump to any number within those though (as in xx1, xx2 etc.)

Return to DIY organ consoles / MIDI

Who is online

Users browsing this forum: No registered users and 22 guests

cron