com.frinika.audio.analysis
Class StaticSpectrogramSynth
java.lang.Object
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
Fields inherited from interface uk.org.toot.audio.core.AudioProcess |
AUDIO_DISCONNECT, AUDIO_OK |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StaticSpectrogramSynth
public StaticSpectrogramSynth(SpectrumDataBuilder data)
- Contruct a synth that will attempt to resynthesize using a set of oscillators.
- Parameters:
data
- Spectral Data
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
-