Thursday, December 26, 2013

MIDI pedalboard

So the Christmas rush is over, and on your New Year's resolution list is a project to finish your Hauptwerk setup by building a MIDI-pedalboard to go with those MIDI keyboards you have, plan to build, or plan to buy.

Basically you have two major options: Money or time? If you have too much money, and not enough time, your problems are over. Just head over to Classic MIDI Works and for only (!) $1725 you can have a brand new pedalboard that produces excellent MIDI signals for your Hauptwerk, GrandOrgue, MIDItzer, or jOrgan setup.
http://www.MIDIworks.ca/index.php/products/details/145/2/pedalboards/classic-ago-MIDI-pedalboard

Or if you have tons of time and amazing craftsmanship skills, you could build your pedalboard like this:
http://www.flickr.com/photos/53505621@N07/sets/72157624882970350/

But if you are somewhere in between, like me you will probably find it easier to start with an AGO pedalboard from an old analog or pipe organ and convert it to MIDI. That's what this blog post is about.

In theory, it's simple: A pedalboard is basically 32 switches which are activated by pressing the pedals. You convert those switch open and closings to MIDI signals which are then fed to your computer for use with virtual pipe organ software. Some systems go one step further and send the MIDI signals on to the computer via a USB connection. Historically, however, you would use a sound card or other type of adapter to accept the MIDI signals using a 5 pin DIN MIDI cable. I will assume for this discussion that you want to output via a generic MIDI connector rather than a USB cable. MIDI output from the pedals will allow you to connect to a MIDI merge device (with the keyboards and pistons) and from there to the sound card MIDI input or perhaps a MIDI-2-USB converter. When you do so, just remember to watch for latency (lag). Each conversion can introduce just enough lag that it might become difficult to play. This is because MIDI itself is not a very fast protocol and merging and converting it can be slower than we might like, especially for continuous output signals from the swell expression pedal if they are too verbose. One way to minimize this lag when converting multiple keyboards from analog to MIDI is to use the same manufacturer's conversion system for all manuals and pedalboards. Doing so usually allows all the merging and mixing to happen BEFORE conversion to MIDI, and you only get one final MIDI output signal which has minimal lag.

If you are an electronics engineer, you could even build all this circuitry from scratch. If you are really ambitious and have time on your hands, you might even like to check out the Highly Liquid forum:
http://forum.highlyliquid.com/

I am not an electronics engineer. Wish I were, but not even close. Fortunately there are several commercial circuit board kits available that have worked out all the details for me. Almost all of them directly output MIDI on/off signals. But because there are minor differences between the conversion kits, you do have to make a few choices however.

The first choice you must make is how to connect the pedalboard switches to the circuit boards. You'd think it would be simple: Just connect wire 1 from note 1 on the pedalboard to input 1 on the MIDI converter. Well, yes it is, but only for SCANROW style systems. There are two major categories of connections: SCANROW vs. MATRIX input. You don't need to understand these fully, but here's the bottom line: SCANROW simply connects one pedal switch to one input on the converter in a one-to-one ratio. It is the simplest system to visualize. MATRIX input is a bit more complicated, because it uses a kind of indexing to reduce the number of wires needed. Rather than 32 wires connecting to the MIDI converter as with a SCANROW system, you might have only 8-16 MATRIXed wires. The MATRIX is cleverly designed so that you have one wire for each note in a short sequence, say 8 notes, and another index wire for each sequence. Each played note (closed pedal switch) activates two wires, which combine together (MATRIXed) give your MIDI converter all the information it needs to know which note was pressed. MATRIX wiring is basically dividing the pedalboard up into several sections, each a sequence of notes. You are telling the converter something to the effect "The organist is pressing the 3rd note of the 2nd sequence of notes". These might be 8 note sequences (for digital computer reasons, not musical reasons), but a musician might wish to think of the MATRIX system as analogous to the way keyboards are full of sequences of notes that we call 'octaves' and each octave (of 12 notes) is designated differently. There would be one wire for each note in an octave (C,C#,D, etc.) and one wire for each octave (CCC, CC, C, etc.). Each time the organist plays a note, one wire from each group is activated, and the MIDI converter is smart enough to figure out what note it should play by combining the note wire and octave wire together. Same logic with MATRIX keying, except shorter (8 note) intervals are usually used to keep down the number of wires. Here's a nice little graphical illustration:
http://forum.highlyliquid.com/showthread.php?t=1115

