aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/jsyn
diff options
context:
space:
mode:
authorPhil Burk <[email protected]>2016-03-23 08:04:50 -0700
committerPhil Burk <[email protected]>2016-03-23 08:04:50 -0700
commitcc63d0a0a4f88c570d52d73caea3d53ddb691fdc (patch)
treee35d51c9cdd8c54d93f8af1fbeb31ba23d04f091 /src/com/jsyn
parent4f81b453628ed710a246fb7a4a1688905ee9cdfb (diff)
Setup CrossFade port so it ranges from -1 to +1.
Diffstat (limited to 'src/com/jsyn')
-rw-r--r--src/com/jsyn/unitgen/CrossFade.java7
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());
}