Howard Moscovitz and Bill Fox asked if I’d post something about getting started with JamKazam, software that supports group jams over the Internet. I’ve rattled on about it elsewhere in this blog, but I thought it would be useful to put all the essentials in one place

The first question people ask — especially if they know anything about the Internet — is, “How can this thing possibly work? Given the limits imposed by the speed of light, you can’t possibly overcome the latency in the network and get any kind of synchronization.”  If the speed of transmission over the Internet were the only thing involved, that would be correct. Or at least it would be correct if you were trying to do Berlin-school heavily sequenced stuff, like putting each member of Kraftwerk in a different city thousands of miles apart.  

But, as it turns out, psychoacoustics buys us a little time, and if you reduce latency in every part of the system as much as you possibly can, you can actually pull this off, at least within the continental United States.   As it turns out, JK (as we’ll call it from here on in) insists on doing all the shaving it possibly can. If you’re interested in a thorough explanation of how human perception and network latency-shaving make all this possible, I suggest you read both the Wikipedia article on networked music performance, and Alexander Carot’s thesis, here: http://www.carot.de/Docs/dissertation_AC.pdf 

Bottom line: it works. I’m in Ithaca, NY; I routinely collaborate with Charles Shriner in Indianapolis, with Karl Fury in Princeton, and with Jim Spitznagel up in Rochester. We’ve produced albums that way.  There is a price for all of this, of course: JK achieves minimum latency by requiring a fairly speedy Internet connection end to end, and by taking over basically every aspect of audio routing in your system.

What you need

  • A Windows or OS/X computer. Sadly, there is no version of JK for Linux, nor will it run in an emulator like WINE or in a virtual machine provided by something like VirtualBox.  At least not for me.
  • The JK software, downloadable from https://www.jamkazam.com/
  • A hardline ethernet connection between your music rig and your cable modem or other in-house access point.   JK does not like to run over WiFi. The faster you can make that connection, the better.
  • An audio-to-digital interface with minimal internal latency.  People use different ones for different reasons. I’ve used both Focusrite Scarlett and MOTU Microbook interfaces.  The MOTU is about 2 ms faster. I suppose you could equally well use the USB takeoff from a modern mix board, or anything else that will act like an interface.  Whatever you use — and I can’t say this often enough, or loudly enough — you need to understand your interface thoroughly.
  • A video camera that works with your system, used to wave incoherently at your bandmates and display informative scribbles when nobody can hear anything.  Any old webcam will do.
  • A microphone that you’ll use to chat with your bandmates (see notes on configuring this below)
  • Patience and persistence.

Setting up JK

JK does a pretty good job of walking you through the setup, starting with your audio interface, and I won’t try to detail the whole process here.  They have videos, directly accessible during the setup process, that will help you. I do have two “pro tips”, though.  

First, KNOW YOUR INTERFACE.  You need to thoroughly understand how physical inputs are labeled, how they will appear in any internal software mixer that the interface uses, and how they will be named by the audio configuration and routing software in the host system that is running JK.  Experience has taught me that it’s well worth taking the half-hour needed to make a little spreadsheet that describes how physical inputs and outputs map to the nomenclature used in the interface’s configuration software or software mixer, and to the nomenclature that appears in the host system’s audio routing setup (usually something informative like “input 1, input 2, input 3”, etc.)  Doing this before you start will end up saving you a lot of time (and not just with JK). Sometimes (as with Focusrite interfaces or iConnectivity products) they’ve done part of the work for you in their documentation; sometimes (as with MOTU), they’ve provided minimal documentation and bitched things up with a confusing interface on their software mixer.

You also need to understand your options for monitoring input signals.   Most modern interfaces offer some kind of “direct” monitoring — a way to listen to incoming signal while incurring minimal latency through the interface itself.  Focusrite products helpfully provide a switch — either in hardware or software — that takes then in and out of “direct monitoring” mode. MOTU does it in some way I have to confess that I don’t fully understand and have only figured out through trial and error.   The bottom line is that you need to be able to switch direct monitoring off, and you need to make sure that the JK signal is reaching your headphones, or whatever you use to monitor the session, via one pathway only (more on that when we talk about level-setting later).

