It is currently Fri Mar 29, 2024 8:34 am


LCD Display - can **this** be done?

Hauptwerk software technical support only. Please make sure you have read the manual, tutorials and FAQ pages before requesting support.
  • Author
  • Message
Offline
User avatar

kaspencer

Member

  • Posts: 767
  • Joined: Wed Jun 11, 2008 4:42 pm
  • Location: UK, England, Wiltshire.

LCD Display - can **this** be done?

PostMon Feb 26, 2018 7:08 pm

Good evening all.

I have recently been setting up an LCD Display (2 x 16) for displaying the currently loaded (and loading) organ, and the selected Combination Set. This is for my new organ (OPUS II) which is nearly complete.

The display is driven by a fairly simple program (written in C) which also allows four buttons to select the object to be loaded (organ, combination set, or temperament), to scroll back and forth through the available entries, and to choose which to load. The control program runs on an Arduino Teensy (a tiny ARM-based micro controller computer) which in turn sends user defined or Hauptwerk-generated textual messages to the LCD display.

This works fine and is rather lower cost than many of the commercially available LCD Displays, and has the advantage of allowing the user written program to be flexibly amended.

And so onto my question: Is there a MIDI message associated with Hauptwerk shutting down, which Hauptwerk sends to the LCD display device, which I can detect in the Teensy control program and thus display a message that Hauptwerk is shutting down, and then has shut down? If so, can the MIDI message details be released so that I can capture the MIDI data and use it in my code?

I have analysed the MIDI messages (which seem to be in MIDI SysEx/RAW rather than SysEx - I expected the latter) and cannot quite see what I am looking for. I know that Hauptwerk sends a MIDI message when all organs are unloaded, which is fine - but I would like to know whether I can detect a Hauptwerk shutdown.

Many thanks ...

Ken
Kenneth Spencer
Music Site: http://www.my-music.mywire.org
Project Page: http://www.my-music.mywire.org/opus_ii.htm
Books on Hauptwerk and Computing; Novation Launchpad overlays: http://www.lulu.com/spotlight/kaspencer
YouTube Videos: http://www.youtube.com/kaspenceruk
Offline
User avatar

IainStinson

Member

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

Re: LCD Display - can **this** be done?

PostTue Feb 27, 2018 2:44 am

Running under Windows, I use a Windows program which detects when the Hauptwerk application has ended and use this to run a small program to turn off my audio system (in an orderly way to avoid any nasty ‘thumps’). You could use this approach to send a suitable midi message to your controller. Note I use the HW ‘exit the application’ not the ‘shutdown the operating system’ to close things down: when using the os shutdown in HW Windows does not trigger the end of application routine before shutting down. I’m sure this approach would be possible on MacOS (at worst by monitoring the pics of active processes...)

Another approach might be to assign a physical console control to one of the HW shutdown actions and detect the midi sequence HW will ‘echo’ (output) when this control is activated . Your LCD driving program could then detect this midi sequence and display a suitable message (or do whatever you want..)

Good luck.

Iain
Offline
User avatar

NickNelson

Member

  • Posts: 880
  • Joined: Tue Dec 20, 2005 10:31 am
  • Location: Yorkshire, UK

Re: LCD Display - can **this** be done?

PostTue Feb 27, 2018 4:52 am

I use the 'Misc state output: audio active' as a proxy for HW being ready and running to switch my amplification on and off. 'Application: exit Hauptwerk' might be useful too, though since HW will ordinarily only shut down if you have asked it to, the notification has a degree of redundancy. In both cases, you set what MIDI note-on note-off is used yourself.

Nick
Offline
User avatar

mdyde

Moderator

  • Posts: 15446
  • Joined: Fri Mar 14, 2003 1:19 pm
  • Location: UK

Re: LCD Display - can **this** be done?

PostTue Feb 27, 2018 5:40 am

Hello Ken,

To add to others' replies, Hauptwerk doesn't send any dedicated MIDI message for the Hauptwerk application exiting, but:

- It will always send all-blank strings to all LCD panels that you've configured prior to it stopping MIDI devices (which will happen prior to exiting the application, as well as prior to unloading an organ, etc.).

- On the 'General settings | Advanced MIDI applications | MIDI LCD panel control for loading organs and global status' screen the 'Loading: 100% (status, curr object and types: all types' LCD line format will show general system status (such as when/whether an organ is loading/loaded, etc.).

- Hauptwerk's 'MIDI console status output system' (see pages 222-225 in the current v4.2.1 version of the user guide), if enabled, will send most system status information in a low-level way that's designed for third-party hardware/software to use for controlling custom display systems. For example, the 'IsOrganReady' boolean value is on precisely whenever audio and MIDI are both active, and 'IsReadyForUserInput' is on precisely whenever MIDI is active and a system function is not currently in progress. 'IsOrganLoaded' and 'IsOrganLoading' might be of some use to you too.

- On the 'General settings | Advanced MIDI applications | MIDI/key triggers for loading organs and other global menu functions' screen the 'Misc state output: ...' system functions can be configured to send a subset of that information (via sys-ex or otherwise).

The format of Hauptwerk's 'MIDI console status output system' MIDI messages is covered in the 'MIDI implementation: MIDI console status output system' section of the guide (pages 222-225) and that of its LCD messages in the 'MIDI implementation: LCD panel system' section (page 221).
Best regards, Martin.
Hauptwerk software designer/developer, Milan Digital Audio.
Offline
User avatar

kaspencer

Member

  • Posts: 767
  • Joined: Wed Jun 11, 2008 4:42 pm
  • Location: UK, England, Wiltshire.

Re: LCD Display - can **this** be done?

PostThu Mar 01, 2018 7:26 pm

Thanks to Martin, Nick and Ian, for the helpful replies.

I will look at Nick and Ian's suggestions - there is enough to get to a solution using one or other ideas, I'm sure.

Thanks Martin - I'm glad to say that I looked at most of the ideas which you have kindly suggested, including the MIDI Implementation, all essential material, especially during the writing of the control program. I have used a MIDI control for shutting down Hauptwerk and/or the PC since my first (2008) project, now need something a little more elaborate for the new instrument.

The one thing I had overlooked, however, was the one in Martin's last:
"- On the 'General settings | Advanced MIDI applications | MIDI/key triggers for loading organs and other global menu functions' screen the 'Misc state output: ...' system functions can be configured to send a subset of that information (via sys-ex or otherwise)
.
That is probably the most appropriate suggestion for what I need to do, and I will look at that as well as I'm sure it will be most useful.

Thanks again for the support ...

Ken
Kenneth Spencer
Music Site: http://www.my-music.mywire.org
Project Page: http://www.my-music.mywire.org/opus_ii.htm
Books on Hauptwerk and Computing; Novation Launchpad overlays: http://www.lulu.com/spotlight/kaspencer
YouTube Videos: http://www.youtube.com/kaspenceruk
Offline
User avatar

mdyde

Moderator

  • Posts: 15446
  • Joined: Fri Mar 14, 2003 1:19 pm
  • Location: UK

Re: LCD Display - can **this** be done?

PostFri Mar 02, 2018 5:21 am

Thanks, Ken.

You're very welcome. Best wishes with the project.
Best regards, Martin.
Hauptwerk software designer/developer, Milan Digital Audio.

Return to Technical support

Who is online

Users browsing this forum: No registered users and 6 guests