On 4 March 2011 11:33, Paul Davis <paul(a)linuxaudiosystems.com> wrote:
On Fri, Mar 4, 2011 at 6:30 AM, James Morris
<jwm.art.net(a)gmail.com> wrote:
But if multiple UIs are possible, validation
effort is duplicated.
duplication never hurt anyone, much. especially since each instance
might differ in the view of what the limits are.
What about if the engine depends on the limits to be properly set in
order for it to function correctly?
I'm thinking in particular of a sampler and its play and loop ranges.
The loop range must reside within the play range, and the play range
must reside within the actual bounds of the sample.
If I were to add a release loop to this... Then at minimum the end
point of the second loop would need to be after (or equal to) the end
point of the first loop.
I suppose the obvious answer is to put this validation in the set and
get methods of the engine.
I just wondered if someone could define a case where it would be in
the set/get methods of engine, and another case where it should be in
the UI.
Regards,
James.
--
_
:
http://jwm-art.net/
-audio/image/text/code/