aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/jsyn/engine
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/jsyn/engine')
-rw-r--r--src/com/jsyn/engine/MultiTable.java6
-rw-r--r--src/com/jsyn/engine/SynthesisEngine.java10
2 files changed, 3 insertions, 13 deletions
diff --git a/src/com/jsyn/engine/MultiTable.java b/src/com/jsyn/engine/MultiTable.java
index 48b03cd..6606639 100644
--- a/src/com/jsyn/engine/MultiTable.java
+++ b/src/com/jsyn/engine/MultiTable.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.
@@ -20,7 +20,7 @@ package com.jsyn.engine;
* Multiple tables of sawtooth data.
* organized by octaves below the Nyquist Rate.
* used to generate band-limited Sawtooth, Impulse, Pulse, Square and Triangle BL waveforms
- *
+ *
<pre>
Analysis of octave requirements for tables.
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