The advantage is we can get by with using fewer wires. Perhaps a ribbon cable with only 8-16 wires in it to connect the pedalboard switches to the circuit board. MATRIX has a downside that you have to use diodes, one for each note, to make sure currents always flow one direction and don't allow the sequence wire to activate wrong notes by allowing current to flow backwards. Fortunately, diodes are cheap (less than a dollar) but have to be soldered one by one.

For me, SCANROW is just plain simpler. No diodes to solder, just 32 wires to connect. That narrows the list slightly, but we still have quite a few circuit board kits to consider. Since we do have 32 wires though, it probably will be best to mount the circuit board close to the pedals, even inside the switch end of the pedalboard. This will keep the wire rats nest to a minimum.

Now we need to decide if we want the circuit board to be capable of handling toe studs (mushroom presets) and swell expression pedals. Most of us do, so we will have to look at the capabilities of the MIDI circuit board kits carefully. Basically swell expression pedals are connected to variable resisters (potentiometers) and that variable resistance is converted to a MIDI signal number of 1-128. In other words, swell expression input is analog, not digital on-off like the pedal note switches. So we look at how many analog inputs the circuit board has. Lastly, we look for whether the circuit board can handle toe stud inputs. Toe stud piston inputs are very similar to pedal not switches, except they must be programmed slightly different -- when we press a toe stud, we expect it to latch, not momentarily turn on, then off, as it would if it were a keyboard note. It is my understanding (I may be wrong) that the switch itself is usually not different, only the way the circuit board handles the signal, so we have to inquire or check into how many such notes it can handle.

Lastly, and perhaps least important, is the type of switches in the pedalboard. Most reasonably modern analog organs use a system of reed switches activated by magnets on the tips of the pedals. This is a nice system because the reed switches are enclosed in glass like a light bulb and are less vulnerable to arcing oxidation and 'bouncing' that can happen when a circuit is closed. There are other ways to make or break a circuit. Some, like the home made pedalboard linked to above, use photo cells to optically open and close the circuit. This is probably the most elegant and trouble free, but it might cost a little more to use. It's completely up to you however, all we need for the input to the MIDI circuit board is some kind of switch. Most circuit boards have a 'debounce' circuit to minimize the number of MIDI on-off signals sent with a single not depression, but again optical might be the gold standard in clean switching.

Assuming you want to MIDIfy a standard AGO pedalboard using SCANROW wiring, I've done the hard work for you and posted a summary spread sheet of various vendors and their relevant products as of December 2013. You may still have further questions after studying it, but it is at least a good start to your project.

By the way, if you don't have Excel, I recommend Libre Office (Calc) or perhaps Gnumeric. Both are open source and free spread sheet viewing tools. You will need to unzip the file first using your operating system or a tool like 7-zip. Compare and contrast!
www.anim8.com/organ/blog/MIDI_Pedalboard.zip

Wednesday, December 4, 2013

Movie Magic

In my next blogpost I plan to get back to writing about midification of an electronic organ, but first I just have to share a holiday movie with you.

By way of background, yes, it's that time of year in the U.S., the Thanksgiving-Hanukkah-Kwanzaa-Christmas season. For those of you outside the U.S., all you need to know is that Thanksgiving still has some solid remnants of good, honest, family togetherness left to it. The Christmas holidays have been hijacked by corporations (and some churches) wringing the last drop of humanity out of any well-meaning soul that falls into their marketing territory. But Thanksgiving is arguably still mainly about being with family and gratefully sharing a nice meal together. I was fortunate to be able to simply visit with my family rather than worry about shopping and gifts and all the scheduling anxieties that come with the X-mas season. But the day after Thanksgiving is called Black Friday for reasons best left to the imagination, and that day is probably better spent at home if you dislike competing with crowds of greedy consumers as much as I do.

