Hands-free punch-and-roll with Adobe Audition on a Mac

Using a foot pedal and AppleScript to mimic the punch-and-roll technique missing from Adobe Audition

21st August 2016

Punch-and-roll is a technique voice actors use when recording on their own setups, to easily manage those moments when you fluff a line. When you hit a stumbling block, you hit a button, spool the track back a few seconds, let it play and then resume recording over the bit you want to discard.

The technique is native to some recording software, but sadly not Adobe Audition, which is the software I’ve used for the past 16 years or so. There are guides for how to achieve the effect on a PC, but on a Mac it’s a little more complex.

To compound the issue further, I wanted to be able to do this hands-free, via a foot pedal. That way I can hold the iPad or Kindle comfortably – there’s no room for a stand in my broom closet of a recording studio – and save time by stamping rather than taking my hands off the device, finding the right keys, then silently getting my hand back on the device in time for the roll forwards.

If you’d like to know more about the technique, there’s a lengthy discussion on YouTube:

I should mention that the system I’m outlining is a poor excuse for proper punch-and-roll, as some software that supports it natively will actually preserve both ends of the recording, so you can manage the cross-fade between the mistake and the retake. However, at least with this technique, I use markers in my audio so I can visually see where things need cleaning up. Also, I’m only working on a single track, whereas if I were to work in a session, I’d be able to work out something less destructive. But this is an early-stage approach.

What you need

  • a Mac running OSX (or MacOS)
  • A USB foot pedal that acts as a keyboard wedge
  • Adobe Audition CC 2015
  • The USB Overdrive app (it’s shareware and has a nag screen when you first come to use it post-boot)

“Keyboard wedge” is an old term for a piece of hardware that behaves like a keyboard. Barcode scanners are keyboard wedges; they read a barcode then mimic the typing of the code into the computer. A simple USB foot pedal – or switch – should map to keys on a standard keyboard. The one I bought, and linked above maps the three buttons to the A, B and C keys, but crucially the Mac – and the USB Overdrive software – are able to distinguish between the button on the pedal and the keypresses they’re mimicking. That’s important because I don’t want my script to run every time I hit a common letter on my keyboard!

USB Overdrive is software that lives in your System Preferences and maps hardware buttons – like gamepads and other controllers – to keystrokes, system events and other such things. Without the software, if I hit the left-hand button of the foot pedal, a letter A would be typed. With the software however, I can map the foot pedal’s buttons to system events like applications, other keystrokes or scripts (and it’s the latter that we want).

Configuring USB Overdrive

Screen Shot 2016-08-21 at 12.02.47

  1. Once you’ve installed the software, locate it in your System Preferences window.
  2. Select “Any Keyboard, Any Application” from the dropdown
  3. Hit the “Add a keyboard key” button
  4. Press the left-hand foot pedal. This will add “Key A” to the list on the left.
  5. Select it and from the right-hand dropdown select “Execute AppleScript”
  6. Copy the following script into the textbox:
tell application "Adobe Audition CC 2015"
	activate
	tell application "System Events"
		keystroke " "
		keystroke "j"
		delay 5
		keystroke "k"
		keystroke " "
	end tell
end tell
  1. Repeat step 3 to 5, hitting the middle button on the pedal in step 4
  2. Copy the following script into the textbox:
tell application "Adobe Audition CC 2015"
	activate
	tell application "System Events"
		keystroke "m"
                keystroke "a" using {shift down, command down}
		keystroke " " using {shift down}
	end tell
end tell
  1. Close USB Overdrive

Now, open Adobe Audition and hit the middle button on your foot pedal. It should start recording. After 5 seconds or so, hit the left-hand button on the pedal and you’ll hear Audition scrub through the last 5 seconds of audio. When you’re ready to punch back in, hit the middle button again and it’ll record from there.

Those scripts in detail

There are a few attempts at the solution above, which I used for a bit of base knowledge, but none of them quite works. Maybe it’s because the operating system has moved on since then, or Adobe changed their keyboard shortcuts. Either way, for now the stuff above is accurate.

The left-hand button

Hitting this button will pause recording, spool the audio back 5 seconds, then play them. It does this by performing the keyboard shortcuts you’d use to do the same in Audition (Space to pause, J to reverse, K to go forwards and space to resume playing).

The middle button

This mimics the pressing of the M key which creates a marker in your audio, so you can see where you’ve punched in for editing later (this is important, as there’s probably a bit of residual noise from the press of the pedal that you might want to remove). It then de-selects the part of the waveform it had selected (this is important because without this step, it’d stop recording after a couple of seconds because it only records over the mistake; it doesn’t continue on). It then resumes recording by performing the Shift+Space keyboard shortcut.

Whenever I need to pause and resume, I can just hit the middle button, but it’s important to remember not to hit this button while Audition is reversing, as you’ll confuse the app (remember this is a hack, and Audition doesn’t know what you’re trying to do, so it’ll probably end up selecting a bit of the audio you didn’t want, and then stop recording). Always make sure the audio is playing normally before you hit the middle button (you can always hit the left button again if you want to go further back).

The right-hand button

In Audition I just added C as another keyboard shortcut, so that it does the same thing as the M key (creates a marker in the audio). This is handy for marking chapters.

Early days

This is still slightly experimental at this point, but it’s already gone through a number of refinement steps. I’m hoping it’ll help until such time as Adobe decide to give some love to Audition again. Do try it yourself and if you have questions, find me on Twitter.

I’m available to hire

You’ll get a personal response from me,
and I won’t add you to a mailing list.