aboutsummaryrefslogtreecommitdiffstats
path: root/tests/com/jsyn
diff options
context:
space:
mode:
authorPhil Burk <[email protected]>2016-11-29 09:01:59 -0800
committerGitHub <[email protected]>2016-11-29 09:01:58 -0800
commit5cc223574b43d3f72b746e8f0bb4f31cbd2fd52f (patch)
tree52ca8665e20adfbd2fa3ecdcc13a5c4ac3059c3c /tests/com/jsyn
parent69568a0ab6aaba08eb366b63ce8748fc3a7f256d (diff)
parent009005bbe99ae9c4fb89e0cce5fc49eae798dac3 (diff)
Merge pull request #42 from philburk/startrequired
add isStartRequired, add GroupChannel to synth
Diffstat (limited to 'tests/com/jsyn')
-rw-r--r--tests/com/jsyn/examples/LongEcho.java8
-rw-r--r--tests/com/jsyn/examples/PlayGrains.java12
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);