Re: Adjustable Fade
Posted: Sat Nov 03, 2012 6:17 am
Accept the first valid text data as the required units, then discard any other valid text (message in debug window) to say what happened)? Or refuse with an explicit error message? I guess the latter is preferable.steve wrote:[...]There is also quite complex logic involved in working out what is valid data and what is not. The code needs to be able to "handle" error cases as well as valid data - the plug-in should not just fail with no error message and should not fail with a cryptic error message that only appears in the debug window. For example, what should the code do if someone enters % and dB? We would not just want the generic "Nyquist did not return audio".
It sounds as if that would be the easiest of the problems. Can the "%" or "dB" be anywhere in the box? Must it have a space either side? If the user was told for example that if they want dB they must type at the start the text "db" (case insensitive, no quotes) followed by a space, else they get % (so they have a default) I think that would be very understandable.steve wrote:On top of that, how do we make it clear in the UI what the user needs to enter?
If the rule was that they have to write db (case insensitive) followed by a space at the start (for dB), or % followed by a space (for %) that is not so friendly, but would be quite acceptable.
I certainly don't want to give you sleepless nights coding such a thing, but if it substantially improves the interface to have this feature, it may still be worth thinking about.
Gale