|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--wavelet.WindowedSegmentation
Breaks up a sound sample into small windows.
Field Summary | |
int |
numWindows
|
boolean |
occupied
|
java.util.Vector |
segments
|
double |
thresholdPercent
|
Transitions |
transitions
|
Wavelet |
waveletWindows
|
WaveletFilter |
wavFilter
|
static int |
windowSize
|
static int |
winIncrement
|
Constructor Summary | |
WindowedSegmentation(int minWindows1)
constructor given minWindows |
Method Summary | |
void |
analyzeTransitions()
calculate which of the transitions between windows can be considered segmentation points. |
void |
blank()
clears out all the currently calculated segmentation and transition data |
int[][] |
createTransList()
creates list of transitions by calculating differences between wavelet coefficient energies. |
double[] |
doCompat(int inx)
returns an array of how compatible each segment is to the one denoted by inx |
void |
fourFrameEuclideanDistance()
routine for determining the difference between windows dependant on their wavelet energies. |
double |
fourFrameEuclideanDistance(int a,
int b)
routine for determining the difference between two specfic windows dependant on their wavelet energies. |
void |
initialize(sound.AudioSample audiosample)
initializes class |
static void |
main(java.lang.String[] args)
|
void |
normalize()
normalize each transition over all wavelet levels (6 at present) |
void |
separate(int waveletFilter,
javax.swing.DefaultBoundedRangeModel rangeModel,
javax.swing.JProgressBar progressBar)
main signal separation routine |
void |
separateWithTransitions(int waveletFilter,
Transitions obj)
used if I already know the transitions (ie loading presets) |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int windowSize
public static final int winIncrement
public int numWindows
public Wavelet waveletWindows
public double thresholdPercent
public WaveletFilter wavFilter
public Transitions transitions
public boolean occupied
public java.util.Vector segments
Constructor Detail |
public WindowedSegmentation(int minWindows1)
minWindows
- how few windows can be in 1 segmentMethod Detail |
public void blank()
public void initialize(sound.AudioSample audiosample)
audioSample
- audio signal to processpublic void normalize()
public int[][] createTransList()
public static void main(java.lang.String[] args)
public void separateWithTransitions(int waveletFilter, Transitions obj)
waveletFilter
- wavelet filter to useobj
- transitions object to usepublic void separate(int waveletFilter, javax.swing.DefaultBoundedRangeModel rangeModel, javax.swing.JProgressBar progressBar)
waveletFilter
- wavelet filter to userangeModel
- for use in the update windowprogressBar
- for use in the update windowpublic void analyzeTransitions()
public void fourFrameEuclideanDistance()
public double fourFrameEuclideanDistance(int a, int b)
a
- window number ab
- window number bpublic double[] doCompat(int inx)
inx
- reference window number
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |