|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.beadsproject.beads.core.Bead
net.beadsproject.beads.core.UGen
net.beadsproject.beads.ugens.Envelope
net.beadsproject.beads.gui.Slider
public class Slider
The Class Slider.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class net.beadsproject.beads.ugens.Envelope |
---|
Envelope.Segment |
Nested classes/interfaces inherited from class net.beadsproject.beads.core.UGen |
---|
UGen.OutputInitializationRegime, UGen.OutputPauseRegime |
Field Summary |
---|
Fields inherited from class net.beadsproject.beads.ugens.Envelope |
---|
myBufOut |
Fields inherited from class net.beadsproject.beads.core.UGen |
---|
bufferSize, bufIn, bufOut, context, ins, outputInitializationRegime, outputPauseRegime, outs |
Constructor Summary | |
---|---|
Slider(AudioContext context,
java.lang.String nam,
float min,
float max,
float val)
Instantiates a new slider. |
|
Slider(AudioContext context,
java.lang.String nam,
float min,
float max,
float val,
boolean log)
|
Method Summary | |
---|---|
void |
calculateBuffer()
Called by the signal chain to update this UGen's ouput data. |
float |
calculateValueFromFract(float fract)
|
javax.swing.JComponent |
getComponent()
Gets the panel. |
float |
getMax()
Gets the max. |
float |
getMin()
Gets the min. |
java.lang.String |
getName()
Gets the Bead's name. |
float |
getSmoothnessInterval()
|
float |
getValueFract()
|
static void |
main(java.lang.String[] args)
|
void |
runTextSelectPanel()
|
void |
setMax(float max)
Sets the max. |
void |
setMin(float min)
Sets the min. |
void |
setSmoothnessInterval(float smoothnessInterval)
|
void |
setValue(float val)
Clears the list of Segments and sets the current value of the Envelope immediately. |
void |
setValueFract(float fract)
|
void |
storeValue(float f)
|
void |
useLogBuffer(boolean useLogBuffer)
|
Methods inherited from class net.beadsproject.beads.ugens.Envelope |
---|
addSegment, addSegment, addSegment, addSegments, clear, getCurrentValue, getValue, isLocked, lock |
Methods inherited from class net.beadsproject.beads.core.UGen |
---|
addDependent, addInput, addInput, clearDependents, clearInputConnections, containsInput, crossfadeInput, getConnectedInputs, getContext, getEnvelopes, getIns, getNumberOfConnectedUGens, getOuts, getTimeTakenLastUpdate, getValue, initializeOuts, isTimerMode, isUpdated, noInputs, pause, printInBuffers, printInputList, printOutBuffers, removeAllConnections, removeDependent, setInputProxy, setOutputProxy, setOutsToPause, setProxy, setTimerMode, update, zeroIns, zeroOuts |
Methods inherited from class net.beadsproject.beads.core.Bead |
---|
getKillListener, isDeleted, isPaused, kill, message, messageReceived, setKillListener, setName, start, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Slider(AudioContext context, java.lang.String nam, float min, float max, float val)
context
- the contextname
- the namemin
- the minmax
- the maxvalue
- the valuepublic Slider(AudioContext context, java.lang.String nam, float min, float max, float val, boolean log)
Method Detail |
---|
public float calculateValueFromFract(float fract)
public void setValueFract(float fract)
public float getValueFract()
public java.lang.String getName()
Bead
getName
in class Bead
public void setValue(float val)
Envelope
setValue
in class Envelope
val
- the new value.Envelope.setValue(float)
public float getMin()
public void setMin(float min)
min
- the new minpublic float getMax()
public void setMax(float max)
max
- the new maxpublic float getSmoothnessInterval()
public void setSmoothnessInterval(float smoothnessInterval)
public void calculateBuffer()
UGen
UGen.bufIn
and putting data
into UGen.bufOut
in some way. UGen.bufIn
and UGen.bufOut
are 2D arrays of floats of the form float[numChannels][bufferSize]. The length of the buffers is given by
UGen.bufferSize
, and the number of channels of the input and output buffers are given by UGen.ins
and UGen.outs
respectively.
calculateBuffer
in class Envelope
public javax.swing.JComponent getComponent()
getComponent
in interface InterfaceElement
public void storeValue(float f)
public void runTextSelectPanel()
public void useLogBuffer(boolean useLogBuffer)
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |