Sample Printer

Archive of Nyquist Plug-ins.
Many of the plug-ins here will be available on the Audacity Wiki.

This Forum is an archive of old topics concerning Nyquist plug-ins.

Feedback and questions relating to topics may be posted, but please
DO NOT POST NEW TOPICS HERE.

New plug-ins may be posted on the New Plug-Ins board.
Other posts relating to Nyquist should be posted to the main Nyquist board.

The main repository for Audacity/Nyquist Plug-ins is on the Audacity Wiki.

Re: Sample Printer

Permanent link to this post Posted by steve » Wed Jan 26, 2011 10:43 am

Gale Andrews wrote:The problem I had in mind was if you select multiple tracks the plug-in writes a file for each track, but overwrites to the same file name. Could it not do like export multiple and add a suffix to the file name for subsequent files in the same process, while still overwriting the file if it already exists?

Yes it could, but the plug-in would need to keep a count of which track it is processing.

Try this code on multiple tracks:
Code: Select all
(if (boundp 'count)
   (progn
      (setq count (1+ count))
      (format nil "Writing track number ~a as filename-~a.txt~%" count count))
   (progn
      (setq count 0)
      (format nil "Writing first track as filename-0.txt~%")))

One might expect that when processing the first track "count" would be initialised to zero, then for subsequent tracks "count" would be incremented. However that does not happen because Nyquist runs as a separate instance for each track.

To make this work we need to use a variable that will survive from one instance of Nyquist to the next, and that's why we need "*scratch*".

(This is NOT the best way to do this, just a simple example)
If we replace "count" with "*scratch*" then it works as expected:
Code: Select all
(if (boundp '*scratch*)
   (progn
      (setq *scratch* (1+ *scratch*))
      (format nil "Writing track number ~a as filename-~a.txt~%" *scratch* *scratch*))
   (progn
      (setq *scratch* 0)
      (format nil "Writing first track as filename-0.txt~%")))

However, *scratch* will survive for as long as the current Audacity session is open, so running the code again will continue counting from the last value of *scratch*. So we need to be able to manually reset *scratch*, which we can do with:
Code: Select all
(setf *scratch* '*unbound*)


As a side note, this is another case where it would be extremely useful to be able to run a plug-in and keep the plug-in open after it has finished (the other classic example being Noise Removal).

The "correct" way to use *scratch" is to assign the value to a key in a property list, but this is currently broken and does not work up to and including Audacity 1.3.12.
It has been fixed in Audacity 1.3.13


The options that are available to us are:
  1. Write the plug-in using *scratch* the "correct" way but do not officially release the plug-in until the release of Audacity 1.3.13.
  2. Write the plug-in using *scratch* and hack around the problem for Audacity 1.3.12, then update the plug-in when Audacity 1.3.13 is released.
  3. Write the output from processing multiple tracks into one file (append data to current file if file exists)
  4. Write sequential files (filename-number) without using *scratch*
  5. Keep it as a plug-in for processing one track.
I'm not keen on option 2 because the hacked code would probably be floating around for a long time (with my name on it) and bad programming should not be encouraged.

The only way I can think of achieving Option 4 (sequential list without using *scratch*) would be to check for the existence of "filename-0.txt" and if it exists, check for the existence of "filename-1.txt" and so on until an unused file name is found. This method would not allow the plug-in to overwrite an existing file (ever), which I think is a rather ugly option.

Option 5 (one track only) could check if the file already exists before writing to it. There could be an option in the GUI for "Overwrite previous file: Yes / No"
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)
steve
Senior Forum Staff
 
Posts: 34330
Joined: Sat Dec 01, 2007 11:43 am

Re: Sample Printer

Permanent link to this post Posted by steve » Wed Jan 26, 2011 11:51 am

Gale Andrews wrote:You can export a file that has sample values without indices, but not one like that which also has the sample rate.

Isn't that what samplprinter3.ny does if "Sample Values Only" is selected?

I get the impression that HTML output is not generally very useful (though it suited the original purpose of the plug-in).
For the sake of simplicity, would it be better to drop that option altogether and stick with plain text output?

I guess that for importing into a database the most useful output would be:
  1. A list of sample values only (plain text file)
  2. Sample values only (.CSV file)
  3. Index and sample value (.CSV file)

For stereo files, would it be better to:
Alternate values as "Left channel sample > Right channel sample > Left channel sample > Right channel sample > ...."
or
List the Left channel values first, then list the Right channel values?

Perhaps also a HTML formatted output for a "human readable" output. This could include additional information such as the sample rate, number of channels and optional user input text.


Regarding export path.
This can be much improved now that we have the (get-env) function. However (get-env) was introduced after the release of Audacity 1.3.12 so it requires Audacity 1.3.13 or later.

Regarding the limited number of samples that can be analysed.
With recent improvements to memory management I think it may be possible to work around this limitation. How much of an issue is this for users? Is it worth the effort?
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)
steve
Senior Forum Staff
 
Posts: 34330
Joined: Sat Dec 01, 2007 11:43 am

Re: Sample Printer

Permanent link to this post Posted by steve » Wed Jan 26, 2011 10:23 pm

I'm currently thinking along these lines:
sample-data-export.ny
Non-functional GUI
(3.39 KiB) Downloaded 125 times
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)
steve
Senior Forum Staff
 
