Mercurial > hg > multitrack-audio-matcher
view src/LiveAudioInput.h @ 50:93d21c20cfbc
Added Markers and the ability to switch to these points in the file when playing
author | Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk> |
---|---|
date | Thu, 14 Jun 2012 20:04:49 +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