public class MusicalNoteFilterBank extends AudioProcessor
| Constructor and Description |
|---|
MusicalNoteFilterBank(AudioFormat af)
Create a 12-deep filter bank for detecting notes
between C4 and C5.
|
MusicalNoteFilterBank(int startOfRange,
int endOfRange,
AudioFormat af)
Create a filter bank for detecting notes between the start
note given and the end note given.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getOutputPower()
Get the last calculated output power.
|
SampleChunk |
process(SampleChunk sample)
Function that takes a sample chunk and processes the chunk.
|
getLength, getUnderlyingStream, nextSampleChunk, process, processingComplete, reset, setUnderlyingStreamiterator, seekclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic MusicalNoteFilterBank(AudioFormat af)
af - The audio format of the filter bankpublic MusicalNoteFilterBank(int startOfRange, int endOfRange, AudioFormat af)
startOfRange - The start MIDI note number to detectendOfRange - The end MIDI note number to detect.af - The formatpublic SampleChunk process(SampleChunk sample) throws Exception
process in class AudioProcessorsample - The sample chunk to process.Exception - If the processing could not take placeAudioProcessor.process(org.openimaj.audio.SampleChunk)public double getOutputPower()