Mercurial > hg > midi-score-follower
view src/CannamMidiFileLoader.h @ 18:c7107e5c8f03
added in a mode to use either integrated estimate or MAP estimate in tempo process. Decreased nooise param from 0.02 to 0.03 so observations given more weight
author | Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk> |
---|---|
date | Fri, 18 Nov 2011 11:56:32 +0000 |
parents | d75d16c57eac |
children |
line wrap: on
line source
/* * CannamMidiFileLoader.h * midi-score-follower * * Created by Chris Cannam on 19/08/2011. * Copyright 2011 QMUL. All rights reserved. * */ #ifndef CANNAM_MIDI_FILE_LOADER #define CANNAM_MIDI_FILE_LOADER #include "MIDIFileReader.h" //#include "MIDIEvent.h" #include "midiEventHolder.h" using namespace MIDIConstants; class CannamMidiFileLoader{ public: CannamMidiFileLoader(); int loadFile(std::string& filename, midiEventHolder& myMidiEvents); void createEventTiming( midiEventHolder& myMidiEvents); double firstNoteTime; int firstTickTime; bool chopBeginning; typedef std::vector<int> IntVector; IntVector v; int noteOnIndex; }; #endif