Posts: 34330
Joined: Sat Dec 01, 2007 11:43 am

Re: Sample Printer

Permanent link to this post Posted by Storer » Thu Jan 27, 2011 3:35 am

Steve,
Concerning your option 4: the (listdir path) will return a list of all files in a directory, so the names can be searched quickly to see what number should come next.
Storer
 
Posts: 91
Joined: Wed Mar 04, 2009 8:02 pm

Re: Sample Printer

Permanent link to this post Posted by steve » Thu Jan 27, 2011 5:06 am

Thanks storer, I'd not thought of that.

I presume you're thinking of something like this:

Code: Select all
(setq dirlist (listdir path))
(setq basename "sample-data")

(setq count 0)
(while
  (member (format nil "~a~a.txt" basename count) dirlist :test 'string=)
  (setq count (1+ count)))

(setq filename (format nil "~a~a.txt" basename count))

(print filename)
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)
steve
Senior Forum Staff
 
Posts: 34330
Joined: Sat Dec 01, 2007 11:43 am

Re: Sample Printer

Permanent link to this post Posted by steve » Thu Jan 27, 2011 4:34 pm

I've been through this topic and there's not really much to be done.

The main thing from a programming standpoint is to see if I can remove the sample number limitation.
Other than that, it's mostly decisions about what features to include and what to miss out.

Decision Time:

  1. Decide on Output Path.
  2. Decide Multiple tracks vs.Append. (prefer append if not too slow)
  3. Decide on output file formats.
  4. Decide on output data formats.
  5. Decide on additional information (header)

1)
How do we want to handle the output file path:
Valid paths that are common to all platforms are
  • The users "Home" folder
  • Root folder (often not writeable)
  • Desktop (could be a problem)
  • Fully qualified existing folder (must use forward slash)
"Home" folder is probably the safest.
"Append to Home" would be very convenient for many users (I would probably use this option).
"Fully Qualified Existing Path" is the most flexible, but may be too complex for some users.
Rather than just failing with an invalid path I think I could use the home folder as a fall-back.

2)
I think "append" to file is less problematic than multiple files, and may be more convenient for many users (saves needing to open multiple files). I don't know how slow this will get for large files so I'll check that.

3)
Plain text is the easiest (.txt)
Comma Separated Variables (.csv) may be useful.
HTML can be prettier and easier to read.

4)
Current options include "Data Only" and "Indexed Data"
Additional information could be included as an additional user option.

