adjust h-size of color theme manager "Reset to Defaults" button
[ardour.git] / tools / bb / bb.h
index 79a24d69291edeccd5e37ed7c0eaf9001b5296c0..07175b6664745713e7dce57f86a1ee3857bf9f67 100644 (file)
 
 #include <jack/jack.h>
 
+#include "ardour/midi_state_tracker.h"
+
 typedef uint64_t superclock_t;
 
 static const superclock_t superclock_ticks_per_second = 508032000; // 2^10 * 3^4 * 5^3 * 7^2
 inline superclock_t superclock_to_samples (superclock_t s, int sr) { return (s * sr) / superclock_ticks_per_second; }
 inline superclock_t samples_to_superclock (int samples, int sr) { return (samples * superclock_ticks_per_second) / sr; }
 
+namespace ARDOUR {
+class Session;
+}
+
 class BeatBox {
   public:
        BeatBox (int sample_rate);
@@ -58,6 +64,8 @@ class BeatBox {
        superclock_t measure_superclocks;
        int _quantize_divisor;
        bool clear_pending;
+       ARDOUR::MidiStateTracker inbound_tracker;
+       ARDOUR::MidiStateTracker outbound_tracker;
 
        struct Event {
                superclock_t time;
@@ -74,6 +82,9 @@ class BeatBox {
                bool operator () (Event const * a, Event const * b) const;
        };
 
+       typedef std::vector<Event*> IncompleteNotes;
+       IncompleteNotes _incomplete_notes;
+
        typedef std::set<Event*,EventComparator> Events;
        Events _current_events;