Home »

Convert 29.97fps Audio to 30fps

How to fix mismatched audio and video frame rates

January 19th, 2021 | Audio | , , , | Comments: 0

Choosing different frame rates for your audio recording versus your video recording is a really stupid mistake. I would never be so thoughtless, and you, dear reader, certainly would never do such a thing. But for the sake of argument, let’s pretend that hypothetically I happened to have recorded some audio at 29.97fps for a recent project, but the matching video was at shot at 30fps. With no possibility of a reshoot or overdub, I really needed to get the audio and video frame rates to match. Again, I would never make this mistake, but if I had, this is what I would do to fix my screw up.

The Fix for a Purely Hypothetical Scenario

  1. Record some audio at the wrong FPS. Way to go!
  2. Fire up the application Izotope RX. I used version 7 for this example and cannot recommend it enough. This is not an advertisement. I’m simply a fan of this software suite. It has saved and improved countless recordings for me.
  3. Open the Preferences for RX and select the Misc tab.
  4. Set the “Time scale frame rate” to your destination frame rate (the frame rate of your video).
  5. Click OK to close Preferences.
  6. Open your audio with RX.
  7. Make any edits you desire.
  8. Save or Export your audio.
  9. Import your audio with the corrected frame rate into your video editing software and time align it with your video.
  10. Wipe your brow and breathe a sigh of relief.

screenshot of an EHX forum post

Let me know if this worked for your friend or co-worker, because, again, like me, you would never make this mistake.

Soapbox

I’m posting this article because when I try searching for solutions to this problem the typical results are mostly professionals on forums with their stance: “THE RIGHT WAY TO DO IT IS TO RECORD IT RIGHT THE FIRST TIME, NOOB.” Yeah? Well you know what? No.

No Comments >
Home »

Export MIDI from GarageBand

GarageBand likes to keep MIDI data hidden and inaccessible. Here’s how to extract it anyway.

GarageBand icon with MIDI cable superimposed

Apple’s GarageBand makes it relatively easy to sketch out an audio demo, but it does have some severe, intentionally-crippled limitations.

One of the biggest drawbacks is the lack of built-in support for exporting MIDI data.

Performances are stored inside the session file in some sort of MIDI fashion, but Apple doesn’t give users an easy way to get that information out. Major bummer. *looks west towards Cupertino, squints eyes, shakes fist in air, mutters under breath*

However, a nice guy named Lars Kobbe has put together a workaround/hack that extracts MIDI data from the reluctant clutches of GarageBand. You can download his GB2MIDI Apple droplet script from his site: MIDI-Export in Apples Garageband. Here’s the direct download: GB2MIDI.ZIP If that link doesn’t work, I’m providing the file hosted on my site here: GB2MIDI.ZIP

The article is in German, but instructions in English are found near the bottom of the article (just before the comments section). Getting the MIDI data out involves several steps. Here’s my summary of the process.

How to Extract MIDI Data from GarageBand

  1. Join (Command-J) regions of a track you want to export
  2. Convert that region to a loop via Edit > Add to Loop Library (NOTE: In GarageBand 10.1.0 this menu item is now located under File > Add Region to Loop Library )
  3. Find the newly created loop file (an .AIF with MIDI data hidden inside it) in the folder: Macintosh HD (or whatever your system drive is named)/Users/(your home folder)/Library/Audio/Apple Loops/User Loops/SingleFiles/
    or the abbreviated: ~/Library/Audio/Apple Loops/User Loops/SingleFiles/
  4. Drop that .AIF file on Lars’ GB2MIDI droplet
  5. Grab the freshly extracted .MID file, which should appear in the same folder where the .AIF loop was. If not, see the comment section below.
  6. Import the .MID file into a respectable DAW (basically almost anything other than GarageBand).
  7. Make next hit record.

That last step is optional, but I say go for it. 😉 Let me know if this helped you.

Locating The Files

UPDATE 2014-08-10

If you’re having trouble locating the loop file, it may be because your Library and/or Users folders are hidden, as later OS X versions have been wont to do.

To unhide the Library folder, open the Terminal application, which is found in the /Applications/Utilities/ folder. At the prompt type the following:
chflags nohidden ~/Library/

To unhide the Users folder, type this into Terminal:
sudo chflags nohidden /Users
Then enter your administrator password.

Look for the newly unhidden Users folder in your hard drive’s root folder. It should look something like this:

screenshot highlighting location of User folder

After running “sudo chflags no hidden /Users” you should see the Users folder (highlighted in red in the image above) appear under the root folder of your hard drive (often named “Macintosh HD” by default).

For more on the hidden Users folder issue check this article from The Mac Observer. It seems the problem was introduced with iTunes 11.2 when Find My Mac is enabled. Another blog suggests that updating to iTunes 11.2.1 fixes the issue.

GarageBand Alternatives

UPDATE 2016-02-04

This GarageBand MIDI article has regularly been one of the most popular posts on my site. That means there are a lot of people using GarageBand and discovering its unfortunate MIDI limitations. The best bit of advice I can give to any musician or audio engineer still using GarageBand is STOP. I know that may sound harsh, but GarageBand is intentionally made to be consumer-grade software. If you’re serious about recording, take the time to investigate other DAWs. Find an alternative solution. There are many to choose from and nearly every one of them is less limited than GarageBand. They range from super affordable to “professionally priced.” Here’s a list to get you started. (Some links are affiliated.)

Pick any of the DAWs above (or find another — this list is by no means exhaustive) and you’ll find it much easier to work with MIDI. Let me know what software you chose.

64-bit Support

UPDATE 2020-05-19

If you are on OS X 10.15 Catalina or greater on your Mac, then you can only run 64-bit apps. As of the time of this update (May 2020) the app is not 64-bit compatible. This is a known issue. I am not the developer of GB2MIDI, but thankfully the developer Lars Kobbe maintains his app on Github. Here is the link to an open GitHub request for updating GB2MIDI to 64-bit.

Online Version

UPDATE 2024-10-09

Can’t get the software to work? Use the online version instead. https://larkob.github.io/GB2MIDI/index.html

114 Comments >
Home »

FIX: Pro Tools “You do not have appropriate access privileges (-5000)”

Oh, yes, you do!

A friend gave me a Pro Tools session on a thumb drive. I copied the entire session folder to my external hard drive and opened it. After changing the routing to work on my system, everything played back fine. Then I tried to clean up the session.

Every time I attempted to cross fade or consolidate an audio or MIDI region, I would get an error like this:

screen shot of a Pro Tools error dialog

“Could not complete your request because You do not have appropriate access privileges (-5000)…” Why do you build me up, Buttercup? Capitalize ‘You,’ then award me negative five thousand points…pssh.

The Fix

Seeing the “access privileges” bit, I figured the problem was probably an operating system issue, not a Pro Tools thing. The session files were indeed set to ‘Read Only,’ which is why I could play back the session, but couldn’t do anything to the regions or fades.

Here’s how to fix the issue.

  1. Close the session. You shouldn’t have your Pro Tools session open while changing its permissions.
  2. Select the session folder in Finder. Make sure the session folder is highlighted, not the files inside the session.
  3. Get Info. Hit Command-I (capital i) or from the Finder menu select File > Get Info. An Info window will pop open.
  4. Change all privileges to ‘Read & Write.’ At the very bottom of the Info window is a box with a list of users and their privileges. They should all be set to ‘Read & Write.’ You may be asked for user password to unlock and verify the change.
    screen shot of Sharing & Permissions file metadata

    Not listed are NSA permissions, which by default are set to ‘Collect All,’ but, like, totally isn’t a violation of your privacy.

  5. Close the Info window. After making the privilege changes, try reopening your Pro Tools session and editing some regions. If you can, this fix worked for you.

Why does this error occur?

Many common problems that Macs develop are related to file permissions errors. Files are given various permissions to maintain privacy between computer users and prevent users from easily messing up the operating system.

Permissions can get wrecked when disks are removed without being ejected and during unexpected shut downs. That’s why it is important always to try to eject disks and shut down your Mac properly.

Permissions can also get messed up during copying and moving of files or while installing software. That appears to be why I experienced this error. During the copying of the files, the permissions were never changed to grant me access. Simple problem, simple fix.

UPDATE 2013-10-30

After encountering this problem on several other sessions, I tried another method and found a better (and probably more proper) solution. Try this in addition to or instead of the above fix:

In the problematic Pro Tools session, pop open the Disk Allocation dialog (Setup > Disk Allocation…).

screenshot of the Setup menubar item in Pro Tools 9

When the dialog window opens, you’ll be presented with a list of all the tracks in your session and the location where that track should be located. If you’re having problems creating fade files and getting the sort of error that brought you to this page, then you’ll probably see something like the picture below.

screenshot of the Disk Allocation dialog window in Pro Tools 9

As you can see, not all of the tracks had their disk allocation pointing to the right place. To fix them, select all of the incorrectly allocated tracks, then click and hold the little up/down arrows on the right hand side. A little window will appear and ask you to select a folder. In my case, the session file was looking on my internal system drive instead of my external audio drive. Choose the correct location of your session files and click OK. That should solve the issue. Let me know if this worked for you.

37 Comments >
Home »

FIX: Sibelius “There are fonts missing.”

Those fonts probably aren’t missing.

Error dialog windows can be really frustrating. They pop up and demand your attention, when you just want to get to work on something. Sibelius 7 has thrown this missing font error for me a few times:

Sibelius 7 error dialog window

There are fonts missing. Sibelius 7 will still work without these fonts, but some scores may not display properly. The missing fonts are: Reprise Std, Reprise Special Std, Reprise Title Std, Reprise Stamp Std, Reprise Rehearsal Std, Reprise Script Std, Reprise Text Std

The Fix

Most likely the fonts aren’t missing, but simply disabled, which makes the fix really easy. Here’s how to re-enable the “missing” fonts.

First, open the application Font Book. This native OS X font manager should be located in your Mac’s Applications folder.

Second, search for the missing fonts. Font Book has a search field in the upright corner. Type in the names of the missing fonts.

Enabled fonts are shown in black text. Disabled fonts are grayed out and are labeled “Off” on the right hand side.

screen shot of Font Book OS X application

In my case, all of my “missing” fonts were part of the Reprise family, I typed in “reprise” and all of the fonts in question appeared in the filtered list.

Third, enable the fonts. Select the fonts you want to re-enable. Then hit Shift-Command-D. You can also enable fonts by using the menu bar by selecting Edit > Enable Fonts. The fonts should turn black and the “Off” label will disappear.

screen shot of Font Book drop down menu for enabling fonts

I see you checking out my wallpaper.

Lastly, close Font Book and reopen Sibelius. If you enabled all the “missing” fonts, you should be good to go. The error shouldn’t pop up this time, however, it may happen again in the future.

Why does this error occur?

I’ve had to run the fix a couple times now. I don’t know why this error seems to reoccur. If you know why those Reprise fonts sometimes disable themselves, please send me an email or comment below.

Being a graphic artist as well, I know that fonts are notorious for becoming corrupt, conflicting with other fonts, and generally being a hassle to manage. You might think being a musician is a good way to get away from graphic design problems, but unfortunately software like Sibelius relies on fonts to display notation. At least the fix for this error is easy to do and only takes a minute.

UPDATE 2013-10-30

The fix I posted above seemed to only work for a while. Occasionally, I would have to run the fix again, which is to say, it wasn’t much of a fix. So, I dug in further and found a real, permanent fix.

The issue was with duplicate fonts. The strange bit was that it wasn’t duplicates of the Reprise family, which was the family of fonts that Sibelius said were missing. Instead it was duplicates of various other fonts that Sibelius uses.

By referencing this forum post and this forum post, I figured out which fonts Sibelius requires and, thus, which ones might be causing problems. Then, for clarity’s sake, in the Font Book application I created a new Collection (File > New Collection or ⌘N). After that I did a search for duplicate fonts (Edit > Look for Enabled Duplicates… or ⌘L) and looked in the Sibelius font collection for any that were flagged. Sure enough, about a third of the fonts that Sibelius uses had duplicate copies. One by one, I “resolved” (deleted) the duplicate fonts, then rebooted. Problem solved.

7 Comments >
Home »

The Inception of Keyboard Instruments

Is every new technological development just a deeper dream state?

Sound is basically waves of pressure changes. The exact definition is more complicated, but essentially we perceive sound because our ears decode the frequencies of oscillating movement of particles in gases, liquids, and solids. There are many ways to generate sound waves, such as plucking guitar strings so they vibrate, or hitting a membrane like a drum head.

Woodward Avenue Presbyterian Church pipe organ. Photo: Wikimedia Commons

Pipe Organs

A long time ago, people discovered that sound could also be made by blowing air through a pipe with a opening on the side, thus inventing the whistle. They also found that a range of tones could be produced by assembling a group of whistles with varying lengths and diameters. Then they attached a controller (called a keyboard or manual) so that one person could “play” this collection of pipes. Their invention is what we now know as the pipe organ.

At the start, pipe organs had only one timbre – a basic whistle sound, but over the next several hundred years, smart inventors and musicians made improvements in the technology. They found ways to emulate lots of other instruments, like brass, woodwinds, percussion, and even human voices. Their hope was to fully replicate those real life instruments.

a pipe organ console

Organ console at the United States Naval Academy chapel. Photo: Wikimedia Commons

As features were added, pipe organs evolved into enormous, elaborate, and expensive installations, increasingly more complicated to play and maintain. While these pipe organs were truly amazing inventions, capable of creating complex and beautiful music, they were actually quite poor emulations of the real life instruments they were intended to replace.

Still, we humans are adaptable and we fell in love with the sound of pipe organs, learning to appreciate the instrument for what it was, not what it wasn’t.

Electric Organs

a Wurlitzer organ

Wurlitzer 4100 BW Electronic Spinet Organ (1959-1963). Photo: Wikimedia Commons

