| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsound.spectrogram.SignalProcessingUtils
public class SignalProcessingUtils
Created by IntelliJ IDEA. User: lopesg Date: Dec 10, 2006 Time: 4:08:51 PM To change this template use File | Settings | File Templates.
| Constructor Summary | |
|---|---|
| SignalProcessingUtils() | |
| Method Summary | |
|---|---|
| static void | centering(double[] r) | 
| static void | checkInputSignal(DoubleAudio audioData,
                 double signalPowerToFilter) | 
| static double | getAveragePower(double[] audioData) | 
| static double | getDeltaF(int sampleSize,
          double samplingFrequency) | 
| static double | getDeltaT(DoubleAudio audioData) | 
| static void | getFilteredSignal(double[] in_r,
                  double zeroCutOff) | 
| static int | getMidiNoteNumber(double freq)This method will use the audio sample to compute the midi note number; | 
| static int[] | getNoteNumbers(int[] f) | 
| static int[] | getNStrongestFrequencies(double[] psd,
                         int numberOfFrequencies)Sort the PSD to obtain the strongest frequencies then remove the duplicates, get the n strongest frequencies convert them to frequencies in Hz and return in an array of int. | 
| static int[] | getNStrongestFrequencies(double[] psd,
                         int numberOfFrequencies,
                         int samplingRate) | 
| static int[] | getNStrongestHarmonicLocations(double[] psd,
                               int n) | 
| static double[] | getNStrongestHarmonics(double[] psd,
                       int n) | 
| static double[] | getNStrongestHarmonicsTimes(double[] psd,
                            int n,
                            int offset) | 
| static void | getProcessedSignalSample(int windowNum,
                         int sampleLength,
                         double[] in_r)Takes the input data and only samples a window of data defined by the samplesize (i.e. | 
| static double[] | getSignalPSD(double[] in_r,
             int sampleStartPoint,
             int sampleLength) | 
| static void | main(java.lang.String[] args) | 
| static void | playMidiNote(double[] data) | 
| static void | processInputSignal(double[] data,
                   int startPoint,
                   int endPoint) | 
| static void | saveDouble(DoubleAudio audioData) | 
| Methods inherited from class java.lang.Object | 
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public SignalProcessingUtils()
| Method Detail | 
|---|
public static void centering(double[] r)
public static double[] getNStrongestHarmonicsTimes(double[] psd,
                                                   int n,
                                                   int offset)
public static int[] getNStrongestFrequencies(double[] psd,
                                             int numberOfFrequencies)
psd - a double array on inputnumberOfFrequencies - an int that must be smaller that psd.length/2
public static int[] getNStrongestFrequencies(double[] psd,
                                             int numberOfFrequencies,
                                             int samplingRate)
public static int[] getNStrongestHarmonicLocations(double[] psd,
                                                   int n)
public static double[] getNStrongestHarmonics(double[] psd,
                                              int n)
public static int[] getNoteNumbers(int[] f)
public static double getDeltaF(int sampleSize,
                               double samplingFrequency)
public static double getDeltaT(DoubleAudio audioData)
public static double getAveragePower(double[] audioData)
public static void getFilteredSignal(double[] in_r,
                                     double zeroCutOff)
public static double[] getSignalPSD(double[] in_r,
                                    int sampleStartPoint,
                                    int sampleLength)
public static void saveDouble(DoubleAudio audioData)
public static void getProcessedSignalSample(int windowNum,
                                            int sampleLength,
                                            double[] in_r)
sampleLength - The size of the sampled data.in_r - The input data to sample.public static void playMidiNote(double[] data)
public static void processInputSignal(double[] data,
                                      int startPoint,
                                      int endPoint)
public static void checkInputSignal(DoubleAudio audioData,
                                    double signalPowerToFilter)
public static int getMidiNoteNumber(double freq)
public static void main(java.lang.String[] args)
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||