5)
Additional information could precede the data (for any of the format options) and could include:
  • Sample Rate
  • Name (from file name) Append number for multiple tracks.
  • Mono/Stereo
  • Output file path/name
  • Number of samples
  • Duration (seconds)
  • Average sample value
  • RMS value
  • Maximum / Minimum values
  • Optional user text (text field in GUI)
I don't think that we can have "switches" for each of these in the interface, so it's a matter of deciding which will be most useful and giving the option of including all of those or none of those (or some other subset of combinations).
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)
steve
Senior Forum Staff
 
Posts: 34330
Joined: Sat Dec 01, 2007 11:43 am

Re: Sample Printer

Permanent link to this post Posted by steve » Thu Jan 27, 2011 7:16 pm

<em>steve</em> wrote:The main thing from a programming standpoint is to see if I can remove the sample number limitation.

I've just printed 10,000,000 samples (stereo). The file was only about 4 million samples long, so there are a lot of "NIL" results.
Processing and writing the file took about 3 minutes and Audacity memory usage never went above 35MB.
Opening the file in GEdit took about a minute. Memory usage in GEdit is now up to 1.7 GB and I'm still waiting to scroll to the bottom of the page (currently down to line 14,000,000 of about 20,000,000).
I think we can safely say the sample number limitation is fixed.

[Update: just got to the bottom of the list (line 20,000,005)]

I suppose the question now is whether we still want to have the "Number of Samples" slider.
I think that it is probably still good to keep the slider so that the unwary user does not print out a multi-Gigabyte file and crash their computer trying to open it.
Perhaps we should just increase the range of the slider up to say 10,000 samples, or are most of the users happy with a range up to 1,000?
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)
steve
Senior Forum Staff
 
Posts: 34330
Joined: Sat Dec 01, 2007 11:43 am

Re: Sample Printer

Permanent link to this post Posted by Gale Andrews » Fri Jan 28, 2011 2:20 am

Thanks for spending time on this, Steve.

steve wrote:
Gale Andrews wrote:You can export a file that has sample values without indices, but not one like that which also has the sample rate.

Isn't that what samplprinter3.ny does if "Sample Values Only" is selected?

No, it produces sample values without indices and without sample rate.


steve wrote:I get the impression that HTML output is not generally very useful (though it suited the original purpose of the plug-in).For the sake of simplicity, would it be better to drop that option altogether and stick with plain text output?

Nobody I have conversed with wanted HTML, but there seems no harm including it.


steve wrote:For stereo files, would it be better to: Alternate values as "Left channel sample > Right channel sample > Left channel sample > Right channel sample > ...."or List the Left channel values first, then list the Right channel values?

No-one has objected to "list left, then right" but I think "alternate values" is more usual. If someone wants "left then right" they can split the stereo track I guess.


steve wrote:Regarding the limited number of samples that can be analysed.
With recent improvements to memory management I think it may be possible to work around this limitation. How much of an issue is this for users? Is it worth the effort?...

I suppose the question now is whether we still want to have the "Number of Samples" slider.
I think that it is probably still good to keep the slider so that the unwary user does not print out a multi-Gigabyte file and crash their computer trying to open it. Perhaps we should just increase the range of the slider up to say 10,000 samples, or are most of the users happy with a range up to 1,000?

What is the workaround for the limitation? I assume Nyquist still doesn't release the memory until processing is finished?

I think the slider is best kept for the reason you state, but if the limitation does not exist any more, don't limit the value that can be entered in the box. I think the help needs to state that exceeding the slider range will produce very large output files.

However I notice that in sample printer if I select say 50 samples and the slider is still at default (100) then "Nyquist did not return audio" occurs. I guess at the least that needs an error message. In fact I wonder if it would be more convenient if the number of samples [x] specified in the plug-in was the *first* [x] in the selection as now, but export continues if the selection is shorter than [x]. In other words, the control could be "limit output to: [samples]" or similar and there would be much less need to fiddle with the slider if you had already selected exactly the samples you wanted on the screen.


steve wrote: 1). Decide on Output Path.
How do we want to handle the output file path:
Valid paths that are common to all platforms are

