diff options
Diffstat (limited to 'tests/com')
-rw-r--r-- | tests/com/jsyn/examples/LongEcho.java | 8 | ||||
-rw-r--r-- | tests/com/jsyn/examples/PlayGrains.java | 12 |
2 files changed, 7 insertions, 13 deletions
diff --git a/tests/com/jsyn/examples/LongEcho.java b/tests/com/jsyn/examples/LongEcho.java index 41f21f2..0a86efd 100644 --- a/tests/com/jsyn/examples/LongEcho.java +++ b/tests/com/jsyn/examples/LongEcho.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. @@ -33,7 +33,7 @@ import com.jsyn.util.WaveFileWriter; /** * Echo the input using a circular buffer in a sample. - * + * * @author Phil Burk (C) 2010 Mobileer Inc */ public class LongEcho { @@ -50,9 +50,7 @@ public class LongEcho { private void test() throws IOException { // Create a context for the synthesizer. synth = JSyn.createSynthesizer(); - // Add a tone generator. synth.add(channelIn = new ChannelIn()); - // Add an output mixer. synth.add(channelOut = new ChannelOut()); synth.add(minner = new Minimum()); diff --git a/tests/com/jsyn/examples/PlayGrains.java b/tests/com/jsyn/examples/PlayGrains.java index fd71e68..b9a7b5b 100644 --- a/tests/com/jsyn/examples/PlayGrains.java +++ b/tests/com/jsyn/examples/PlayGrains.java @@ -57,14 +57,12 @@ public class PlayGrains extends JApplet { private static final int NUM_GRAINS = 32; private FloatSample sample; private WaveRecorder recorder; - - private static final boolean useSample = false; private final static boolean useRecorder = false; - // File sampleFile = new File( "samples/instructions.wav" ); - File sampleFile = new File( - // "/Users/phil/Work/jsyn/guitar100/Guitar100_Ocean_1#02.aif" ); - "/Users/phil/Music/samples/ChewyMonkeysWhistle.aiff"); + private static final boolean useSample = false; + // If you enable useSample then you will need to replace the file name below with a valid + // file name on your computer. + private File sampleFile = new File("/Users/phil/Music/samples/ChewyMonkeysWhistle.aiff"); /* Can be run as either an application or as an applet. */ public static void main(String args[]) { @@ -173,8 +171,6 @@ public class PlayGrains extends JApplet { // Start synthesizer using default stereo output at 44100 Hz. synth.start(); - // Start lineOut so it can pull data from other units. - lineOut.start(); if (useRecorder) { grainFarm.output.connect(0, recorder.getInput(), 0); |