OK, thanks. I see those parameters in pluginsettings.cfg.steve wrote:Generator "Presets" do not store the duration setting.Gale Andrews wrote:That is a design limitation if even user presets don't save the duration, yes.
This is an example of how the settings are stored for the "Tone" generator:
Code: Select all
Parameters=Amplitude="0.800000000000" Frequency="440.000000000000" Interpolation="Linear" Waveform="Sine"
We could get over that by adding an option of some kind for duration.steve wrote:"Presets" look a bit silly for the "Silence" generator because there are no settings other than "duration" (which is not saved). This is a (small) downside from having a common interface design for all Audacity effects.
I was not envisaging the checkbox greying out the time control. You might want to always save the current duration into a preset, but be able to modify the duration to be generated.steve wrote:That sounds reasonable. How would you envisage it?Gale Andrews wrote: Perhaps it would be nice to be able to specify "automatic" in the preset, meaning that when you recalled the preset it would not change the duration in the control,
One possibility:
- A checkbox for "Use Selection Duration".
- When enabled, the "duration" time control is greyed out.
- When disabled the time control is honoured by Chains and saved in presets.
I assume you mean that if the new option is enabled and you make a selection in the waveform, the greyed out time value would be the selected length, and when there is no selection the greyed out time value would be the last used duration? If so, the duration shown in the time control would be as now, but the greying out could be misconstrued as something other than that displayed duration being used (perhaps a preset, but presets are never loaded when opening the generator from the Generate Menu).
"Selection Duration" could be taken to mean the waveform selection, but if generating at the cursor there is no waveform selection duration.
Because generators are a special case where the duration is part of the "effect", I was envisaging that Chains would use the selection duration encountered in the waveform (or the last used duration if there is no selection encountered), unless the Chain enabled a preset. A preset that had a saved duration would over-ride the encountered or last used duration.
All I was envisaging that the checkbox in the generator would do is determine if the duration was saved into the preset (as the user would see it, whether loading the preset could change the duration control). Perhaps "Automatic" was implying more than I intended. The checkbox could be labelled "Save Duration into User Presets".
Perhaps something like you suggest might be neater, but at the moment I can see ambiguities unless I am misunderstanding what your idea is.
steve wrote:It still does nothing for the issue that there is no way to specify "where" the silence is generated. How would this behave if the Chain is applied to a 30 second track and the Chain generates 5 seconds of silence?
Without options, it would have to reduce the waveform selection (and in this case the track) by 25 seconds. At least sometimes this is what the user might want when applying the Chain to the project, but many times something else might be wanted.
Because generators are this "special case", and we have the difference where Chains could be applied to projects or to (all of) imported files, I'm not convinced the generator commands in Chains should have a load of options. Also what would it mean for generators if there was a general option to apply Chain commands to one or more specific selections, ignoring the waveform selection?
Would it not be preferred to simply use an appropriate Nyquist effect if you wanted e.g. to silence the lead in and fade out in imported files?
Gale