Simulate cassette tape audio profiles using FFmpeg

(github.com)

85 points | by xterminal 6 hours ago

13 comments

  • massagedpelican 5 hours ago
    How would one go about determining what effect to add for each cassette type? I don't know much about cassettes, I'm curious if this was something that could be done by ear or if these are commonly held opinions about the sound of each tape.

    Again knowing nothing about tape, if I were tasked with this I would probably try to record the same audio to each of the tapes and then compare it with the original.

    • dylan604 4 hours ago
      Similar to how the different film stocks affected the look of the image, the different tape formats would effect the sound similarly. Crudely explained, the more light brown the tape, the more noisy it would be. The darker the tape, the cleaner it could be. If you like the sound of someone standing behind you constantly saying shhhhhhhhhhhhhhhhhhhh, then choose a brown tape.

      By now, the audiophiles have lots of profiles of what the various tape formats would sound like. It's been ages since I've looked at audio plugins, but I would be shocked if there's not presets to make your pristine audio sound like a Maxell cassette that's been played hundreds of times.

      • tempoponet 4 hours ago
        There's great VST plugins like "Sketch Cassette 2" that will do hiss, flutter, all of that, along with some great presets. That one's less about creating authentic sound profiles, more like creating lo-fi tracks and instruments for music production.
      • heddhunter 1 hour ago
        This is my go to for making things sound "worse" :)

        https://www.xlnaudio.com/products/addictive_fx/effect/rc-20_...

      • vor_ 1 hour ago
        Wavesfactory Cassette does exactly that for several well-known models.
  • gwbas1c 4 hours ago
    Has anyone come across a Dolby B (or similar) encode / decode program?

    I've been wanting to experiment with quantizing Dolby (or similar) encoded audio to 8 bits, and then unencoding to see how well it can sound.

    • vor_ 2 hours ago
      U-he Satin emulates Dolby encoding/decoding.
    • IHeartGaming 1 hour ago
      The only one I'm aware of is DDi Codec by Anaxwaves.
  • omar_alt 3 hours ago
    This is interesting as I would assume multiple passes from each output would result in further multi generational loss akin to tape trading of band demos, soundclashes and dj mixes from pirate radio
  • JSR_FDED 2 hours ago
    I’m wondering besides the hiss and wow/flutter, what is the frequency range of cassette tape? Is there an “eq” to tape where certain frequencies are rendered more strongly than others? And how does it compare with records?
    • ssttoo 1 hour ago
      Looking at the first example [1] looks like there is high pass, low pass, and two more “cuts”

      [1] https://github.com/AARomanov1985/Audio-Cassette-Simulation/b...

    • rahimnathwani 1 hour ago
      Back in the day, the plastic that wrapped blank tapes was printed with details about the tape inside, including a frequency response chart.

      Of course it differed by brand.

      It's also worth considering that a lot of tapes were recorded with Dolby B noise reduction, which boosted high frequencies on the recorded tape, to increase the signal to noise ratio. (You had to use Dolby B at the playback end, too, or it would sound too bright.)

    • spencerap 1 hour ago
      I’m not sure of the correctness, but I see the author adjusting eq in the source, this is from the “BASF LH Extra C90” preset:

      > highpass=f=50,lowpass=f=13000

      > equalizer=f=500:width_type=q:width=0.8:g=-1.2,equalizer=f=6000:width_type=q:width=0.7:g=-4

  • isiahl 2 hours ago
    Would be interested to see something like this to simulate VHS effects
    • boredemployee 2 hours ago
      That might be of interest: https://ntsc.rs/
      • dylan604 54 minutes ago
        "ntsc-rs is written in Rust, and is multithreaded and SIMD-accelerated."

        This made me lol. I know so few video editor types that would use a plugin like this that would know what Rust was to be "impressed" by this bit of PR.

  • _def 5 hours ago
    What is "wow"?
    • TheOtherHobbes 4 hours ago
      Half of wow and flutter. The tape speed wasn't perfectly constant, so the pitch wobbled.

      Wow was slow speed variations (under 4Hz). Flutter was quicker warbles.

      Both were caused mechanically. The rubber wheel - pinch roller - that moved the tape might not be perfectly circular, the motor that pulled the reels might be uneven, and the tape case sometimes pressed on the tape reels causing variable friction.

      Analog media really were a bit crap. I get the creative distortion idea, but even so - ewww. I'm so happy these kinds of imperfections are optional now, and not baked into music distribution systems as an expected flaw.

      • abracadaniel 2 hours ago
        Off topic, but only a couple of years ago the 3d printer community re-discovered these same kinds of flaws in the extruder gears that result in visible ripples in prints. When you put a gear on a stepper motor, and set it with a set screw, you’re pretty much always off center slightly.
      • sodapopcan 3 hours ago
        I wouldn't call the pro reel-to-reels crap. The imperfections were barely noticeable. Besides, there were other pros to the analogue days, like records having their actual own sound with human imperfections in-tact (unless you had a tonne of money and could afford to spend hours slicing tape). I despise how perfect and same-y everything sounds over the past 20 years. Of course I understand that this is all very subjective, but there just isn't as much access to more raw sounding records as, even very talented musicians who are probably capable of getting great takes which still quantize everything.

        But ya ya, old man yells at clouds, I know.

        I still record to tape, it's a lot of fun (cassette tape)! There are a bunch of problems to solve that take away from "just being creative" but I don't mind it. Part of that is that it's a forcing factor to improve musicianship because punching in on those consumer four-track machines doesn't really work (even though they have the capability).

    • gwbas1c 4 hours ago
      Basically, on analog media, playback speed isn't perfect. There's constant speedups and slowdowns. This creates a "waa waa" or "wow wow" effect that's noticeable when playing a constant pure tone.
      • dylan604 4 hours ago
        don't forget that tapes also stretch so that can also give similar sounds
    • sctb 5 hours ago
      It's a kind of pitch instability: https://en.wikipedia.org/wiki/Wow_(recording)
  • tom_ 3 hours ago
    Well, rather your ears than mine.
  • westurner 4 hours ago
    Can this be modeled with Neural Amp Modeler (open source) and Tone 3000 like a Space or a Pedal or an Outboard? https://www.tone3000.com/amalgamaudio
  • brcmthrowaway 3 hours ago
    I read that audio engineers actually use specialized and very expensive ripoff hardware in their signal processing chain to replicate the effect of the electromagnetics (hysteresis?) of tape systems on the audio.

    To me, this seems like wasted effort. Any such filter can be implemented using DSP.

  • AmazingEveryDay 6 hours ago
    Interesting! What tape simulation do you find yourself favoriting?
  • dcl 1 hour ago
    vaporwave fans rejoice
  • atoav 4 hours ago
    To which analog gain would 0 dBFS be mapped?
    • pitchlatte 3 hours ago
      i don’t think any dynamic range manipulation is being done, beyond the slight variations as a consequence of the other processing.

      generally 0dBVU is mapped to -18dBFS with VU style RMS metering being used on the digital side as well. but that isn’t some kind of physical translation, it’s rather arbitrary and more a convention.

  • secretsatan 3 hours ago
    Well i would say wow and flutter is a property of the device playing the tape, not of the tape itself
    • wildzzz 3 hours ago
      Crappy old tape and a warped shell can cause wow and flutter too if the tape is sticking or the reels are binding.
      • jojobas 3 hours ago
        The tape is driven by rollers directly, the reels only pick up the slack.