Thursday, 17 November 2016

My Collie Here

Meet our Archie

Every cat needs a collie, and this is Cleo's new wee brother, Archie.

"Wee" brother is right. Although he's grown to double her size, in the 4½ weeks he's been with us - compare the picture on the right with the one below, taken 4½ weeks later - he still gets "Wee Archie" due to his determination to cover the whole house in a uniform coat of wee!

Actually, that's a bit unfair. When he came to us at exactly 8 weeks old, he was already trained to go on the puppy training pads, and had more or less a 100% record on those. But that was only for wee; anything more demanding would be deposited instantly and immediately, just wherever he happened to be, as the mood took him. Now that we've started trying to take away the training pads, the result - with apologies to Kevin Bacon - has been a return to Everything Everywhere.

End of the Tunnel

Yesterday he attended his first puppy socialising class at The Dogs Trust, where he did us proud with his precocious knowledge of the Sit, Stay, and Down commands. All credit to Linda there, for her decades of experience training very intelligent border collies.

Socialising per se was less successful. Archie has had to be kept away from other dogs for longer than is usual, because his breeder failed to immunise him against deadly diseases such as Parvovirus. We didn't find out about this until we took Archie to our own vet, for what we thought would be his second and final inoculation, but which turned out to be a complete restart at day one.

So yesterday, two weeks later than he should have, he finally got to meet other pups. He was timid and reluctant, and basically failed to do so. However the instructor expressed his confidence that this delayed development can be put right over the coming month.

Archie and Cleo, everybody!

Thursday, 10 November 2016

FLAC Forensics

Frequency Fingerprints

I was asked by a friend if it was possible to check whether some downloaded files were actually faithful to the original WAV format entities, or whether they had in fact been rehydrated from an unfortunate, lossy intermediate MP3 excursion. The files in question were FLAC compressions of the original 3½ hour, 42 track Analord series of electronic pieces by Richard D. James, most of which were only ever issued on 12" vinyl by the artist's now defunct Rephlex Records outlet.

Update: My personal RD James expert informs me that these original 42 tracks were also released in lossless digital format on Rephlex, and that some (or all?) of the subsequently released additional, digital-only tracks were also added to these by Rephlex.

I loaded the first of these files, SteppingFilter 101, into Audacity, and took a look at the frequency domain graph (Analyze|Plot Spectrum...). After a brief complaint about only being able to analyze 237.8 seconds of audio at a time, the result was this:

Notice the slight uptick at the extreme right (high frequency) end, around 22kHz. This represents extraneous noise generated by the digital sampling process, which in this case appears to have been set naturally enough to the CD standard stereo setting of 44.1kHz. This effect will be present in any rip, at some frequency or other, and is of a different kind from the artefacts introduced by MP3 processing.

Next, I used FooBar2000/LAME to convert this file to MP3 format, using the highest available quality, Constant Bit Rate standard preset, namely 320kbps CBR (actually LAME can handle non-ISO bit rates of up to 640kbps via its freeformat option, but very few MP3 players can handle such files).

The result of this 320kbps conversion has a very obvious steep cutoff at about 20kHz:

Any attempt to convert this back to the WAV format will preserve this telltale high frequency cutoff. Does this mean we can be confident that the source file represents a good, high quality, uncompressed rip from the original vinyl? I would say confident, yes; certain, well, that's another bottle of kippers. We haven't ruled out nonstandard MP3 or other shenanigans with this test alone, but those compression antics are at worst extremely unlikely.