Canoe comparing two copies of the same mix, a Gen 1 re-encode next to the Gen 0 earliest copy marked Candidate

You’ve got a few files of the same thing. A radio show, a mix, a tape you digitized twice because the first encode looked suspicious. Canoe lines them up by the sound, not the filenames, and tells you which ones are actually the same recording and which copy came first. Then it writes a FLAC of the one worth keeping, at 32, 44.1, or 48 kHz. 32 kHz is long-play DAT, which is what I usually want at the end.

One file is enough. Open it, look at the spectrum, knock off the obvious damage, change the sample rate, and listen to it in the same window.

Program is the tape half. Give it a length (74 minutes, 2 hours, whatever fits the deck) and it chops the audio into parts, with track marks. A small IR blaster on the network can poke the deck when those marks go by.

Nothing is uploaded. Windows, and macOS on Apple Silicon. The 44.1 kHz render and most of the looking-around is free. $25 / year on PayPal covers the rest. Use the email you paid with, and the key they send. License.

How it works

  1. Drop in files. MP3, AAC/M4A, ALAC, WAV, FLAC, Vorbis, MKV. Each one is decoded once, streaming, and drawn as a card: spectrogram, average spectrum, and where the encoder ran out of highs.
  2. Match. Every pair is lined up in time and compared from 200 Hz to 12 kHz, so a harsher lowpass doesn’t make two copies look like different records. If the audio doesn’t agree, matching tags will not glue them together.
  3. Fingerprint. Old codecs leave a tick. Frame rhythm, filter-bank seams, bands that gate off. A card can say HE-AAC, 21.5 Hz frame rhythm, 2048-sample SBR frames when the file itself only admits to being an MP3.
  4. Render. Pick the candidate, set a length and a fade, turn the repair steps on or off, write FLAC. The analysis sits in a .canoe file next to the source, so opening it tomorrow doesn’t mean sitting through the pass again.

Analysis

  • True peak at 4× oversampling, plus runs of flat-topped clips and gaps where the level falls out
  • Spectrogram and average spectrum. The ceiling is the last real energy. A steep drop there is a wall, the encoder’s lowpass
  • 19 kHz FM pilot. One pilot anywhere in the pile turns FM mode on
  • Holes in the spectrum, and bitrate from file size divided by length (the header bitrate is a story the encoder tells)
  • ID3v2 and the LAME/Xing header: encoder string, declared lowpass, source sample rate
  • A re-encode shows up as Lavf in the tags, a source rate that doesn’t match the file, or a wall sitting well below where LAME usually cuts

Reading a card

Open a card for the rest of the report. The spectrogram is the picture. The rows underneath are the measurements.

