Mercurial > hg > multitrack-audio-matcher
view src/LiveAudioInput.h @ 43:b7ad807c9cde
Added annotation writing and the src for the result calculator
author | Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk> |
---|---|
date | Fri, 04 May 2012 15:33:36 +0100 |
parents | 852173ca8365 |
children |
line wrap: on
line source
/* * LiveAudioInput.h * MultipleAudioMathcher * * Created by Andrew on 30/01/2012. * Copyright 2012 QMUL. All rights reserved. * */ #ifndef LIVE_AUDIO_INPUT_H #define LIVE_AUDIO_INPUT_H #include "ofMain.h" #include "ChromaOnset.h" struct AudioEvent { double millisTime; double frameTime; double pitch; int type; }; class LiveAudioInput{ int numberOfEvents; public: LiveAudioInput(); typedef std::vector<AudioEvent> EventVector; EventVector liveEvents; void addPitchEvent(const double& pitch, const double& time); double framesToMillis(const double& frameCount); double millisToFrames(const double& millis); }; #endif