* The users "Home" folder
* Root folder (often not writeable)
* Desktop (could be a problem)
* Fully qualified existing folder (must use forward slash)

"Home" folder is probably the safest.
"Append to Home" would be very convenient for many users (I would probably use this option).
"Fully Qualified Existing Path" is the most flexible, but may be too complex for some users.
Rather than just failing with an invalid path I think I could use the home folder as a fall-back.

Personally I would keep it simple as in 78rpm EQ Curve with only one "output" box for path, without options to choose. Your suggested "use home as fall-back" would I think be better for 78rpm EQ Curve too.

steve wrote: 2) Decide Multiple tracks vs.Append. (prefer append if not too slow)
I think "append" to file is less problematic than multiple files, and may be more convenient for many users (saves needing to open multiple files).

The users I've come across so far seem to prefer multiple files. Appending could limit the number of samples you could usefully specify. I think though it's important enough to offer a choice for "multiple track write mode" as a control (more so than having two "output" boxes).

I'm a bit concerned about the "reset" choice being confusing until I see it working. It could be easier (though much less functional) just to have the plug-in export the first selected track.

Are we still facing a choice about "waiting for 1.3.13"? I don't think it matters to wait.


steve wrote: 3) Decide on output file formats.

I think the current list of five "file types" is fine (though maybe "Samples List" would be a better term than "Data List"). I'm not sure if HTML really needs to be "extended" or user-defined given there is little demand for HTML anyway. I think additional header information should be an option for all file types.


steve wrote: 4) Decide on output data formats.
Current options include "Data Only" and "Indexed Data"
Additional information could be included as an additional user option.

5) Additional information could precede the data (for any of the format options) and could include:

1 Sample Rate
2 Name (from file name) Append number for multiple tracks.
3 Mono/Stereo
4 Output file path/name
5 Number of samples
6 Duration (seconds)
7 Average sample value
8 RMS value
9 Maximum / Minimum values
10 Optional user text (text field in GUI)

I don't think that we can have "switches" for each of these in the interface, so it's a matter of deciding which will be most useful and giving the option of including all of those or none of those (or some other subset of combinations).

My take is that the first three in the list above should be included as standard - you get them whether you like it or not. I assume most would like it since there are complaints that some current options don't include sample rate. I think 4 and 10 are unimportant. A couple of people asked for sample format.

A couple of people asked for output in dB instead of dB FS which would have to be another control. If this is a feasible request I think it's an important one.

One person asked for the index value to be an actual time position (he was selecting small numbers of samples at arbitrary regions in the track, so 1,2,3... wasn't that helpful). I guess the only sensible way to accommodate that if we wanted to is to accept that if someone asked for indices it would be both the index number of the sample and its time position.




Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual
Gale Andrews
Quality Assurance
 
Posts: 13886
Joined: Fri Jul 27, 2007 12:02 am

Re: Sample Printer

Permanent link to this post Posted by steve » Fri Jan 28, 2011 6:34 pm

So the data formats that we definitely want are:
1) Sample Values only.
2) Indexed Sample Values
and for the following "header" information to be included:
"Sample Rate, Name (from file name) Append number for multiple tracks, Mono/Stereo".

So the output could look something like:

indexed list .txt
Code: Select all
Sample-data01
Mono 44100 Hz

1   0.032451
2   0.042184
3   0.062345
....
....


values only list .txt
Code: Select all
Sample-data01
Mono 44100 Hz

0.032451
0.042184
0.062345
....
....


I'm getting a lot less keen on .CSV due to all of the different variations. I think best to keep it simple - if users want CSV they should be able to easily convert a plain text list to the particular CSV format they require. If we're leaving out CSV, then may as well leave out HTML also and that eliminates one control altogether (and simplifies the code).

Gale Andrews wrote:No-one has objected to "list left, then right" but I think "alternate values" is more usual. If someone wants "left then right" they can split the stereo track I guess.

