Mercurial > hg > audio-file-loader
annotate SoundFileLoader.h @ 2:fa2af670b5c5 tip
SoundFileLoader might have moved
author | Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk> |
---|---|
date | Fri, 06 Jan 2012 00:23:26 +0000 |
parents | ba2a17cf81bf |
children |
rev | line source |
---|---|
andrew@1 | 1 /* |
andrew@1 | 2 * SoundFileLoader.h |
andrew@1 | 3 * audioFileLoaderSVN1 |
andrew@1 | 4 * |
andrew@1 | 5 * Created by Andrew on 04/09/2011. |
andrew@1 | 6 * Copyright 2011 QMUL. All rights reserved. |
andrew@1 | 7 * |
andrew@1 | 8 */ |
andrew@1 | 9 |
andrew@1 | 10 #ifndef SOUND_FILE_LOADER_H |
andrew@1 | 11 #define SOUND_FILE_LOADER_H |
andrew@1 | 12 |
andrew@1 | 13 |
andrew@1 | 14 #include "fftw3.h" |
andrew@1 | 15 #include "ofMain.h" |
andrew@1 | 16 #include "sndfile.h" |
andrew@1 | 17 #include "AudioFile.h" |
andrew@1 | 18 |
andrew@1 | 19 #define FRAMESIZE 512 |
andrew@1 | 20 #define ENERGY_LENGTH 80000 |
andrew@1 | 21 #define CHROMA_LENGTH 12000 |
andrew@1 | 22 #define CHROMA_CONVERSION_FACTOR 16 //16 times as many frames in energy as in chroma |
andrew@1 | 23 |
andrew@1 | 24 |
andrew@1 | 25 //this does a chromagram analysis and aubio onset analysis |
andrew@1 | 26 //held in double matrix and doubleVector respectively |
andrew@1 | 27 //these are dynamic vectors, so size set by what's needed for the file |
andrew@1 | 28 |
andrew@1 | 29 class SoundFileLoader{ |
andrew@1 | 30 |
andrew@1 | 31 public: |
andrew@1 | 32 |
andrew@1 | 33 |
andrew@1 | 34 }; |
andrew@1 | 35 #endif |