diff options
author | Phil Burk <[email protected]> | 2016-03-23 08:06:43 -0700 |
---|---|---|
committer | Phil Burk <[email protected]> | 2016-03-23 08:06:43 -0700 |
commit | 41530e2a5dbbcdf06a76c6f55d2ee92b113420e7 (patch) | |
tree | bcaec52225c3b51fd496c4d5a1076793bc420549 | |
parent | 4370d8f5142e4c5fd6c61287bbf9c1901407416d (diff) | |
parent | cc63d0a0a4f88c570d52d73caea3d53ddb691fdc (diff) |
Merge pull request #26 from philburk/xfade
Setup CrossFade port so it ranges from -1 to +1.
-rw-r--r-- | src/com/jsyn/unitgen/CrossFade.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/com/jsyn/unitgen/CrossFade.java b/src/com/jsyn/unitgen/CrossFade.java index 1c9143a..4375fa6 100644 --- a/src/com/jsyn/unitgen/CrossFade.java +++ b/src/com/jsyn/unitgen/CrossFade.java @@ -4,9 +4,9 @@ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -26,7 +26,7 @@ import com.jsyn.ports.UnitOutputPort; * When fade is 0, output is half input[0] and half input[1]. When fade is +1, output is all * input[1]. * <P> - * + * * @author Phil Burk (C) 2009 Mobileer Inc * @version 016 * @see Pan @@ -40,6 +40,7 @@ public class CrossFade extends UnitGenerator { public CrossFade() { addPort(input = new UnitInputPort(2, "Input")); addPort(fade = new UnitInputPort("Fade")); + fade.setup(-1.0, 0.0, 1.0); addPort(output = new UnitOutputPort()); } |