I think that splitting the track is probably unnecessary hassle for the user. If you can think of a good, clear, brief description I could add an option to output stereo samples values as either "Left Channel then Right Channel" or "Alternate L,R,L,R..."

Gale Andrews wrote:What is the workaround for the limitation? I assume Nyquist still doesn't release the memory until processing is finished?

It's obvious now, I don't know why I didn't think of it before :P (probably because when I originally wrote the plug-in I only required a small number of sample values).
The "workaround" is that there is really no need to load the sound into memory in the first place. We don't need to return the sound, so we can just read samples (destructively) from "s" as we need them. This way, "s" is not loaded into RAM so there is no problem with long selection.
Unfortunately this approach cannot be used to solve the "Normalize long selections" issue because for normalising we need to retain "s" so that we can return it (normalised) back to the track.

Gale Andrews wrote:I think the help needs to state that exceeding the slider range will produce very large output files.

I would have thought that it should be pretty obvious that if you have millions of lines of text the file will be quite large?
I would expect users try the effect within the slider range before they start experimenting with extreme numbers. Once they've processed a few thousand samples they will see the size of the files produced. However, if there's room in the help file there's no harm in mentioning it. (It's that darned small help screen issue again :( )

Gale Andrews wrote:"limit output to: [samples]"

Yes, spotted that one.

Gale Andrews wrote:only one "output" box for path, without options to choose

Personally I find the "Append to Home" option really convenient.

What I may be able to do (need to test this) is just have one "Output Path" box without options, and:
If <path> is empty, use "Home"
If home/<output path> exists, use "home/<path>
If home/<output path> does not exist, look for <path> (fully qualified output path)
If no valid path found, fall back to "Home"

For example, on my computer:
Desktop or /Desktop or /Desktop/ would output to /home/<user name>/Desktop.
/home/<user name>/Desktop would output to /home/<user name>/Desktop (because /home/<user name>/home/<user name>/Desktop does not exist).
<non-existent> would output to /home/<user name>.

Gale Andrews wrote:I think though it's important enough to offer a choice for "multiple track write mode" as a control

Yes I think it could be a useful option. I'll keep it unless user feedback indicates that everyone prefers one or the other (once they have the choice, which they don't yet).

Gale Andrews wrote:I'm a bit concerned about the "reset" choice being confusing

Yes, me too.
It is required if writing to multiple files is supported so that the file counter can be reset to zero.

For example, with 5 tracks in Audacity, multi-file export, base file name "data":
Output files will be:
data0.txt, data1.txt, data2.txt, data3.txt, data4.txt (or would it be better to start numbering from "data1.txt" ?)

Then you want to process a longer section of those tracks and overwrite the existing files.
Using Storer's suggestion, the user could manually delete the files before re-exporting, but otherwise the files will not be overwritten and the exported files will be:
data5.txt, data6.txt, data7.txt, data8.txt, data9.txt

The "Reset" button provides a convenient method to reset the file number counter (it removes the property from *SCRATCH*)
A separate control "Reset file number counter: Yes / No" would be no more clear, because it is not possible to reset the counter and run the effect. It has to be done as a separate "run" of the plug-in. As I mentioned before, this is a case where it would be extremely useful to be able to run a plug-in and keep the plug-in open after it has finished.

Gale Andrews wrote:It could be easier (though much less functional) just to have the plug-in export the first selected track.

The "Reset" button is only required if exporting to multiple files. Multiple tracks could be written (appended) to a single file without the need to use *SCRATCH* and so no need to have a Reset button. However, without using *SCRATCH" the "header" information could not include a track number.

Gale Andrews wrote:Are we still facing a choice about "waiting for 1.3.13"?

*SCRATCH* and (get-env) are not in Audacity 1.3.12
*SCRATCH* is used as a track/file counter and (get-env) is used to locate the "home" directory. It is not possible to determine the users home folder without the (get-env) function.

Gale Andrews wrote: maybe "Samples List" would be a better term than "Data List"

Yes I think so.

