Re: [LAD] engine, validation, ui separation,

From: James Morris <jwm.art.net@email-addr-hidden>
Date: Fri Mar 04 2011 - 13:53:45 EET

On 4 March 2011 11:33, Paul Davis <paul@email-addr-hidden> wrote:
> On Fri, Mar 4, 2011 at 6:30 AM, James Morris <jwm.art.net@email-addr-hidden> 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/
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-dev
Received on Fri Mar 4 16:15:02 2011

This archive was generated by hypermail 2.1.8 : Fri Mar 04 2011 - 16:15:02 EET