footfall.synths
Class FootFallSynth

java.lang.Object
  extended byfootfall.synths.FootFallSynth
All Implemented Interfaces:
java.lang.Runnable
Direct Known Subclasses:
FootFallSynthByCell, FootFallSynthByFrame

public abstract class FootFallSynth
extends java.lang.Object
implements java.lang.Runnable

Abstract class for synthesizing footfall sounds based pressure data. Two ways to synthesize granular sounds: (1) by whole frames or (2) by each individual foot pressure cell.


Constructor Summary
FootFallSynth()
          Abstract class for synthesizing footfall sounds based pressure data.
FootFallSynth(FootFallStream footfallstream)
          Abstract class for synthesizing footfall sounds based pressure data with given footfall stream as input.
 
Method Summary
 float getParam(java.lang.String sParam)
          Returns the value for the specified string parameter
 GrainPlayer getPlayer()
          Get the grain player for purposes like setting volume, retrieving bit rate etc.
 void run()
          Thread's run method to update() the current frame non-stop
 void setDisplay(DisplaySound displaysound)
          Set the oscilloscope to specified display
 void setFootFallStream(FootFallStream footfallstream)
          Set the input footfall stream
 void setParam(java.lang.String sParam, float nVal)
          Set the value for the specified string parameter
 void start()
          Start footfall sound synthesis
 void stop()
          Stop footfall sound synthesis
abstract  void synthesizeFootFallSound()
          Abstract method to retrieve the current frame and generate the appropriate sound via frame-based or cell-based granular synthesis
 void update()
          Called by thread.run().
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FootFallSynth

public FootFallSynth()
Abstract class for synthesizing footfall sounds based pressure data. Sets the appropriate bit rate and initializes the grain generator and player by calling FootFallSynth(FootFallStream).


FootFallSynth

public FootFallSynth(FootFallStream footfallstream)
Abstract class for synthesizing footfall sounds based pressure data with given footfall stream as input. Sets the appropriate bit rate and initializes the grain generator and player.

Method Detail

getParam

public float getParam(java.lang.String sParam)
Returns the value for the specified string parameter

Parameters:
sParam - One of the following: crunchiness, compression, grainsize, carpet, woodenness, creakiness

getPlayer

public GrainPlayer getPlayer()
Get the grain player for purposes like setting volume, retrieving bit rate etc.


setDisplay

public void setDisplay(DisplaySound displaysound)
Set the oscilloscope to specified display

Parameters:
displaysound - Oscilloscope Display panel

setFootFallStream

public void setFootFallStream(FootFallStream footfallstream)
Set the input footfall stream

Parameters:
footfallstream - New footfall stream

run

public void run()
Thread's run method to update() the current frame non-stop

Specified by:
run in interface java.lang.Runnable

setParam

public void setParam(java.lang.String sParam,
                     float nVal)
Set the value for the specified string parameter

Parameters:
sParam - One of the following: crunchiness, compression, grainsize, carpet, woodenness, creakiness
nVal - Float value to set

start

public void start()
Start footfall sound synthesis


stop

public void stop()
Stop footfall sound synthesis


synthesizeFootFallSound

public abstract void synthesizeFootFallSound()
Abstract method to retrieve the current frame and generate the appropriate sound via frame-based or cell-based granular synthesis


update

public void update()
Called by thread.run(). Initialize the grains. Generate/synthesize the sound. Play the grains. Display the oscilloscope if valid.