Gale Andrews wrote:the first three in the list above should be included as standard - you get them whether you like it or not..... I think 4 and 10 are unimportant

I can include "Name (+ number), Mono/stereo and Sample Rate" as standard.
My reasoning for making them optional was if anyone was wanting to directly import the files into another application. If they were doing that then they would probably just want the data and no other text in the file. If no-one is doing that then there's no need for the option. It would probably be easier to provide the option now but comment it out rather than adding the option later.

I think that "4 Output file path/name" needs to be displayed after the export has completed. Particularly important if the path entered was invalid and the fall-back path was used. Number of samples and duration would probably be useful too so that the user can see that they have processed what they intended. Something like:
Code: Select all
Data written to:
C:\Documents and Settings\<username>\data.txt
27 samples - 0.000 seconds.


Gale Andrews wrote:A couple of people asked for sample format.

You mean the bit-depth?
That's a "Feature Request" or an item for the Nyquist Wish List
Nyquist does not know what the track bit-depth is. Nyquist always receives the data as 32 bit float.

It would often be useful if Nyquist knew more about "s".
Audacity has information about the track that is not available to Nyquist.
The number of samples is passed to Nyquist in the variable "LEN" and the actual audio data in "S", but that's all.
What I would like to see is additional track data passed to Nyquist, possibly as a property list, to include:
  • Track name,
  • Channel allocation (for mono tracks),
  • Peak Amplitude (solves the Normalising issue for some situations),
  • RMS,
  • Start time,
  • Envelope Points,
  • Bit-depth.

Gale Andrews wrote:A couple of people asked for output in dB instead of dB FS

Do you mean dBFS instead of linear?
Current output is the linear value. It could be output as "dB" (which would be dBFS as in the "Waveform (dB)" view).
I can add that as an option.

Gale Andrews wrote:On person asked for the index value to be an actual time position

That's another Nyquist wish list / Feature Request.
Nyquist does not know the track time. As far as Nyquist is concerned the beginning of the selection is t=0.

We could have the "index" as a time value relative to the start of the selection, but that's probably not what the user wants, and at 48 kHz sample rate the index would be incrementing in steps of 0.000020833333 seconds.

If the user wants the track time value they need to look in the Selection Toolbar. Sample times will then be "start time + (index/sample rate)"
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)
steve
Senior Forum Staff
 
Posts: 34330
Joined: Sat Dec 01, 2007 11:43 am

Re: Sample Printer

Permanent link to this post Posted by Gale Andrews » Fri Jan 28, 2011 11:58 pm

steve wrote:I'm getting a lot less keen on .CSV due to all of the different variations. I think best to keep it simple - if users want CSV they should be able to easily convert a plain text list to the particular CSV format they require. If we're leaving out CSV, then may as well leave out HTML also and that eliminates one control altogether (and simplifies the code).

I think HTML could be a time saver for web publication and I might be +0.5 on keeping it even though none of my small sample of users were interested in it. Your call.


steve wrote:If you can think of a good, clear, brief description I could add an option to output stereo samples values as either "Left Channel then Right Channel" or "Alternate L,R,L,R..."

My best shot so far:
Code: Select all
;control chan "Channel layout for stereo" choice "L  -  R lines,L block above R" 0   


steve wrote:
Gale Andrews wrote:I think the help needs to state that exceeding the slider range will produce very large output files.

I would have thought that it should be pretty obvious that if you have millions of lines of text the file will be quite large?

It may depend whether this goes in an Audacity release (ATM I think there is a strong case especially as Analyze menu is not yet overloaded). If someone downloaded it optionally, the assumption would be they have some idea what it will do. If it's in a release it could be open to a naïve user who just "tries" the effect to see what happens and opens the resulting file. They'll be used to 3 MB for an MP3, so 3 MB for a text file won't on the face of it seem outlandish.


steve wrote:Personally I find the "Append to Home" option really convenient.