So instead, we watched a jewel of a movie called "A Christmas Without Snow", and although it is set in San Francisco, a city not far from where I write this, it was the first time I watched this film. The main story is about a demanding choirmaster preparing a small amateur choir to sing Handel's Messiah but there are multiple personal stories interwoven around this unifying theme. Whoever wrote the script knew a thing or two about the craft of making music, because the dialogue is spot on. It's one of those classic movies with lines that any music lover can and will appreciate. The writer also knew something about organs, there are a few priceless scenes comparing a pipe organ with an electronic imitation to quite humorous effect.

There's a free download (public domain) at:

https://archive.org/details/AChristmasWithoutSnow

I found both DivX and Mp4 versions playable. If you don't have a player, VLC player will play almost anything:

http://www.videolan.org/vlc/index.html

but you can probably use whatever player you have, perhaps even Windows Media Player!

If you like music and films that appeal to both mind and heart, I hope you have a chance to watch this movie before the holidays are over.

Wednesday, October 9, 2013

Disney's Pipe Organ

Sorry. No photo today. I wanted to post a photo of the Disney Concert Hall Pipe Organ but you will have to settle for enjoying the officially approved Disney Hall virtual tours instead.

Here is a YouTube clip from Carol Williams' DVD:

http://www.laphil.com/wdch10/wdch/organ.html

From there, find links to a plethora of virtual short tour videos, more than you ever wanted to know about Disney Concert Hall and organ, including a time lapse video of the hall's construction.

http://www.laphil.com/wdch10/wdch/architecture.html

Enjoy!

Sunday, October 6, 2013

Sublime Symphony

I moved away from Los Angeles before the Walt Disney Concert Hall was built. Two years ago I toured the exterior of this iconic building, but was not allowed inside the auditorium proper. This weekend I finally had the opportunity to attend a concert there. It was one of this season's 10th anniversary opening concerts. Disney Concert Hall is everything they say and more. If you ever have the opportunity to attend a concert at Walt Disney Concert Hall, don't think twice. Just do it, you will not regret it. The acoustics are exquisite. This concert happened to be the LA Philharmonic, not the breathtaking "French Fries" pipe organ unfortunately, but the organ was on full display. Huge curved wood pedal pipes up to 32 feet long were arrayed in a near random explosive array. Obviously a controversial design, but equally obviously the best design for LA, this is not your grandmother's concert hall or organ. Our seatmates were 10 year symphony season subscribers. Their first words when we arrived were "If you ever get a chance, you must come to hear the organ". They had no idea how much I would have loved to hear the Gehry/Rosales/Glatter-Götz organ had a concert been available. Toyota's organ gift made me proud to own one of their cars. It is unfortunate that we missed Hector Olivera's organ recital by just over a week (coming up Sunday October 13, 2013). As with the San Francisco Davies Symphony Hall Ruffati, there are only four major organ recitals per year. In addition to Hector Olivera, only Ullrich Böhme, Ann Elise Smoot, and Paul Jacobs will be giving recitals at Disney Hall. http://www.laphil.com/tickets/series-detail/organ-recital. However, I did hear from a staff member that the organ will be used in Phantom of the Opera around Halloween time.

I can't comment on the sound of the organ obviously, but I can tell you that from our balcony seats we could hear the instruments in brilliant clarity seldom heard elsewhere. The program was a combination of percussion concerto (world premiere of Lieberson's Shing Kham featuring a marimba, drums and other percussion), Salieri's composition student Franz Schubert's "Tragic" Symphony No. 4, and Tchaikovsky's crowd pleasing Piano Concerto No. 1 in B-flat minor, Op. 23, featuring virtuoso pianist Yefim Bronfman who receive a standing ovation and graciously played an encore ignoring the inevitable exhaustion induced by the 'unplayable' Tchaikovsky concerto.

We don't hear the word 'sublime' bandied about too much these days. Perhaps it is because it is so hard to imagine what the word means in our hectic, horrific, often fear driven lives. But perhaps one could do worse than put on some comfortable clothes, dim the lights, or just close your eyes as I did while listening to the second movement of Schubert's 4th: http://youtu.be/nM6FlD7ctXQ

Sublime.