What is the bit depth format for audio capture?

MusE is a DAW for Linux with both MIDI and Audio editing. https://muse-sequencer.github.io

Moderators: MattKingUSA, khz, spamatica

Post Reply
User avatar
digitsun
Established Member
Posts: 91
Joined: Thu Mar 04, 2021 1:50 am
Has thanked: 13 times
Been thanked: 14 times

What is the bit depth format for audio capture?

Post by digitsun »

Hi,

I can't found the sample format for audio capture, you know: 16bits, 24bit, 32 float and fixed...

I found the options for to bounce audio: wav/16bits, wav/24 bits and wav/32bits (I assumed is fixed, no float)

Anyhow... What format internally use MusE?
Tim E. Real
Established Member
Posts: 667
Joined: Sat Sep 15, 2012 12:36 am
Has thanked: 38 times
Been thanked: 107 times

Re: What is the bit depth format for audio capture?

Post by Tim E. Real »

Internally MusE uses standard 32-bit floating point for all audio.
That is because that is the format which Jack Audio gives us.
Wave files that are recorded with MusE use this format as well.

However, a MusE song can be 'bounced' down to a few other standard file formats such as integer.

For reading wave files, we use libsoundfile, so this means we can accept whatever formats it accepts,
but ultimately we still read it as floating point.
User avatar
digitsun
Established Member
Posts: 91
Joined: Thu Mar 04, 2021 1:50 am
Has thanked: 13 times
Been thanked: 14 times

Re: What is the bit depth format for audio capture?

Post by digitsun »

Tim E. Real wrote: Sat Nov 27, 2021 1:26 am Internally MusE uses standard 32-bit floating point for all audio.
That is because that is the format which Jack Audio gives us.
Wave files that are recorded with MusE use this format as well.
That's good decision, it's the standard
Tim E. Real wrote: Sat Nov 27, 2021 1:26 am However, a MusE song can be 'bounced' down to a few other standard file formats such as integer.

For reading wave files, we use libsoundfile, so this means we can accept whatever formats it accepts,
but ultimately we still read it as floating point.
In Downmix (Audio > Render Downmix to a file) options I only see wav (I attach a picture). Maybe is a libsoundfile parameter (I'm in Appimage version, I don't know if in packaged versions appear more formats)

only-wav.png
only-wav.png (13.43 KiB) Viewed 5525 times
Tim E. Real
Established Member
Posts: 667
Joined: Sat Sep 15, 2012 12:36 am
Has thanked: 38 times
Been thanked: 107 times

Re: What is the bit depth format for audio capture?

Post by Tim E. Real »

Yes only .wav files can be created with the bounce feature.

Wav 16 bit means 16 bit integers.
Wav 32 bit means 32 bit integers.
Wav 32 float means 32 bit floating point.

Some day we could expand on that to include some of the other formats
that libsndfile supports, perhaps even FLAC.
If I recall, it might be a relatively easy fix since libsndfile does all the work.
I think we feed it our floating point and simply tell it what format to save as.
So, a fix might be as simple as telling it to save in another format... I'll have to check...
User avatar
digitsun
Established Member
Posts: 91
Joined: Thu Mar 04, 2021 1:50 am
Has thanked: 13 times
Been thanked: 14 times

Re: What is the bit depth format for audio capture?

Post by digitsun »

Tim E. Real wrote: Sat Nov 27, 2021 5:26 pm Some day we could expand on that to include some of the other formats
that libsndfile supports, perhaps even FLAC.
If I recall, it might be a relatively easy fix since libsndfile does all the work.
I think we feed it our floating point and simply tell it what format to save as.
So, a fix might be as simple as telling it to save in another format... I'll have to check...
Well, for now I think that wav decision is cool, It's the standard and for serious audio production is totally necessary.

Congratulation @Tim E. Real for your work in MusE.
Post Reply