by Aachen · 3y ago · 0 comments
Way to bury the lede! What's this magic algorithm being spoken of, how does it work so well?
> A more detailed overview of these changes can be found in our <a>changelog</a>.
The changelog is even more terse, saying only which key combo activates it :(
A way bigger deal to me is mentioned at the bottom of the "other changes" in said changelog: Opus support!
Edit: wait, under "libraries" it says
> lib-time-and-pitch implements a time stretching algorithm originating in Staffpad. It currently is one of the highest-quality time stretching algorithms for music on the market.
Staffpad links to https://staffpad.net and seems to be some music app. The library name links to a Microsoft repository (https://github.com/audacity/audacity/tree/e4bc052201eb0e6e22...) with no readme. The source code is documentation enough :)
It's a granular time-stretch algorithm. By the sound of the artifacts at extreme settings it's akin to the 'Complex Pro' algorithm in Ableton Live (if you have any reference to that) and seems to be equally effective at a wide variety of sources (percussion, vocals, full records).
Is it better than most commercial offerings? Hard to say after a brief test, but it's not bad!
I suspect it's plenty good for the needs of Audacity's audience, who are unlikely to be demanding audio pros. As an audio professional I would never use Audacity, but if you need a quick, free, and (relatively) simple option to time-stretch a file, then it should fit the bill.
For my work the standard DAWs are Pro Tools, Logic Pro, Cubase, and Ableton Live. There are lots of options each with their own strengths, but any of these will do a great job. I think it comes down to the person's workflow preferences. Certain disciplines will favor different DAWs.
Other than that Izotope (programs like RX and Ozone) are doing cutting-edge work for audio restoration. There are certain companies that are competitive or exceed them in certain situations, but Izotope is the company you're most likely to see working professionals use these days for general utility.
It can be more nuanced than that, but I don't know if you're asking for a deeper explanation.
Though with this new update, I thought I could stop using Sound Forge but quickly realised it doesn't have a real time pitch control on play back (think the pitch control on a turntable) so I will be keeping with Sound Forge untill then.
Whether you do or not, there are a hell of a lot of hawkers of software and "hardware" alike, who stand ready to sell their overpriced "professional" tools to people who fail to make it in the music industry (which is going to be most of them, regardless of tools or even skills). A high sticker price is a way to prove your commitment - to oneself, at least. The end market is less likely to care.
You are confusing it with audiophile gear.
Regarding Audacity, it's missing tons of features and it's UI is bad. Just like Gimp vs Photoshop. I did some audio production and Audacity is just not usable beyond the most basic operations, and even those are a bit of pain.
$100 gets you a SM57 which probably has been on more platinum albums than any other mic.
Edit: Mind you, it contains software instruments, sound packs and MIDI effects allowing you to add synthesized music to recorded music. Audacity only manipulates existing audio and you will need to bring in other software if you want to add synthesised audio which in Audacity will just be treated as extra audio tracks rather than MIDI. That will obviously make it more difficult to produce music. It would be like having to rasterise every layer instead of using a vector graphics to build an illustration.
I've also been around the block long enough to know what tools are worth investing in and which to avoid, so I'm not worried about vendors with bad value add.
The "Mixdown Industrial Complex" that provokes gear lust in audio professionals is not something I worry about at this point. I'm mostly satisfied on the tools that I use and the shiny new thing doesn't interest me like it once did. The focus now is on the work.
The audacity!
The basic idea is this. For a time-stretch factor of, say, 2x, the frequency spectrum of the stretched output at 2 sec should be the same as the frequency spectrum of the unstretched input at 1 sec. The naive algorithm therefore takes a short section of signal at 1s, translates it to 2s and adds it to the result. Unfortunately, this method generates all sorts of unwanted artifacts.
Imagine a pure sine wave. Now take 2 short sections of the wave from 2 random times, overlap them, and add them together. What happens? Well, it depends on the phase of each section. If the sections are out of phase, they cancel on the overlap; if in phase, they constructively interfere.
The phase vocoder is all about overlapping and adding sections together so that the phases of all the different sine waves in the sections line up. Thus, in any phase vocoder algorithm, you will see code that searches for peaks in the spectrum (see _time_stretch code). Each peak is an assumed sine wave, and corresponding peaks in adjacent frames should have their phases match.
The two I know of are Paulstretch (which is really only for super-duper-long stretching) and Lent 1989 ("An Efficient Method for Pitch Shifting Digital Sampled Sounds"), which can be thought of as a form of granular synthesis but isn't really what most people think of when they hear that term.
Time stretching 2 of 6 make audio track stretching effective
You link to the official audacity and chose to (incorrectly) describe it as ”a Microsoft repository”
Why being dishonest?
Maybe I should simply have said git, though. Didn't think of that until now at the end of writing this reply. No dishonesty intended, quite the opposite in fact
If you must state ownership you could have done so with something like ”a microsoft-hosted repository”.
Most of us have been around since before microsoft bought github.
A bit of an open ended question, but is there anything more I could do to process the audiobook to make it sound even better at 2x?
Sounds like you could download Audacity 3.4 and make a 2x version of your audiobook files using their new time stretching algorithm.
Staffpad is recent acquisition which is why they are now able to share technology like this: https://mu.se/
Depending on your needs, you'd want to favor one over the other. Granular stretches are far less CPU intensive and have significantly lower latency than an FFT Transform. The granular algorithm will likely have better transient fidelity at small time-stretch intervals (between 0.5x - 2x speeds), whereas FFTs tend to smear the transient information.
Where FFT transforms really excel is in maintaining or transforming formants and harmonic information. Especially at extreme pitch or time settings. Granular algorithms can only stretch so far before you hear the artifacts. FFTs are far more graceful for dramatic transforms.
I wonder how it compares to Ableton Live, warping was always a big part of Abelton.