Eventually, we discovered electricity and began to harness its power to create electromechanical instruments. Creative minds developed things like vacuum tubes, tone wheels, and transistors. Companies like Hammond and Wurlitzer implemented tone wheels to generate sounds approximating a pipe organ.

However, similar to the pipe organ, this new technology was a brilliant invention that poorly emulated its predecessor. These new organs were affordable alternatives to pipe organs, so in spite of being a bad imitation they became popular with smaller houses of worship. Traveling musicians took advantage of the portability of these smaller organs too, making their sound common in popular jazz, blues, and rock music.

Once again, our ears grew accustomed to the sound of the imitation, developing an affinity for the quirks of its particular aesthetic.

Keyboards

keyboard on table

Yamaha DX7. Photo: Wikimedia Commons

As the march of progress continued, electronics became smaller and more powerful. Engineers found ways to replace the delicate mechanical parts in electric organs, which were subject to wear and tear, with completely electronic sound generators. Lightweight, all electronic keyboard synthesizers used a variety of methods in attempts to replicate the sounds of their heavier electromechanical ancestors.

But just like before, history would repeat itself. The new emulators were incredible technological achievements that fell short of their goal of replacing the old technology. Though they lacked the ability to fully replicate the previous generation, they possessed attributes that eventually found an audience of connoisseurs that valued them not just in spite of their glitches, but because of their unique properties.

Software

Today, we synthesize the sounds of the old technologies with computers and keyboard MIDI controllers. While initially computers could only crudely imitate the old masters, DSP technology is progressing rapidly. CPU speed and available RAM are no longer the main limitation factors. As the computational power ceiling continues to rise higher and higher, software programmers are able to provide increasingly nuanced emulators that can easily fool the listener into believing that the software is actually the real thing.

The Inception

official Inception film poster

Inception poster from IMDB.com

At this point, if you’re still reading, then you probably can see how this history correlates to the plot of the film Inception. Each new technological breakthrough has been like a deeper dream state, where the simulation moves further and further away from reality.

Real instruments
→ Pipe organs
→ → Electric organs
→ → → Keyboards
→ → → → Software

However, just like in the film, while each level becomes more strange and abstract, the deepest level — Limbo — actually approaches something most like the real thing or maybe even better. Today’s emulators delve into such detail and are able to control even the most minute aspects of the sound, that it won’t be long before they easily eclipse the believability of the old technology. In fact, we may already be there.

A few years ago (when the emulators weren’t half as good as they are now), a friend of mine (who has very good ears) dropped by the studio to hear a song I was working on. When the B3 organ kicked in during the chorus, he declared, “That organ sounds great. There’s nothing like the real thing!” Muwhahaha! The smoke and mirrors of software emulation had worked.

Inspiration for This Article

This idea of how keyboard technology relates to Inception came about through a discussion with my friend Hoss. Over the weekend we were working on the keyboard parts for our band Rudisill’s next album Take To Flight. In between takes of an organ part we marveled at the realization that the software he was using was an emulation of an emulation of an emulation — a truly strange scenario.

Follow Rudisill to hear about the new album when it is released later.

No Comments >
Home »

FIX: Pro Tools could not set sample rate to specified value

After upgrading to the newly released Pro Tools 9, I couldn’t open sessions or create new ones. I got this error: “Could not complete the Open Session… command because Pro Tools could not set sample rate to specified value..” I hunted around on the web and various forums, but couldn’t find a solution that fit. […]

Pro Tools error

After upgrading to the newly released Pro Tools 9, I couldn’t open sessions or create new ones. I got this error: “Could not complete the Open Session… command because Pro Tools could not set sample rate to specified value..” I hunted around on the web and various forums, but couldn’t find a solution that fit. I found several items relating to Windows and Pro Tools 8, but nothing for a Mac running Pro Tools 9. After messing around a bit I figured out the problem was with my playback engine. Here’s how I solved it. Let me know if it works for you too.

Open the Playback Engine dialog under the Setup menu item.

From the menu bar select Setup > Playback Engine… to open the Playback Engine dialog window.

Playback Engine menu item

The problem is with the Pro Tools Aggregate I/O.

By default, my current engine was set to “Pro Tools Aggregate I/O.” It’s odd that this Pro Tools would leave it that way after an installation since AVID states that it is not supported in OS X.

Select another engine

Select your current playback engine.

The fix is easy. Simply select the right playback engine. Your options may differ based on your setup.

Select your current playback engine

In my case, I usually would edit with my Mbox 2 Micro, but since Pro Tools 9 gives us so many more options for hardware compatibility, I selected Built-in Output. I was able to edit some vocal takes using my Macbook Pro’s speakers instead of pulling out my headphones. Nice!

32 Comments >