From 5252c77d94ab6e0005322dc90a1ec2d2f1226495 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 6 Feb 2012 17:19:59 +0000 Subject: add delta-time option to MIDI tracer window. note that its not incredibly accurate or useful right now, because timestamps come from the system clock and are taken when the data is read/written to the port buffer, not its actual timestamp within the buffer git-svn-id: svn://localhost/ardour2/branches/3.0@11458 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/midi_tracer.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'gtk2_ardour/midi_tracer.h') diff --git a/gtk2_ardour/midi_tracer.h b/gtk2_ardour/midi_tracer.h index 0b195bf31e..682217be5b 100644 --- a/gtk2_ardour/midi_tracer.h +++ b/gtk2_ardour/midi_tracer.h @@ -34,10 +34,12 @@ class MidiTracer : public ArdourWindow Gtk::SpinButton line_count_spinner; Gtk::Label line_count_label; Gtk::HBox line_count_box; - + struct timeval _last_receipt; + bool autoscroll; bool show_hex; bool collect; + bool show_delta_time; /** Incremented when an update is requested, decremented when one is handled; hence * equal to 0 when an update is not queued. May temporarily be negative if a @@ -55,11 +57,13 @@ class MidiTracer : public ArdourWindow Gtk::CheckButton autoscroll_button; Gtk::CheckButton base_button; Gtk::CheckButton collect_button; + Gtk::CheckButton delta_time_button; Gtk::ComboBoxText _port_combo; void base_toggle (); void autoscroll_toggle (); void collect_toggle (); + void delta_toggle (); void port_changed (); void ports_changed (); -- cgit v1.2.3