public final class Auralizor
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PROP_POSITION |
static java.lang.String |
PROP_REPORT_PERIOD |
static java.lang.String |
PROP_SCALE |
static java.lang.String |
PROP_TIMESCALE |
| Constructor and Description |
|---|
Auralizor(QDataSet ds)
create an Auralizor for rendering the dataset to the sound system.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener) |
void |
addPropertyChangeListener(java.lang.String propname,
java.beans.PropertyChangeListener listener) |
javax.swing.JPanel |
getControlPanel() |
Datum |
getFramePosition()
return the actual instant being played, getting the position from the line.
|
Datum |
getPosition() |
Datum |
getReportPeriod() |
double |
getTimeScale() |
boolean |
isPlaying() |
boolean |
isScale() |
void |
playSound()
begin streaming the sound.
|
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener) |
void |
removePropertyChangeListener(java.lang.String propname,
java.beans.PropertyChangeListener listener) |
void |
reset() |
void |
setDataSet(QDataSet ds)
set the dataset to stream.
|
void |
setPlaying(boolean playing) |
void |
setPosition(Datum position) |
void |
setReportPeriod(Datum reportPeriod)
frequency reports are issued.
|
void |
setScale(boolean scale) |
void |
setTimeScale(double timeScale)
Speed or slow the sound by this much, greater than one speeds up, less than one slows down.
|
void |
start()
begin streaming the sound.
|
public static final java.lang.String PROP_POSITION
public static final java.lang.String PROP_SCALE
public static final java.lang.String PROP_TIMESCALE
public static final java.lang.String PROP_REPORT_PERIOD
public Auralizor(QDataSet ds)
ds - rank 1 dataset with DEPEND_0 convertible to seconds.public final void setDataSet(QDataSet ds)
ds - the rank 1 dataset with DEPEND_0 convertible to seconds or be a time location unit, or rank 2 waveform.public javax.swing.JPanel getControlPanel()
public void reset()
public Datum getPosition()
public void setPosition(Datum position)
public Datum getFramePosition()
DataLine.getLongFramePosition();public boolean isScale()
public void setScale(boolean scale)
public double getTimeScale()
public void setTimeScale(double timeScale)
timeScale - public Datum getReportPeriod()
public void setReportPeriod(Datum reportPeriod)
reportPeriod - public boolean isPlaying()
public void setPlaying(boolean playing)
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
public void addPropertyChangeListener(java.lang.String propname,
java.beans.PropertyChangeListener listener)
public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
public void removePropertyChangeListener(java.lang.String propname,
java.beans.PropertyChangeListener listener)
public void start()
playSound()public void playSound()
start()