diff options
author | Phil Burk <[email protected]> | 2016-03-23 09:28:15 -0700 |
---|---|---|
committer | Phil Burk <[email protected]> | 2016-03-23 09:28:15 -0700 |
commit | eb36cf83f1cca79e76c4ad44fc78077c9428790b (patch) | |
tree | 5f4bef6827f6bd9c29b1ccdf8f2a1fde5000381c /src/com/jsyn/unitgen/GrainFarm.java | |
parent | 431965f53739b2ed9608510781bfc7b9d3b4b0e2 (diff) | |
parent | eeafc364cbd39edc794748a0f2c0626e09ee9bb5 (diff) |
Merge pull request #28 from philburk/docs
Docs
Diffstat (limited to 'src/com/jsyn/unitgen/GrainFarm.java')
-rw-r--r-- | src/com/jsyn/unitgen/GrainFarm.java | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/com/jsyn/unitgen/GrainFarm.java b/src/com/jsyn/unitgen/GrainFarm.java index 7cff6f1..78179bc 100644 --- a/src/com/jsyn/unitgen/GrainFarm.java +++ b/src/com/jsyn/unitgen/GrainFarm.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. @@ -24,11 +24,13 @@ import com.jsyn.util.PseudoRandom; * A unit generator that generates a cloud of sound using multiple Grains. Special thanks to my * friend Ross Bencina for his excellent article on Granular Synthesis. Several of his ideas are * reflected in this architecture. "Implementing Real-Time Granular Synthesis" by Ross Bencina, - * Audio Anecdotes III, 2001. <code><pre> + * Audio Anecdotes III, 2001. + * + * <pre><code> synth.add( sampleGrainFarm = new GrainFarm() ); grainFarm.allocate( NUM_GRAINS ); -</pre><code> - * +</code></pre> + * * @author Phil Burk (C) 2011 Mobileer Inc * @see Grain * @see GrainSourceSine @@ -48,7 +50,7 @@ public class GrainFarm extends UnitGenerator implements UnitSource { PseudoRandom randomizer; private GrainState[] states; private double countScaler = 1.0; - private GrainScheduler scheduler = new StochasticGrainScheduler(); + private final GrainScheduler scheduler = new StochasticGrainScheduler(); public GrainFarm() { randomizer = new PseudoRandom(); |