News for hackers. Stuff that matters.
Re:QOI – The “Quite OK Image Format” for fast, lossless imag... by zigzag312 on Thursday December 23, 2021 @02:28PM (#29665502)
FLAC is limited to 24 bit depth. I was thinking of intermediate format suitable for use in DAWs and samplers that also supports floating point to avoid clipping.
Re:QOI – The “Quite OK Image Format” for fast, lossless imag... by LeoPanthera on Thursday December 23, 2021 @02:31PM (#29665549)
24-bit integer and 32-bit float have the same dynamic range available, so you are not losing any fidelity.

However, frankly, if you're working professionally with audio like that, the best solution is simply to have sufficient disk space available to work with raw audio.

Use FLAC to compress the final product, when you are done.

Re:QOI – The “Quite OK Image Format” for fast, lossless imag... by kloch on Thursday December 23, 2021 @03:07PM (#29665883)
They have the same precision but float has vastly larger dynamic range due to the 8-bit exponent. When normalized and quantized for output this does result in roughly the same effective dynamic range (depending on how much of the integer range was originally used).

The issue is audio is typically mixed close to maximum so any processing steps can easily lead to clipping. One solution is to use float or larger integers internally during each processing step and normalize/convert back to 24-bit integer to write to disk. Another (better imo) option would be to do all intermediate steps and disk saves in a floating point format and only normalize/quantize for output once.

I haven't worked with professional audio in over 25 years (before everything went fully digital) but I would be surprised if floating point formats were not an option for encoding and intermediate workflows. Many quantization steps seems like a bad idea.

Re:QOI – The “Quite OK Image Format” for fast, lossless imag... by adzm on Thursday December 23, 2021 @03:17PM (#29666001)
Most DAWs and plugins and audio interfaces nowadays use floating point internally.
Re:QOI – The “Quite OK Image Format” for fast, lossless imag... by zigzag312 on Thursday December 23, 2021 @03:31PM (#29666114)
> I would be surprised if floating point formats were not an option for encoding and intermediate workflows.

For bouncing tracks to disk, uncompressed 32-bit floating point formats are avaliable, but I am not aware of any fast losslessly compressed 32-bit floating point format.

Re:QOI – The “Quite OK Image Format” for fast, lossless imag... by 323 on Thursday December 23, 2021 @03:42PM (#29666226)
All professional audio production software these days internally works with 32/64 bit floats. That's the native format, because it allows you to go above 0 dBFS (maximum level), as long as you go back below it at the end of the chain.
Re:QOI – The “Quite OK Image Format” for fast, lossless imag... by zigzag312 on Thursday December 23, 2021 @02:38PM (#29665623)
With 24-bit integer you are at risk of clipping.

EDIT: Floating point is useful while you are working to avoid any accidental clipping. As an intermediate format, like a ProRes for video. FLAC is great as a final format.

Re:QOI – The “Quite OK Image Format” for fast, lossless imag... by artiii on Thursday December 23, 2021 @03:15PM (#29665980)
check WavPack (32pcm, floats etc) but it's slower(not much) than flac, offering slighty beter compresion.
Re:QOI – The “Quite OK Image Format” for fast, lossless imag... by zigzag312 on Thursday December 23, 2021 @03:43PM (#29666236)
WavPack seems a bit too slow already. 3x slower decode compared to FLAC in this test https://stsaz.github.io/fmedia/audio-formats/
Re:QOI – The “Quite OK Image Format” for fast, lossless imag... by TylerE on Thursday December 23, 2021 @09:54PM (#29669517)
Wavpack on a modern CPU, from your own link, decodes at approx. 250x realtime. How fast is 'fast enough' if that isn't?
Re:QOI – The “Quite OK Image Format” for fast, lossless imag... by zigzag312 on Friday December 24, 2021 @02:40AM (#29671307)
Projects with 100+ tracks are not uncommon. Sampler/rompler of a single virtual instrument can play 10+ sounds simultaneously. Playback of an orchestral score with virtual instruments can easily go over 250 simultaneous sounds, so just a real-time playback (without any additional processing) would already be a challenge.
Re:QOI – The “Quite OK Image Format” for fast, lossless imag... by TylerE on Friday December 24, 2021 @04:23AM (#29671944)
In those contexts samples are loaded once and then kept in RAM.
Re:QOI – The “Quite OK Image Format” for fast, lossless imag... by zigzag312 on Friday December 24, 2021 @05:12AM (#29672290)
No, actually only first few dozen KB of each sample are usually preloaded into RAM. The rest is streamed from a SSD. One library of an orchestral section can have 100+ GB of samples. You wouldn't fit all sections in 128GB of RAM.
Re:QOI – The “Quite OK Image Format” for fast, lossless imag... by TylerE on Friday December 24, 2021 @05:16AM (#29672309)
I'm quite aware of the size of large libraries, I own a number of them.

Part of why I built my current machine with 64GB of ram

Re:QOI – The “Quite OK Image Format” for fast, lossless imag... by StreamBright on Thursday December 23, 2021 @05:47PM (#29667385)
Nice, I was not aware.