Final things it’s helpful to know:  how to set the sample rate on your interface and in your host system, and how to set the sample buffer size on the host system (generally expressed with numbers like 128, 256, 512, and 1024).  Buffer size trades off signal quality with latency — small buffers tend to snap, crackle, and pop; larger ones incur more latency. A generally informative article from SoundOnSound is here.

Setup

JK walks you through the setup process.  They’ll first ask you to run a network test; that determines whether or not your networking setup is running fast enough to please JK.  Generally, as I said earlier, WiFi won’t.  

Next, they’ll guide you through setting up your audio interface — this is when you’ll need the map you made, just to understand what your options are and what you’re doing.  It used to be that you needed to match your interface to a fixed sample rate of 48K that JK uses internally, just to remove the delay incurred by resampling. It now appears that JK matches the interface more or less automatically.

The setup process involves assigning inputs from your interface to JK “tracks”.  I assign two inputs to a stereo track labelled “Computer”. During this process, you’ll be asked how you want to chat with your bandmates.  JK incorporates a separate “chat channel”, and the setup allows you to assign one of your interface inputs to it as a “chat mic”. I strongly suggest that you NOT do this, but instead set up your chat mic as a separate music track labeled as “Vocal” or whatever.  I’ve found that taking that approach makes it easier to mute and un-mute the mic during sessions, and also helps make sense of level-setting when playing with others. Using the “chat mic” facility seems to make routing much harder to understand, for reasons that would take far too long to describe here.

Once you’ve done all the configuration, go into JK’s “create session” pane and open a “quick start solo session”.  This is the best way to test what you’ve done. 

Other JK stuff

I could write 600 more pages about how to deal with setting up sessions, managing recordings, etc.  That I will leave to JK’s pretty-good documentation. That leaves only two difficult topics.

Bowing to the inevitable

Once you’ve configured JK, you’ve essentially handed all control over audio routing to JK.  It no longer matters what your interface is telling you. It no longer matters what your host configuration is telling you.  JK has inserted its tentacles into every aspect of both, trying to minimize latency, and you will only drive yourself crazy if you try to “fix” anything. Trust me, I know this from bitter experience.  The one thing you MUST do is ensure that your monitoring setup is getting signal ONLY from JK, as mentioned earlier. This may require some experimentation if (as with MOTU) the direct-monitoring signal path is not clearly identified.  If you DON’T do this, you’ll get the sum of your input signal and what JK is putting out, which will make you sound a lot louder than you really are. And that brings me to the final problem.

Setting levels and monitoring

You’re going to need to spend time setting levels with your bandmates, especially for live performance.  There’s no cutting corners on this, and the main reason is that EVERY SINGLE METER AND MONITORING LEVEL SETTING DEVICE IN JK IS EITHER USELESS BECAUSE IT LACKS RESOLUTION OR IS ACTIVELY LYING TO YOU.   In theory, the first person into the session has control of a “session mix”; I’m not sure what that does, because I’ve never been able to get it to affect much of anything in any way that is useful. The horizontal meters that appear in the session window have so little resolution that they’re basically hopeless.  And everybody has control over their own local monitoring levels, so they’re probably not hearing what you are. Experience provides a few hints to help you get this right, but it WILL take some messing with. We generally allow 45 minutes before a live-stream concert just to make sure everything’s working right and we can get some kind of balance. Here’s a kind of checklist/heuristic:

  • Everybody should identify a “master gain” they can use to control the final stereo send from their rig into JK, and use ONLY that to make adjustments during sound check. Any internal balancing within your rig, say for dealing with a particularly ‘hot’ instrument, needs to be done ahead of time.
  • Generally, the horizontal meters in the session window are useless, but it does actually help to use a “solo session” to preset gains so that “average” signal is showing two green bars and loud signals are not clipping.
  • Balancing is done the way you’d do it in any sound check — by listening to average and extreme signal levels from one player at a time, listening carefully for clipping  or distortion, and then playing together a bit to figure out if anyone’s overly hot. The trick here is figuring out WHERE you’re going to listen. For streamcasts via electro-music.com, we send signal to a test port and then listen to it as it comes back to us over the Internet.  There’s significant lag — on the order of 30 seconds — but using that approach we can be sure that we hear what the audience is going to hear. While that’s going on, whoever is operating the “send” to the stream is the mix engineer and shot-caller — what they say, goes. 