Expanded card for 1998-03-08-air-1.mp3 with Gen, Src, Rate, Ceil, Wall, Flick, Holes, Clip, TP, Drop, Pilot, Enc, and tag rows

  • Header. Name, rank, generation (#2 Gen 0), score, and a short codec line. Lavf on that one. The spectrum under the spectrogram has a mark at 19 kHz for the pilot
  • GEN. Which generation, or re-encode, or different recording
  • SRC. What it thinks the audio passed through: MP3, FM, DAT, FM → AAC, with the reason (LAME tag, MP3 container)
  • RATE. Codec, sample rate, average bitrate, length
  • CEIL / WALL. Where the spectrum dies, and how many dB it falls. A wall means that drop is steep
  • FLICK. How much the 15–16 kHz band wanders from frame to frame. High flicker on a re-encode is common
  • HOLES. Spectral holes
  • CLIP. Flat-top runs, and how many samples
  • TP. True peak in dBTP
  • DROP. Dropouts and level steps
  • PILOT. The 19 kHz stereo pilot, if it’s still there
  • ENC / LAME LP / SRC RATE. Encoder strings, the lowpass LAME claimed, and the source rate in the header
  • TITLE / TRK / ENCODED. Tags. REC / ACOUST / ART are the MusicBrainz id, AcoustID, and whether there’s cover art

Red marks a re-encode, clipped runs, or a true peak over 0 dBTP.

Same-recording matching

Rough offset comes from the loudness envelope. The exact offset is raw audio, correlated. The spectrum check stops at 12 kHz on purpose.

Inside a cluster the rank is: not a re-encode, then not clipped, then higher ceiling, then less flicker. A worse copy is never the parent of a better one. I’ve had a Lavf file keep more highs than the FM recording it was made from. It still isn’t generation 0.

If nothing lines up, the card says different recording.

Codec fingerprint

This is the guess about what touched the audio before the file in front of you.

  • MP3 granule rhythm, including an earlier MP3 at another sample rate
  • AAC and HE-AAC
  • ATRAC1 (MiniDisc SP) and ATRAC3 (MDLP LP2 / LP4): frame rhythm, the QMF splits, and bands that gate off when it’s quiet
  • FM → codec if the 19 kHz pilot is still in there. DAT from a 32 or 48 kHz source

I set the thresholds on synthetic noise, not on a pile of known MiniDiscs. Treat the label as a hint. The spectrogram is the evidence.

Steps

The chips start from the report. The words next to a chip are that report in one line (no flat-top runs, 1 holes, 20 ms fades at quiet points across the cluster). A chip you can’t use on this file is gray.

Step Default Can be enabled Caption
HPF 5 Hz On Always DC and subsonic, cheap headroom
Declip On if clip runs were found Always N flat-top runs / no flat-top runs
Repair gaps On if gaps were found Always N gaps / no gaps
Stitch best segments Off Only if another copy is in the same cluster 20 ms fades at quiet points across the cluster
Fill spectral holes On if more than 1 hole per frame If any holes were found N holes
Notch 19 kHz On if the pilot was detected, or FM mode with a ceiling above 19 kHz Pilot present, or FM mode Pilot detected / FM mode, ceiling still open / no pilot
FM de-emphasis Off FM mode only Off unless the tuner left pre-emphasis on
FM tidy On in FM mode FM mode only Mono below 120 Hz, stereo side LP at 6 kHz
Rebalance Off Stereo, and the channels differ by 0.5 dB or more Attenuate the louder channel
Extend highs Off Ceiling below 14.5 kHz 44.1/48 outputs only, quiet octave copy
True peak −0.5 dBTP Always on, locked Always on One gain after resample, no limiter
Common LUFS Off Always Only if it stays under the true-peak ceiling

Declip rounds off flat tops. It does not rebuild the peak that got chopped. Repair gaps will steal a clean bit from a sibling copy when there is one. Fill spectral holes hides the little birdies a low-bitrate MP3 leaves. FM de-emphasis is 50 µs (Europe) or 75 µs (Americas). Notch 19 kHz takes out the stereo pilot.

FM

FM mode comes on by itself if any file has the 19 kHz pilot. That turns on Notch 19 kHz, FM de-emphasis, and FM tidy. A single wall between 14 and 16.5 kHz is the broadcast limit, not another encode.

  • FM tidy makes everything under 120 Hz mono, and lowpasses the stereo difference at 6 kHz. Tuner stereo hash lives up there. The middle stays
  • FM chip next to Steps (license). Forces FM mode when the pilot is already gone, which happens after you’ve rendered once. It sticks between sessions. Tap it again and it’s off
  • With a pilot, the source line reads FM, or FM → AAC (or whatever the fingerprint found) when there’s an earlier codec too

Length, fade, and Create

Steps panel: Length 2:00:00, Fade 10 s, Create 32 kHz and 44.1 kHz selected and Process

  • Length is H:MM:SS. Presets are 120, 90, and 60 minutes. Clear means the whole file, and no fade
  • Fade is the last 1–30 seconds, 10 s unless you move it. Only if you set a length and the render actually gets there
  • Create: 32 kHz, 44.1 kHz, 48 kHz. Licensed, 32 and 44.1 start on. Without a license you get 44.1
  • Process runs each rate on its own thread. The first pass keeps the processed audio, so writing the FLAC doesn’t do the whole chain again
  • 32 kHz always gets the DAT long-play mask. Passband 14.5 kHz, stopband 16 kHz
  • Resampler is a windowed sinc, linear phase, aimed at about 130 dB
  • FLAC, with the steps written into the Vorbis comments so you can see later what was on
  • Names follow the source. Essential Mix - 1993-12-04 - Future Sound of London.44k.flac

Monitor

Monitor bar with the spectrogram jog strip: Output, Exclusive, A / 32 / 44.1 / 48, Stop, Match, and a playhead at 00:13:00

  • Output picks the device. Exclusive is WASAPI bit-perfect on Windows, and it needs the license. Otherwise Shared. Awake (license) stops the machine sleeping while you listen
  • A is the source. 32, 44.1, 48 are the FLACs, once they exist. The chip lights up when the file is there
  • Match pulls the source down to the same peak as the render. Otherwise you just pick whichever is louder
  • Jog strip is the spectrogram across the whole file, playhead in phosphor. Click or drag to move
  • Stop, the clock, and stopped or playing
  • Saving that spectrogram as a PNG needs the license

Program

WAV or FLAC, in the order you put them. A file only gets cut when it runs past the target. Change the list, the length, or the fade and the plan redraws. Parts play straight from the sources, fades included. You can hear a part before anything is written to disk.

Canoe Program with a file list, a 74 minute target, two planned parts, and the monitor jog

  • Add file and Clear. Each row has Cue, Up, Down, and a trash icon. Cue reads a cue sheet or a plain H:MM:SS title list. Marks are saved next to the file. Trash asks first, and it only takes the row off the list
  • Every mark has a play chip (starts there) and its own trash icon, which also asks. The mark under the jog turns green, and the list scrolls to it while you drag. A long title loses its vowels so the row doesn’t blow out. “The Future Sound of London” becomes “Th Ftr Snd of Lndn”. Ugly, but you can see which one it is
  • Target: 60, 74, 80, 120, 180, 240 minutes. The number next to the chips is how big that part is at the file’s own rate. 74 minutes of that Essential Mix was about 783 MB
  • Fixed cuts on the clock and fades across the join. Adaptive (license) looks back through a search window for a quiet bit, or a mix point, and cuts there instead. Fade is 1–30 seconds
  • Parts shows length, size, why it cut (cut at the target, end, quiet, 12s early), and how many marks landed in it. The numbered chips on the monitor play that part live
  • Closing a well on the Process side asks too. Cancel or Escape and nothing happens. None of this deletes the file on disk
  • REMOTE talks to a WeMos S2 Mini. Host is an IP address or a name (canoe-ir.local). Port is 9750. OPEN connects. PING checks the link. Deck picks the profile. REC, PLAY, PAUSE, STOP, MARK ID, END ID send that profile’s codes and leave Canoe’s monitor alone. The monitor PLAY sends the track marks, and only while the link is open. Shut, the status reads link closed
  • Mark (license) drops a mark at the jog
  • If you do want the parts as files, the MCP tool canoe_program_write writes name-01.flac and a .tracks list beside the first source

MCP

The app listens at http://127.0.0.1:47831/mcp while it’s running. Load files, pick a well, monitor, seek, exclusive, render. On Program: add files, reorder them, set the length, drop marks, play a file or a live part, write the FLACs, open the IR link. Same code as the buttons. If something else already has that port (a second Canoe, usually), this copy just runs without the server.

License

Free for everyday use. $25 / year, PayPal. The license window wants the email you paid with and the key. It checks in once, then the signature is verified on the machine until the year is up. No account.

What the license adds:

  • FM override, for a file whose 19 kHz pilot is already gone
  • 32 kHz and 48 kHz (44.1 stays free)
  • Exclusive playback
  • PNG of a spectrogram
  • Adaptive cuts in Program
  • Manual marks on the jog
  • Awake while the monitor is playing

Windows

canoe.exe is Authenticode-signed.

macOS

Apple Silicon .dmg. Ad-hoc signed, not notarized, so Gatekeeper will complain the first time.

  1. Open the image and drag Canoe to Applications.
  2. Right-click the app and choose Open, then confirm.

If it still refuses, System Settings → Privacy & Security, and Open Anyway.