It is currently Thu Mar 28, 2024 3:17 am


Hauptwerk Page Turner

A discussion forum for anything even marginally Hauptwerk-related.
  • Author
  • Message
Offline

Bill Skees

Member

  • Posts: 3
  • Joined: Sat Nov 16, 2013 5:58 pm

Hauptwerk Page Turner

PostWed Jul 05, 2017 11:33 am

Any suggestions for how to implement a page-turner piston for a monitor displaying PDF sheet music?
Offline

smfrank

Member

  • Posts: 357
  • Joined: Sun Dec 20, 2009 9:53 am
  • Location: NY, NY

Re: Hauptwerk Page Turner

PostWed Jul 05, 2017 11:48 am

http://www.MusicReader.net allows assigning midi messages via keys, or anything else, to turn forward or back. Works very well, and the music does not need to be in focus (the front most window).
Steve
Steven Frank
Offline

Organorak

Member

  • Posts: 685
  • Joined: Sun Nov 22, 2009 6:55 am

Re: Hauptwerk Page Turner

PostThu Jul 06, 2017 4:45 am

That's a helpful program to know about.

The "focus" issue was a puzzle initially for me (namely, if the last program I've clicked in is Hauptwerk e.g. for a stop change, how do you first arrange to click on the pdf then turn the page?) but is overcome by using a MIDI signal for instance via a thumb piston. I have a thumb piston and toe piston for page forward, and another thumb piston and toe piston for page back (necessary if you accidentally turn two pages, or need to return back to play a repeat section).

To implement this in Windows without paying for proprietary software you need to install two additional freeware programs - Bome's MIDI translator and Autohotkey (Bome is postcardware - you can use it without registering but if you send the author a postcard he will provide a registration key).

I have set up Bome to recognise a MIDI signal (e.g. channel 1 note 100) and convert that into a complex keystroke (e.g. Control + shift + PageUp). The reason for having a complex keystroke rather than a single keystroke is that I use my Hauptwerk computer for other things and I don't necessarily want to trigger any pdf document that happens to be open to be brought into focus and turn the page every time I hit the PageUp button on my keyboard, and I don't use Control + shift + PageUp routinely for anything else. But you could just use a single key as long as it isn't used for anything else.

I have written a short Autohotkey script that recognises Control + shift + PageUp and on receiving that signal, brings any pdf document into focus (if it isn't already in focus, which it would be if it has been opened since the last time any Hauptwerk changes were registered) and turns the page up or down. I also have a shortcut to the script in my Startup folder so that on logon the AHK script automatically runs all the time in the background. This all happens very quickly on activating the piston.

I use Foxit as my default pdf reader. It seems to have all the advantages of Adobe Acrobat including being able to annotate, but with the further advantages that it can be set to automatically open any document fullscreen, and that its home screen has a list of recently opened files that can be helpful to review during a practice session.

I'm happy to share the AHK script if anyone would like me to.
Offline

Bill Skees

Member

  • Posts: 3
  • Joined: Sat Nov 16, 2013 5:58 pm

Re: Hauptwerk Page Turner

PostThu Jul 06, 2017 5:13 pm

Sounds like exactly what I'm looking for. Yes, I would appreciate your sharing the code. Thanks in advance,
Bill
Offline

Organorak

Member

  • Posts: 685
  • Joined: Sun Nov 22, 2009 6:55 am

Re: Hauptwerk Page Turner

PostMon Jul 17, 2017 4:32 pm

Having had a few reques5s to share my Autohotkey codes, here we go. Note:

(1) You need to be running Bome's MIDI translator which is postcardware (ie free if you mail the author a postcard). Bome can be made to start up automaticcally with Windows by placing a shortcut to it in the Wundows shortcut folder (for my PC the username is Organ and so the shortcut must be placed in C:\Users\Organ\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup) You also need to run Autohotkey.

(2) The computer keyboard shortcuts I use to program into Bome's MIDI translator are Control, Alt, Pageup and Control, Alt, Pageup. I could have just used Pageup without the simultaneous Control plus Alt but if I did so, I would find whenever I pressed the Pageup key on my PC keyboard when reading say a Woed document it would activate the macro and bring any open pdf into focus and turn the page in the pdf!

(3) The Sleep command is potentially unnecessary but just builds in 0.001 seconds between lines of code to avoid crashing the macro if it tried to do things too fast.

(4) I use Foxit Reader rather than Adobe Reader. It's free and has similar functionality including ability to annotate. But it scores by having an option to open files in fullscreen by default rather than each file needing to be created that way to open fullscreen in Acrobat. If you use Adobe Acrobat, just substitute "Adobe Reader" for "Foxit Reader" in the scripts below.

(5) After creating the AHK scripts you must first compile them (right click the script and select Compile to create an application). Then create a shortcut to each application and put the forward and back shortcuts in the afore-mentioned shortcut folder so they run when you boot up.

Job done!

Page forward
SetTitleMatchMode, 2
Sleep 1
^!PgDn::
Sleep 1
WinActivate, Foxit Reader
Sleep 1
Send {PgDn}
Sleep 1
Return

Page backward
SetTitleMatchMode, 2
^!PgUp::
Sleep 1
WinActivate, Foxit Reader
Sleep 1
Send {PgUp}
Sleep 1
Return
Offline

Bill Skees

Member

  • Posts: 3
  • Joined: Sat Nov 16, 2013 5:58 pm

Re: Hauptwerk Page Turner

PostMon Jul 17, 2017 4:40 pm

Several things here for me to look into. Thanks for the guidance. I'll see what I can do with it and get back to you.
Offline

ludu

Member

  • Posts: 996
  • Joined: Wed Nov 02, 2011 8:52 am
  • Location: Tournai (Belgium)

Re: Hauptwerk Page Turner

PostSat Feb 10, 2018 5:46 am

Up to now, I used PDF-XChangeViewer for my scores. Reading Organorak’s posts, I have tried Foxit Reader. This program has an advantage on PDF-Viewer: the full screen can display 2 pages at the same time. But on the other hand, I don’t see in Foxit any setting in order to avoid the paging 3–4 instead of 2–3, for example. In a music score correctly engraved, the easiest page turn is always after an odd page. Or do I miss something?
Last edited by ludu on Sun Feb 11, 2018 4:16 pm, edited 1 time in total.
Luc
Offline
User avatar

Jan Loosman

Member

  • Posts: 380
  • Joined: Sat Dec 20, 2008 4:33 pm
  • Location: The Hague, Netherlands

Re: Hauptwerk Page Turner

PostSat Feb 10, 2018 6:43 am

I also use music reader for my music. To turn the pages i use the outher foot pistons.
My built in midi card has 2 midi out usb connections. Lucky me!
For the music reader software i use a old mini computer not longer used in my work and connected to the second midi out.
Works perfect.

Regards Jan
Offline

ludu

Member

  • Posts: 996
  • Joined: Wed Nov 02, 2011 8:52 am
  • Location: Tournai (Belgium)

Re: Hauptwerk Page Turner

PostSat Feb 10, 2018 7:10 am

I have bought MusicReader in the past, but I don’t like at all this program (many bugs, a Spartan interface and too few midi inputs). And it does not resolve the problem I have explained here above, concerning the paging.
Luc
Offline
User avatar

Jan Loosman

Member

  • Posts: 380
  • Joined: Sat Dec 20, 2008 4:33 pm
  • Location: The Hague, Netherlands

Re: Hauptwerk Page Turner

PostSat Feb 10, 2018 7:25 am

The music reader pro version allows you to use 2 pages on your screen.
The basic license only allows one page.

Jan
Offline

ludu

Member

  • Posts: 996
  • Joined: Wed Nov 02, 2011 8:52 am
  • Location: Tournai (Belgium)

Re: Hauptwerk Page Turner

PostSat Feb 10, 2018 7:27 am

Yes, but it does not allow to avoid the paging 3–4 instead of 2–3 (see my post above).
Luc

Return to General discussion

Who is online

Users browsing this forum: No registered users and 22 guests