annotate SoundFileLoader.h @ 1:ba2a17cf81bf

first working version of audio file loder. Loads bach clip from the apps->audio-file-loader->bin->data->sounds foler. Three classes: SoundFileLoader does the loading and parsing of thefile with libSndFile. audio samples are kept in AudioFile and analysis of features are kept in AudioAnalysis, at this stage just chromagramm and basic energy
author Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk>
date Sun, 04 Sep 2011 22:45:35 +0100
parents
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