Import RAW-File with sample rate > 100_000

Help for Audacity 2.x.x on GNU/Linux.

ImageThis forum is for Audacity 2.x.x on GNU/Linux and Unix-like operating systems.
Please state which version of Linux you are using, the exact three-section version number of Audacity from Help > About Audacity... and whether you installed your distribution's release or daily version of Audacity or compiled Audacity from source code.

Audacity 1.2.x and 1.3.x are obsolete and no longer supported. If you still have those versions, please upgrade at https://www.audacityteam.org/download/.
The old forums for those versions are now closed, but you can still read the archives of the 1.2.x and 1.3.x forums.

Import RAW-File with sample rate > 100_000

Permanent link to this post Posted by Luk4s » Wed Aug 30, 2017 2:35 pm

Hello,

why is the sample rate limited to 100000 at Raw-Data imports?

See: https://github.com/audacity/audacity/blob/c11e3d1511dbb3d25aa54ae40d0dd5171a1c23a2/src/import/ImportRaw.cpp#L493

Is this just a check to prevent wrong user input or is the import method unable to handle sample rates over 100kHz?

Best regards
Lukas
Luk4s
 
Posts: 3
Joined: Wed Aug 30, 2017 2:22 pm
Operating System: GNU/Linux other

Re: Import RAW-File with sample rate > 100_000

Permanent link to this post Posted by steve » Wed Aug 30, 2017 3:22 pm

I'd guess that it's just a semi-arbitrary sanity check. In rare cases where you want to import RAW data at a higher sample rate, you can use the track drop-down menu to set the sample rate (http://manual.audacityteam.org/man/audi ... _menu.html) up to 1,000,000 Hz
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)
steve
Site Admin
 
Posts: 44458
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Import RAW-File with sample rate > 100_000

Permanent link to this post Posted by Luk4s » Wed Aug 30, 2017 6:45 pm

Thank you for your fast answer!
Your suggestion was my previous workflow.

Since it's only a raw case, i simply forked the project and customised the default values to my needs.
Luk4s
 
Posts: 3
Joined: Wed Aug 30, 2017 2:22 pm
Operating System: GNU/Linux other

Re: Import RAW-File with sample rate > 100_000

Permanent link to this post Posted by steve » Wed Aug 30, 2017 8:47 pm

Luk4s wrote:Since it's only a raw case, i simply forked the project and customised the default values to my needs.

and no problem over 100,000 Hz I presume?

Out of interest, why do you need > 100 kHz RAW PCM?
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)
steve
Site Admin
 
Posts: 44458
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Import RAW-File with sample rate > 100_000

Permanent link to this post Posted by Luk4s » Thu Aug 31, 2017 4:18 pm

No problems so far.

I use audacity to view acoustic emission recordings, it's a nice tool to get a first overview.
Luk4s
 
Posts: 3
Joined: Wed Aug 30, 2017 2:22 pm
Operating System: GNU/Linux other

Re: Import RAW-File with sample rate > 100_000

Permanent link to this post Posted by steve » Thu Aug 31, 2017 5:03 pm

Luk4s wrote:I use audacity to view acoustic emission recordings, it's a nice tool to get a first overview.

It's amazing some of the things that Audacity is used for - this goes onto my mental list of more unusual uses ;)
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)
steve
Site Admin
 
Posts: 44458
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu


Return to GNU/Linux and Unix-like



Who is online

Users browsing this forum: No registered users and 2 guests