|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.softsynth.jmsl.util.Oof
public class Oof
One over F distribution after R.F. Voss's algorithm,
taken from Dodge/Jerse "Computer Music", Schirmer Books, page 290, translated from the Fortran
Each object maintains its own last value and random driver, so all you have to do is call next()
on your Oof object to generate a 1/f sequence.
| Constructor Summary | |
|---|---|
Oof(int numBits)
Constructor, specify number of bits in desired output range ex. |
|
| Method Summary | |
|---|---|
int |
getNext()
|
int |
getSeed()
|
static void |
main(java.lang.String[] args)
|
int |
next()
Return next value in sequence, then generate a new one. |
void |
randomize()
Set seed from system time. |
void |
reset()
Reset sequence generator so that it will restart at last saved seed value. |
void |
setNext(int next)
UNIMPLEMENTED Set next value in sequence. |
void |
setSeed(int seed)
Set pseudo-random generator seed for repeatable sequences. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Oof(int numBits)
| Method Detail |
|---|
public int next()
SequenceGenerator
next in interface SequenceGeneratorpublic int getNext()
getNext in interface SequenceGeneratorpublic void setNext(int next)
setNext in interface SequenceGeneratorpublic void setSeed(int seed)
setSeed in interface SequenceGeneratorpublic int getSeed()
getSeed in interface SequenceGeneratorpublic void randomize()
randomize in interface SequenceGeneratorpublic void reset()
reset in interface SequenceGeneratorpublic static void main(java.lang.String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||