Automatic Workflow - Add bounce to iTunes and encode to MP3

Discussion of Digital Performer use, optimization, tips and techniques on MacOS.

Moderator: James Steele

Forum rules
This forum is for most discussion related to the use and optimization of Digital Performer [MacOS] and plug-ins as well as tips and techniques. It is NOT for troubleshooting technical issues, complaints, feature requests, or "Comparative DAW 101."
Post Reply
User avatar
Dan Worley
Posts: 2778
Joined: Fri Jan 15, 2010 2:03 pm
Primary DAW OS: MacOS
Location: Northern CA

Automatic Workflow - Add bounce to iTunes and encode to MP3

Post by Dan Worley »

Like many of you, for reference and evaluation purposes, I do a lot of one-off bounces for MP3s, CD burns and iDevice transfers. I use iTunes for burning CDs and encoding MP3s. One of the things I've wanted for a long time is a way to automate the importing and encoding of DP bounces into iTunes. Today I sat down and figured out how to do that with the third-party app
Hazel and Apple's Automator.

A few notes:

1.) This is just for one-offs where I'm not striving for technical or aural perfection.

2.) The example I'll be giving is of a virtual bounce, but this can just as well be used for a real-time bounce. You would just have Hazel watch the Audio Files folder instead of the Bounces folder, and you would have to add the command "-encode" to the end of the track name on which the real-time bounce was being recorded.

3. I work mostly in 44.1/24 and dither to 16-bit with Ozone on the virtual bounce. When I do a real-time bounce, I bounce the resulting 24-bit soundbite with Ozone's 16-bit dither.

4. I have used this with 48k projects, and the sample rate conversion that iTunes/Core Audio(?) makes upon import (if it's set to 44.1) sounds good enough (to me) for one-offs. Great time saver.

What this will do automatically: Once the bounce is complete, two copies of the mixfile will be made and the names will be changed to remove the "-encode" command. One copy will be imported directly into iTunes untouched as a wav or aif (whichever format was bounced). The other copy will be sent to a folder watched by a Folder Action. The Folder Action will encode the file to an MP3 or AAC using iTunes' last settings for those formats. Ten minutes later the second copy will be deleted from the watched folder, as there's no need to keep it.

You end up with the mixfile, a copy of the mixfile in iTunes, and an MP3 or AAC (or whatever format you want to encode).

A note: Hazel watches folders and shows folders in its interface. If all the folders are named the same thing, "Bounces" or "Audio Files," for example. Well, it's a pain. But DP is also a pain. Because if you change the name of those folders, or choose some other folder to bounce to, then after a quit and relaunch of DP, it always reverts back to one of those those folders (depending on which version you use), and you have to, once again, point it to the right place. What makes it a pain is just remembering to do that. It would be much easier to leave it set to the defaults, but I feel it's important to add the project's name to both folders-- "Hey Jude Bounces" and "Hey Jude Audio Files," for example. If you do that, it means you'll have to reset the bounce path after each time DP is relaunched.

Step-by-Step

1. On one of your Audio drives, create a new folder and name it, "All Bounces."

2. Open Automator and choose the Folder Action template.

Image

3. Find the "Import Audio Files" action and drag it into the Workflow panel on the right.

Image

4. Browse to and select the "All Bounces" folder. Also select the encoder you would like to use--MP3 or AAC.

Image

5. Save the workflow with the name "Move To iTunes and Encode."

We can now close Auotmater.

6. Open iTunes and add a library named "Auto Imports." Set the MP3 and/or AAC import settings to your liking. The Folder Action uses those settings even if they are not the active import format.

7. Open System Preferences and launch Hazel.

8. Click the + sign under the folder column and add the "All Bounces" folder.

Image

9. With the "All Bounces" folder selected, Click the + sign under the Rules column and match the settings in the screenshot below.

Image

10. Add one of your project's Bounce folders to the folder column. The folder I will be using is Phasing Bounces.

11. With that folder selected, add a rule. Match the settings in the screenshots below.

Image

Click on "Name" and then click on the contextual menu arrow. Ignore the check mark by No Change. That's a glitch. You want to go into "Replace text."

Image

Type in "-encode" (minus the quotes) in the Replace field.

Image

Click Done and Done and Okay.

We can now close Hazel.

I'm getting tired...

12. It's time to bounce. Yay!

When you bounce, make sure you're bouncing to the correct folder. You need to add "-encode" (without the quotes) to the end of the file name, with no spaces between it and the word it's after (just so you're not stuck with a superfluous space in the name). For example, "Hey Jude-encode". If you don't add -encode, nothing will happen after the bounce. That's to give you control and to keep the Rules and Actions from triggering whenever a file is added to the Bounce folder. The -encode command will be removed by Hazel.

iTunes will come to front when the encoding is complete.

Ten minutes later you'll see a little flicker or flash of the Finder. That's the file in the All Bounces folder being deleted. It seems that each time that watched folder is accessed it makes a little flicker. I suppose it's just some kind of an alert.

Whenever you need to use this for another project, just add the project's bounce folder to Hazel and drag the rule in from this one.

Good-night (or morning)!
Last edited by Dan Worley on Thu Apr 11, 2013 2:35 pm, edited 2 times in total.
DP10.13
User avatar
MIDI Life Crisis
Posts: 26279
Joined: Wed May 18, 2005 10:01 pm
Primary DAW OS: MacOS
Contact:

Re: Automatic Workflow - Add bounce to iTunes and encode to

Post by MIDI Life Crisis »

You can also just designate you iTunes music folder as your bounce destination from within DP.
2013 Mac Pro 2TB/32GB RAM

OSX 10.14.6; Track 16; DP 12; Finale 28

LinkTree (events & peformances)
Instagram
Facebook

MIDI LIFE CRISIS
User avatar
Dan Worley
Posts: 2778
Joined: Fri Jan 15, 2010 2:03 pm
Primary DAW OS: MacOS
Location: Northern CA

Re: Automatic Workflow - Add bounce to iTunes and encode to

Post by Dan Worley »

MIDI Life Crisis wrote:You can also just designate you iTunes music folder as your bounce destination from within DP.
Yeah, but there are numerous reasons (okay, three) why I don't like to do that. One, I don't like to work my system drive like that. Two, I like to have all my bounces in the project folder. And three, there's not enough typing involved in explaining that method. :lol:

Good tip, though.
DP10.13
vicxx
Posts: 1
Joined: Sun May 19, 2013 3:57 pm
Primary DAW OS: MacOS

Re: Automatic Workflow - Add bounce to iTunes and encode to

Post by vicxx »

We have the same idea Dan Worley! I do different way instead if designating my iTunes music folder as my bounce destination from within DP.
Post Reply