public final class Prob
extends java.lang.Object
| Modifier and Type | Method and Description | 
|---|---|
| static int | gaussianDynamic(int meanDynamic,
               int stdDeviation)Returns random dynamics dispersed by a gaussian distribution around 
 the mean specified. | 
| static double | gaussianFrequency(double meanFrequency,
                 double stdDeviation)Returns a random frequency dispersed by a gaussian distribution 
 around the mean specified. | 
| static double | gaussianPan(double meanPan,
           double stdDeviation)Returns random pans dispersed by a gaussian distribution around 
 the mean specified. | 
| static double | gaussianPan(double meanPan,
           double stdDeviation,
           double maxPan)Returns random pans dispersed by a gaussian distribution around 
 the mean specified. | 
| static int | gaussianPitch(int meanPitch,
             int stdDeviation)Returns random pitches dispersed by a gaussian distribution around 
 the mean specified. | 
| static double | gaussianRhythmValue(double meanRV,
                   double stdDev,
                   double granularity)Returns random rhythm values dispersed by a gaussian distribution 
 around the mean specified. | 
public static final int gaussianPitch(int meanPitch,
                int stdDeviation)
meanPitch - the pitch that should be most commonly returned 
                     by this method.stdDeviation - the standard deviation measured in semitones.public static final double gaussianFrequency(double meanFrequency,
                       double stdDeviation)
meanFrequency - values returned should average this frequencystdDeviation - the standard deviation. See method commentpublic static final double gaussianRhythmValue(double meanRV,
                         double stdDev,
                         double granularity)
granularity RV will be returned.  Thus if you 
 specify a granularity of JMC.CROTCHET quavers and dotted crotchets
 will not be returned.
 Around 68% of the rhythm values returned will be no greater than the mean plus the standard deviation specified and no less than the mean minus the standard deviation. Around 95% of rhythm values will be within twice this range.
meanRV - the average rhythm value returnedstdDev - an rhythm interval defining the standard 
                    deviation.granularity - a rhythm value representing the minimum sort of 
                    value returned here.  If you only want quavers
                    and multiples of quavers, use JMC.QUAVER.public static final int gaussianDynamic(int meanDynamic,
                  int stdDeviation)
meanDynamic - the dynamic that should be most commonly 
                     returned by this method.stdDeviation - the standard deviation. See method comment.public static final double gaussianPan(double meanPan,
                 double stdDeviation)
Around 68% of the pans returned will be no greater than the mean plus the standard deviation specified and no less than the mean minus the standard deviation. Around 95% of pans will be within twice this range.
meanPan - the pan that should be most commonly 
                     returned by this method.stdDeviation - the standard deviation. See method comment.public static final double gaussianPan(double meanPan,
                 double stdDeviation,
                 double maxPan)
maxPan. This method is useful if 
 output from more than two speakers is required.
 Around 68% of the pans returned will be no greater than the mean plus the standard deviation specified and no less than the mean minus the standard deviation. Around 95% of pans will be within twice this range.
meanPan - the pan that should be most commonly 
                     returned by this method.stdDeviation - the standard deviation. See method comment.