Sending to a streaming service 

You’ll be sending your work out to a streaming setup of some sort, either with or without visuals.  What I describe here can be done either with OBS, or with something designed to send to an icecast or shoutcast server like electro-music.com.   The bottom line is that you’re going to need a second computer to do that, because JK takes control of audio routing in ways that make it practically impossible to route JK output into anything else without ending up in an insane asylum (at least on OS/X, whose audio routing is horribly opaque anyway).   I’m not saying that it’s impossible to get it to work — I will happily learn from anyone who can get it to operate. I’m saying that I’ve spent hours trying without much success. In the end, what I’ve ended up doing is sending analog signal from the source I use to monitor the JK session via a USB interface into a second computer that’s sending out to the stream.   If I’m using a Scarlett interface that has two headphone outs, I’ll just use one for my phones and one to send to the other computer. If I’m not, I have a small headphone splitter/amplifier that I can use to split the signal. It’s a lash-up, but it avoids interference from JK, and guarantees that I hear what the audience hears.

That’s all for now.  Questions welcome. There’s more on this scattered through this blog , especially herehere, and  here.

Questions welcome, of course.

Tagged With:

6 thoughts on “JamKazam again.

  1. Well done Tom!
    Is Jk perfect? NO. We’ve had issues, a dropped session, power failure during a session that wiped all data, distortion due to inaccurate meters, etc. But if you spend the time to really familiarize yourself with it, that pays off. Jk will record the audio from your session, be sure to turn on the record function, I’ve missed doing that. You need to save the files at the end of the session and leave your computer running Jk for a while after the session as it’s uploading the files to them. Unless you want the general public to join your sessions or have access to your recordings be sure to turn off the “public” setting as this seems to be a default in the software. Jk is supposed to allow streaming of your sessions audio and video to youtube or Facebook. I’m still trying to get this to work. Better tech minds may be needed for this.

    1. Karl, are you using a separate computer for your guitar effects? It seems that a second – or third – computer would be required for anyone using software-based instruments… one for JK, one for your soft-synths, and (for the host) one from which to stream the audio.

      Adding video of all of the performers to the stream would seem to be too bandwidth-intensive to be practical, short of mirroring the computer monitor’s output of the JK interface to the streaming computer and outputting/streaming THAT. (Just guessing here; I’ve no experience with JK… asking for a friend!😉)

      1. Ken, I think that’s substantially right — you need a second computer for streaming, regardless, because of JK’s iron grip on the audio routing, but also because of processor needs for video in particular. Couple of things about that: JK now incorporates features for video streaming via YouTube and FB Live. We haven’t tried them. I imagine they take whatever is coming from the band’s individual video cams and send it out; I doubt whether there’s any auto-switching, but there might be. That’s on my list of stuff to try and I know it’s on Karl’s. Second, I’ve not yet tried running OBS from a second computer but it’s the obvious next step. I also wonder if it’s possible to fool JK into using ANY rtp-based video streaming host — it kinda looks like it ought to be, since it uses RTP to talk to YouTube, but who knows.

    2. Since Karl opened the door for this, I’ll just say that JK gives you a number of recordings — each individual track configured by each band member, and a so-called “stream mix” that seems to be some kind of AI-driven auto-mix thing. It’s actually not bad, but I prefer to import all the tracks into something like Ardour and gussy them up a little. For one thing, the stereo space on the stream mix seems really limited.

  2. Great info Tom. Bold, underline, italic, caps: ” you need to understand your interface thoroughly”

    We can not stress that enough, regardless of where you are going to stream. Each interface can have numerous layers and drastically different capabilities. Will be in touch on some issues we’re seeing with the Focusrite interfaces.

  3. Thanks for the writeup. I’ve been using JK only for a few weeks, and I’ve had some fun with it (You can jam with folks in Montreal from Pittsburgh? Wow!) but this gives me a better picture of things I can try to make the experience even better.

Comments are closed.

X