From cc63d0a0a4f88c570d52d73caea3d53ddb691fdc Mon Sep 17 00:00:00 2001 From: Phil Burk Date: Wed, 23 Mar 2016 08:04:50 -0700 Subject: Setup CrossFade port so it ranges from -1 to +1. --- src/com/jsyn/unitgen/CrossFade.java | 7 ++++--- 1 file 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]. *

- * + * * @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()); } -- cgit v1.2.3