Sample Printer

Thanks, Steve. I like it.

The only other idea that occurred to me was that if user exports a single left or right channel track, the output file says “mono” (which in one sense it is). Do I assume there is no way Nyquist can find out left or right? I don’t think it’s of critical importance anyway.

So I guess we need

;categories "http://lv2plug.in/ns/lv2core#AnalyserPlugin"
;info "by Steve Daulton. Released under GPL v2"

then this small correction:

;; To enable L/R prefix before alternate L/R channels
;; (text outout with header only)
;; remove the semicolon from the start of the next line:
;(setq LR-prefix 1)


Gale

That’s correct. Channel allocation is something that Audacity does, it is not a property of the audio (except in stereo tracks which Nyquist sees as an array of two sounds with the left channel as the first element and the right channel as the second).

Done.
Also, as the “release version” I’ve removed the version number from the file name.

SOON TO BE OBSOLETE VERSION:
sample-data-export.ny (20.2 KB)

A few updates and minor bug fixes to tge Audacity 2.0.1 version of Sample Data Export.

Bug Fixes:

  • Error messages now correctly suppressed when selected as such.
  • Outputting html with a stereo file, the table headings are now in the correct order.
  • Channel layout information given after outputting an HTML file corrected (removed).

New Feature:

  • Option to output text data as:
1st left sample    1st right sample
2nd left sample   2nd right sample
3rd left sample   3rd right sample
....

This option is listed as "L-R on Same Line" in the “Channel layout for stereo” options.


Other changes:

  • .CSV layouts updated for improved functionality in spreadsheets (should now work well in Open Office Calc, Gnumeric, MS Excell and others).
  • Minor improvements to code formatting.

Feature Removed:

As this version is intended for release in Audacity 2.0.2 it is not yet an “official” version, but testing and reporting of any problems are very welcome.

Steve
sample-data-export.ny (17.7 KB)

Sample Printer is shipped with Audacity 2.0.1 and later.
See “Sample Data Export” in the Audacity manual for instructions for the current version.