|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.org.toot.synth.modules.oscillator.SingleWave
public class SingleWave
This class represents the wave for WaveOScillator. The data shiuld have the first sample repeated at the end to allow for efficient linear interpolation.
| Constructor Summary | |
|---|---|
SingleWave(float[] data,
float period)
|
|
| Method Summary | |
|---|---|
float |
get(float index)
|
float[] |
getData()
|
float |
getPeriod()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SingleWave(float[] data,
float period)
| Method Detail |
|---|
public float[] getData()
getData in interface Wavepublic float getPeriod()
getPeriod in interface Wavepublic float get(float index)
get in interface Waveindex - the floating point index
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||