X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Mixer.py;h=8fed5f592dd15acaa89c993cef6a05c66f94b221;hb=6be10909dd3b8ffd5f9c0f069ca745e364834293;hp=4ef57fe8f98f732d827e292e37ab8674496fd7cb;hpb=97b83b23e43e16f98cc8e2f9d1ac3f55d0de580c;p=audiocontrol.git diff --git a/Mixer.py b/Mixer.py index 4ef57fe..8fed5f5 100644 --- a/Mixer.py +++ b/Mixer.py @@ -141,18 +141,18 @@ class Mixer(Views.View): def __call__(self, value): self._mixer.set(self._channel, value) - def assignController(self, controller, title, channel, min=-12.0, max=6.0): + def assignController(self, controller, title, channel, min=-12.0, max=6.0, stops = [ 0.0 ]): controller.assign(title, self.ParamSetter(self, channel), self.ParamGetter(self, channel), Events.Event(self._context, channel), - min, max, [ 0.0 ]) + min, max, stops) class AssignController(Actions.Action): - def __init__(self, name, mixer, controller, title, channel, min=-12.0, max=6.0): + def __init__(self, name, mixer, controller, title, channel, min=-12.0, max=6.0, stops = [ 0.0 ]): Actions.Action.__init__(self, name) self._mixer = mixer self._controller = controller @@ -160,13 +160,15 @@ class AssignController(Actions.Action): self._channel = channel self._min = min self._max = max + self._stops = stops def __call__(self, binding): self._mixer.assignController(self._controller, self._title, self._channel, self._min, - self._max) + self._max, + self._stops) class MuteChannel(Actions.Action):