I think the drawback is the amount of explanation this would need in the Help. in particular I think few on Windows would understand "Append to Home". They can understand typing a path in a box (probably).


steve wrote:For example, with 5 tracks in Audacity, multi-file export, base file name "data":
Output files will be:
data0.txt, data1.txt, data2.txt, data3.txt, data4.txt (or would it be better to start numbering from "data1.txt" ?)

I think better to start from "data1.txt". A "0" file is only used as far as I recall in export multiple for a file before the first label.


steve wrote:The "Reset" button is only required if exporting to multiple files. Multiple tracks could be written (appended) to a single file without the need to use *SCRATCH* and so no need to have a Reset button. However, without using *SCRATCH" the "header" information could not include a track number.

OK. I think the benefits of *SCRATCH" probably outweigh the potential confusion. I think the worst confusions are a) the word "Reset" itself; b) you can't "see" the counter to know what value it has.

I think a "phrase" rather just "Reset" would help for a), as would not having it as first choice. I don't think "Reset Counter" will help much. Does "Multi-file from 1" or similar convey any more, so that people leave that choice alone if they are not writing multiple files?

For b), could a choice "Show Multi-file name" or similar show you the counter, as Show Path shows you the path?


steve wrote:*SCRATCH* and (get-env) are not in Audacity 1.3.12

And even the multi-choice boxes (of which we'll have many here) require 1.3.x, so I guess we accept you need latest Audacity for this plug-in, and also possibly consider a stripped down, simple legacy version if there is any demand.


steve wrote:I can include "Name (+ number), Mono/stereo and Sample Rate" as standard.
My reasoning for making them optional was if anyone was wanting to directly import the files into another application.

I'm sure people are doing that but those same people still seem to want "sample rate" in the header. I think the reason is that in e.g. spreadsheets you can simply select the data to be used and then type what you want for the legend. If so then it's handy to have text for the legend visible in the input. I suppose you could have the choice for header of "none", "minimal" or "full", but if only two choices are desired then "minimal" or "full", not "none" or "full".

steve wrote:
I think that "4 Output file path/name" needs to be displayed after the export has completed. Particularly important if the path entered was invalid and the fall-back path was used. Number of samples and duration would probably be useful too so that the user can see that they have processed what they intended. Something like:
Code: Select all
Data written to:
C:\Documents and Settings\<username>\data.txt
27 samples - 0.000 seconds.


Agreed.


steve wrote:You mean the bit-depth?

Yes "sample format" as in the Quality Preferences = bit depth.

steve wrote:What I would like to see is additional track data passed to Nyquist, possibly as a property list, to include:
  • Track name,
  • Channel allocation (for mono tracks),
  • Peak Amplitude (solves the Normalising issue for some situations),
  • RMS,
  • Start time,
  • Envelope Points,
  • Bit-depth.

I've added that list (and "track time" as per below) to Nyquist Wish List.


steve wrote:
Gale Andrews wrote:A couple of people asked for output in dB instead of dB FS

Do you mean dBFS instead of linear?
Current output is the linear value. It could be output as "dB" (which would be dBFS as in the "Waveform (dB)" view).
I can add that as an option.

Sorry for terminology mix up - just copied what someone wrote. But yes, the logarithmic Waveform (dB) values would be very welcome as an option.


steve wrote:We could have the "index" as a time value relative to the start of the selection, but that's probably not what the user wants, and at 48 kHz sample rate the index would be incrementing in steps of 0.000020833333 seconds.

If the user wants the track time value they need to look in the Selection Toolbar. Sample times will then be "start time + (index/sample rate)"

Perhaps that might be a useful "tip" for the "Help" and possibly not that hard to get a spreadsheet to calculate it? I think "time from selection start" and "track time" are both useful, but not worth adding either until we can support both?



Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual
Gale Andrews
Quality Assurance
 
Posts: 13886
Joined: Fri Jul 27, 2007 12:02 am

PreviousNext

Return to Plug-in Archive



Who is online

Users browsing this forum: No registered users and 0 guests