aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/jsyn/engine/SynthesisEngine.java
diff options
context:
space:
mode:
authorPhil Burk <[email protected]>2016-08-02 07:52:17 -0700
committerPhil Burk <[email protected]>2016-10-24 08:29:20 -0700
commit580fea450ec0982d0bd8be589f00566267e7b0d1 (patch)
tree0420f768fc7c63208b1720232c447e17af9017af /src/com/jsyn/engine/SynthesisEngine.java
parenta6583e89166f7477a675cf3094a91b303ba7850a (diff)
Instruments: add better synth, pitch control
Diffstat (limited to 'src/com/jsyn/engine/SynthesisEngine.java')
-rw-r--r--src/com/jsyn/engine/SynthesisEngine.java10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/com/jsyn/engine/SynthesisEngine.java b/src/com/jsyn/engine/SynthesisEngine.java
index e966b30..ae16405 100644
--- a/src/com/jsyn/engine/SynthesisEngine.java
+++ b/src/com/jsyn/engine/SynthesisEngine.java
@@ -222,13 +222,6 @@ public class SynthesisEngine implements Synthesizer {
this.frameRate = frameRate;
this.framePeriod = 1.0 / frameRate;
- // Set rate for any units that have already been added.
- for (UnitGenerator ugen : allUnitList) {
- ugen.setFrameRate(frameRate);
- }
-
- // this.numInputChannels = numInputChannels;
- // this.numOutputChannels = numOutputChannels;
setupAudioBuffers(numInputChannels, numOutputChannels);
logger.info("Pure Java JSyn from www.softsynth.com, rate = " + frameRate + ", "
@@ -652,9 +645,6 @@ public class SynthesisEngine implements Synthesizer {
public void add(UnitGenerator ugen) {
ugen.setSynthesisEngine(this);
allUnitList.add(ugen);
- if (frameRate > 0) {
- ugen.setFrameRate(frameRate);
- }
}
@Override