{"id":477,"date":"2005-10-15T16:26:00","date_gmt":"2005-10-15T23:26:00","guid":{"rendered":"http:\/\/www.dreness.com\/blog\/?p=477"},"modified":"2019-12-07T17:15:56","modified_gmt":"2019-12-08T00:15:56","slug":"all-together-now","status":"publish","type":"post","link":"https:\/\/dreness.com\/blog\/archives\/477","title":{"rendered":"All together now&#8230;"},"content":{"rendered":"<p>Apple&#8217;s iPods are still broken for live or classical music, and concept albums. The problem is that the iPod can&#8217;t deal with tracks that are supposed to have no gap between them (Dark Side of the Moon, Sgt. Pepper&#8217;s Lonely Hearts Club, pretty much any live recording&#8230;). This is a well <a href=\"http:\/\/www.petitiononline.com\/\">documented<\/a> <a href=\"https:\/\/www.google.com\/search?client=safari&amp;rls=en&amp;q=iPod+gapless&amp;ie=UTF-8&amp;oe=UTF-8&amp;gws_rd=ssl\">problem<\/a>.<\/p>\n<p>The best solution until recently is to rip all the tracks from the CD into a single file. You get no unexpected track gaps this way, but you also get no individual track access or track info.<\/p>\n<p>With the advent of audio books and podcasts, Apple has released a little app called Chapter Tool that lets you create an AAC file with chapter markers. This way, you preserve individual track names and info, and the ability to go to a specific track.<\/p>\n<p>The trouble is that using Chapter Tool is kind of a pita. I mean, who wants to hand-write an XML file with track names and durations? Blegh. Sounds like a great task for an enterprising AppleScript developer.<\/p>\n<p>Enger Doug Adams, of <a href=\"https:\/\/dougscripts.com\/\">dougscripts.com<\/a>. He&#8217;s got an awesome little script called <a href=\"https:\/\/dougscripts.com\/itunes\/scripts\/ss.php?sp=jointogether\">Join Together<\/a> that does all the heavy lifting. Select a bunch of tracks in iTunes and invoke the script, and you&#8217;ll end up with a single AAC file that includes all the tracks and chapter markers.<\/p>\n<p>There are a couple caveats. First of all, be sure to start with tracks in a lossless format. I used Apple Lossless, but I imagine that AIFF would work also (though I didn&#8217;t try). One reason for this is that mp3 uses a fixed frame size, and so will almost always leave empty space at the end of the last frame. Modern mp3 encoders and decoders can <a href=\"https:\/\/lame.sourceforge.io\/tech-FAQ.txt\">compensate for this<\/a> to some degree  (iPod does not, and iTunes does it poorly in my opinion).<\/p>\n<p>The second caveat is that even though you end up with a chapterized file, it&#8217;s still one large file. This means that random access to the tracks in the file is not possible in party shuffle or &#8216;regular old shuffle&#8217; mode. It is trivial to manually play the track and then jump to the desired chapter using the chapter menu that appears when playing chapterized tracks:<br \/>\n<center><br \/>\n<img decoding=\"async\" src=\"https:\/\/dreness.com\/bits\/lj\/chapter_menu.png\"><br \/>\n<\/center><br \/>\nIn order to see and hear the difference this makes, I&#8217;ve compiled some screenshots and audio samples.<\/p>\n<p><!--more click it good--><br \/>\nHere is a <a href=\"https:\/\/dreness.com\/bits\/lj\/gapless_test.mp3\">short demo<\/a> of two different track gaps, in three different circumstances. For each segment, details are noted below. This demo file is MP3 192.<\/p>\n<ol>\n<li> Tush-Tush-Tush &#8211;> Stinkfoot, joined AAC tracks (AAC 192)<\/li>\n<li>Tush-Tush-Tush &#8211;> Stinkfoot, standard individual tracks (AAC 192)<\/li>\n<li> Tush-Tush-Tush &#8211;> Stinkfoot, joined Apple Lossless tracks (ALAC)<\/li>\n<li>Stinkfoot &#8211;> Inca Roads,  joined AAC tracks (AAC 192)<\/li>\n<li>Stinkfoot &#8211;> Inca Roads, standard individual tracks (AAC 192)<\/li>\n<li>Stinkfoot &#8211;> Inca Roads, joined Apple Lossless tracks (ALAC)<\/li>\n<\/ol>\n<p>Here are some screenshots of audio I recorded straight out of my iPod. The portion of the waveform shown is right at the track boundry (between &#8220;Stinkfoot&#8221; and &#8220;Inca Roads&#8221;). The visible difference between the track gaps is&#8230; well.. visible.<\/p>\n<p>The first one is a recording of AAC tracks joined and chatperized. Here, we see a small amount of space, but it&#8217;s somewhat easy to ignore in the audio. I have read that AAC as a format does support gapless track boundaries, but apparently the iTunes encoder has dropped the ball, as there is definitely a small gap of about 2,267 samples:<br \/>\n<img decoding=\"async\" src=\"https:\/\/dreness.com\/bits\/lj\/chapterized_AAC.png\"><\/p>\n<p>Playback of individual AAC tracks on the iPod. Gigantic, gaping, humungous hole of about 28,340 samples. UGH.<br \/>\n<img decoding=\"async\" src=\"https:\/\/dreness.com\/bits\/lj\/not_chapterized.png\"><\/p>\n<p>Playback of Apple Lossless tracks, joined and chapterized. Just like Jebus intended.<br \/>\n<img decoding=\"async\" src=\"https:\/\/dreness.com\/bits\/lj\/chapterized_ALAC.png\"><\/p>\n<p>Thanks Doug! This has been bugging me for a long time, and now there&#8217;s a solution. All I gotta do is re-rip my live discs as Apple Lossless and run the Join Together script on them.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Apple&#8217;s iPods are still broken for live or classical music, and concept albums. The problem is that the iPod can&#8217;t deal with tracks that are supposed to have no gap between them (Dark Side of the Moon, Sgt. Pepper&#8217;s Lonely &hellip; <a href=\"https:\/\/dreness.com\/blog\/archives\/477\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[29],"tags":[20,17],"class_list":["post-477","post","type-post","status-publish","format-standard","hentry","category-lj","tag-cool","tag-tech"],"_links":{"self":[{"href":"https:\/\/dreness.com\/blog\/wp-json\/wp\/v2\/posts\/477","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dreness.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dreness.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dreness.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dreness.com\/blog\/wp-json\/wp\/v2\/comments?post=477"}],"version-history":[{"count":12,"href":"https:\/\/dreness.com\/blog\/wp-json\/wp\/v2\/posts\/477\/revisions"}],"predecessor-version":[{"id":1344,"href":"https:\/\/dreness.com\/blog\/wp-json\/wp\/v2\/posts\/477\/revisions\/1344"}],"wp:attachment":[{"href":"https:\/\/dreness.com\/blog\/wp-json\/wp\/v2\/media?parent=477"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dreness.com\/blog\/wp-json\/wp\/v2\/categories?post=477"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dreness.com\/blog\/wp-json\/wp\/v2\/tags?post=477"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}