com.frinika.audio.analysis
Class StaticSpectrogramSynth

java.lang.Object
  extended by com.frinika.audio.analysis.StaticSpectrogramSynth
All Implemented Interfaces:
CursorObserver, SpectrogramDataListener, uk.org.toot.audio.core.AudioProcess

public class StaticSpectrogramSynth
extends java.lang.Object
implements uk.org.toot.audio.core.AudioProcess, CursorObserver, SpectrogramDataListener

An attempt at resynthesis from the spectral data. Use the AudioProcess interface to grab the sound. The CursorObserver selects the bin to resynthesize. Doesn't work that well !!!!!

Author:
pjl

Field Summary
 
Fields inherited from interface uk.org.toot.audio.core.AudioProcess
AUDIO_DISCONNECT, AUDIO_OK
 
Constructor Summary
StaticSpectrogramSynth(SpectrumDataBuilder data)
          Contruct a synth that will attempt to resynthesize using a set of oscillators.
 
Method Summary
 void close()
           
 OscillatorNode[] getOscillatorBank()
           
 void notifyCursorChange(int pix)
           
 void notifyMoreDataReady()
           
 void notifySizeChange(java.awt.Dimension d)
           
 void open()
           
 int processAudio(uk.org.toot.audio.core.AudioBuffer buffer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StaticSpectrogramSynth

public StaticSpectrogramSynth(SpectrumDataBuilder data)
Contruct a synth that will attempt to resynthesize using a set of oscillators.

Parameters:
data - Spectral Data
Method Detail

getOscillatorBank

public OscillatorNode[] getOscillatorBank()
Returns:
The current oscillators

close

public void close()
Specified by:
close in interface uk.org.toot.audio.core.AudioProcess

open

public void open()
Specified by:
open in interface uk.org.toot.audio.core.AudioProcess

processAudio

public int processAudio(uk.org.toot.audio.core.AudioBuffer buffer)
Specified by:
processAudio in interface uk.org.toot.audio.core.AudioProcess

notifyCursorChange

public void notifyCursorChange(int pix)
Specified by:
notifyCursorChange in interface CursorObserver

notifyMoreDataReady

public void notifyMoreDataReady()
Specified by:
notifyMoreDataReady in interface SpectrogramDataListener

notifySizeChange

public void notifySizeChange(java.awt.Dimension d)
Specified by:
notifySizeChange in interface SpectrogramDataListener
Parameters:
d -