Request to cancel Export limit in tools sample data export

Anything you think is missing, or needs enhancement, goes here.
Forum rules
If you require help using Audacity, please post on the forum board relevant to your operating system:
Windows
Mac OS X
GNU/Linux and Unix-like
Post Reply
coew56
Posts: 1
Joined: Wed Jan 05, 2022 11:46 am
Operating System: Windows 10

Request to cancel Export limit in tools sample data export

Post by coew56 » Wed Jan 05, 2022 12:06 pm

Sample data export to a text file only allows a maximum Number of 1 Mio data points für export, thats only about 10 to 42s (depending on rate).
Otherwise you can import a textfile containing half an hour stereo data in 48K without problems.

The export limitation should be abandoned!

steve
Site Admin
Posts: 83928
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Request to cancel Export limit in tools sample data export

Post by steve » Wed Jan 05, 2022 1:12 pm

The reason for the limit is because many text editors will choke on very large files. Nobody likes crashes.
With default settings, 1 million samples of a stereo track produces an output file that is around 18 MB. Exporting as HTML produces a file that is over 100 MB, which is likely to take a while to open, and the web browser is likely to become very sluggish.

If you really want to create even bigger files, and you have software that can cope with the huge files, then the limit can easily be removed by a small modification to the Sample Data Export plug-in.

WARNING: THIS IS NOT RECOMMENDED. PROCEED AT YOUR OWN RISK.
  1. Open sample-data-export.ny in a plain text editor (such as NotePad++).
  2. Change line 13 from:

    Code: Select all

    $control number (_ "Limit output to first") int-text (_ "samples") 100 1 1000000
    to

    Code: Select all

    $control number (_ "Limit output to first") int-text (_ "samples") 100 1 nil
  3. Save the modified file.
Learn more about Nyquist programming at audionyq.com

seanmccoye
Posts: 2
Joined: Thu Jan 13, 2022 7:38 pm
Operating System: OS X 10.6 Snow Leopard or earlier

Re: Request to cancel Export limit in tools sample data export

Post by seanmccoye » Thu Jan 13, 2022 10:40 pm

Someone uses audacity as a physics tool -> guilty.

This nugget will help on my project.

Post Reply