Keyboard Gremlins

September 19th, 2024
contra, jammer, tech
I had a great time playing Amherst last night with Cecilia, except for the keyboard gremlins. I just got a new keyboard (more on that later!) and it worked great when I tried it at home. At the dance, however, there were strange crackles. Even weirder, when I played the highest notes on the piano, I got a very small amount of phantom bass, maybe four octaves down. It got louder and quieter, as I turned the keyboard up and down or played at different volumes, and if I turned down the volume on the keyboard it went away. MIDI output, which is a key part of my rhythm stage setup, was totally clean.

I was really very confused. I thought maybe this keyboard didn't have good enough electrical shielding, and having my little stage computer velcroed to the keyboard might be causing it? In support of this theory, turning off the little computer did fix it. But moving the little computer to the floor, where it should not have been able to generate meaningful interference, did not. After trying a lot of things, I eventually realized that disconnecting the MIDI cable was enough to fix it.

This is one of the main differences between this keyboard and my previous one: it's USB MIDI instead of 5-pin MIDI. But I had used my system with USB MIDI before, with no issues. It was really frustrating, and I was baffled. I took a video:

This evening, I tried to reproduce it. The same setup as I had on stage did trigger the issue. Connecting it to my laptop, however, did not trigger the issue. So probably not a keyboard problem, and instead some thing my little stage computer is doing.

I thought maybe I was sending MIDI back out, which should never have previously mattered because I never used to connect the MIDI cable in the other direction. I started installing tshark to debug, when I realized the problem:

My little box is set up to do two things:

  • If it detects it is being used as a MIDI router, it routes MIDI and synthesizes audio. This is triggered by noticing that MIDI devices are connected.

  • If it detects, it is being used as a bass whistle, it interprets audio and generates bass. This is triggered by noticing certain soundcards being connected, ignoring both the built-in one and the one I use in MIDI routing mode.

In this case both of these conditions were met. I was using it as a MIDI router, but also the new keyboard presents itself to the computer, among other things, as a USB audio device suitable for bass whistling. When I played high notes on the keyboard they were being sent out as MIDI, but they were also being sent out as USB audio, which was going into my bass whistle logic. If the note was in the same range as my whistling, it would dutifully transpose it down four octaves and send it back out via the same device, the keyboard, and from there to the hall sound system on the keyboard channel. The crackles are something the whistle sometimes does when it is sufficiently confused about its input.

What makes this especially unfortunate is that I have completely moved on from ever using my little box for bass whistle. Instead, I have an arduino-based system, which I like a lot. The fix turned out to be just disabling the bass whistle code I should have removed a while ago. No more gremlins!

Referenced in: Switching to a 4GB SD

Comment via: facebook, lesswrong, mastodon

Recent posts on blogs I like:

Starting With Chords

A lot of people play fiddle. Basically nobody starts by learning chords before learning melodies. But that's actually how I learned. I started with chords. One of the nice things about learning to play violin this way is that you can go busking even…

via Anna Wise's Blog Posts November 15, 2024

Stuffies

I have some stuffies and I just have a bunny. Bunny is a rabbit. Woof is a seal. My favorite stuffie is bun bun. I play with my stuffies. Sometimes I jump up with them and I roll them. I can just throw them in the air when I want to play bthululubp wi…

via Nora Wise's Blog Posts November 15, 2024

You Can Buy A Malaria Net

2024 election takes

via Thing of Things November 6, 2024

more     (via openring)