|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsound.spectrogram.NoteEvent
public class NoteEvent
Copyright 2005, DocJava, Inc. User: dlyon Date: Nov 13, 2006 Time: 7:48:29 PM
Constructor Summary | |
---|---|
NoteEvent()
|
|
NoteEvent(double[] audio)
|
Method Summary | |
---|---|
double[] |
characterizeNoise(double fractionalPartOfN)
Enter in the first n samples that contain noise; |
void |
checkInputSignal(double[] audioData,
double avgPower)
|
void |
computeNoteNumber()
This method will use the audio sample to compute the midi note number; |
static double[] |
get10StrongestHarmonicsTimes(double[] psd,
int offset)
|
double[] |
getAudioData()
|
double |
getAveragePower(double[] audioData)
|
NoteEvent |
getNoteEvent(double fractionalPartOfN)
|
NoteEvent |
getNoteEvent(double startTimeInSeconds,
double endTimeInSeconds)
get a Sub-noteEvent. |
NoteEvent |
getNoteEvent(int start,
int n)
get a Sub-noteEvent. |
NoteEvent[] |
getNoteEvents()
|
NoteEvent[] |
getNoteEvents2()
|
static int[] |
getNStrongestFrequencies(double[] psd,
int numberOfHarmonics)
|
static int[] |
getNStrongestHarmonicLocations(double[] psd,
int numberOfHarmonics)
|
static double[] |
getNStrongestHarmonics(double[] psd,
int numberOfHarmonics)
|
double[] |
getPsdNormalized()
Copy internal array, do not corrupt data. |
boolean |
isNoise(NoteEvent ne)
|
void |
lyonWindowNoteEvent()
|
static void |
main(java.lang.String[] args)
|
void |
openSoundFile()
|
void |
playSample()
|
void |
saveDouble()
|
void |
showFFT(java.lang.String title)
|
void |
showFile()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NoteEvent(double[] audio)
public NoteEvent()
Method Detail |
---|
public void saveDouble()
public double[] getAudioData()
public void openSoundFile()
public void playSample()
public void showFile()
public void showFFT(java.lang.String title)
public double getAveragePower(double[] audioData)
public void checkInputSignal(double[] audioData, double avgPower)
public NoteEvent[] getNoteEvents()
public NoteEvent[] getNoteEvents2()
public void computeNoteNumber()
public NoteEvent getNoteEvent(double fractionalPartOfN)
fractionalPartOfN
-
public NoteEvent getNoteEvent(double startTimeInSeconds, double endTimeInSeconds)
startTimeInSeconds
- at sample startendTimeInSeconds
- get n samples
public NoteEvent getNoteEvent(int start, int n)
start
- at sample startn
- get n samples
public double[] characterizeNoise(double fractionalPartOfN)
n
-
public static int[] getNStrongestFrequencies(double[] psd, int numberOfHarmonics)
public static int[] getNStrongestHarmonicLocations(double[] psd, int numberOfHarmonics)
public static double[] getNStrongestHarmonics(double[] psd, int numberOfHarmonics)
public boolean isNoise(NoteEvent ne)
public double[] getPsdNormalized()
public void lyonWindowNoteEvent()
public static double[] get10StrongestHarmonicsTimes(double[] psd, int offset)
public java.lang.String toString()
toString
in class java.lang.Object
public static void main(java.lang.String[] args) throws java.lang.InterruptedException
java.lang.InterruptedException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |