From 68653307e666b8daabd2931ce0731d400d947707 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 7 Jul 2007 03:19:04 +0000 Subject: [PATCH] Note modes: note, percussion. Percussion tracks display diamonds. Separated/fixed MIDI and audio mode menus. CC automation modes: discrete, line. Bar controllers follow setting (hard steps or line) on playback. Sent CC data is always discrete (line not implemented yet). Discrete tracks show no lines, and always show control points. Separated ControlPoint from AutomationLine. Added some basic information (range) to Parameter (to be fleshed out..). git-svn-id: svn://localhost/ardour2/trunk@2123 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/SConscript | 2 + gtk2_ardour/ardour2_ui_default.conf | 6 +- gtk2_ardour/audio_region_view.cc | 5 +- gtk2_ardour/audio_time_axis.cc | 29 +++ gtk2_ardour/audio_time_axis.h | 1 + gtk2_ardour/automation_line.cc | 303 ++++++++------------------ gtk2_ardour/automation_line.h | 51 +---- gtk2_ardour/automation_time_axis.cc | 71 ++++-- gtk2_ardour/automation_time_axis.h | 9 +- gtk2_ardour/control_point.cc | 202 +++++++++++++++++ gtk2_ardour/control_point.h | 102 +++++++++ gtk2_ardour/diamond.cc | 35 +++ gtk2_ardour/diamond.h | 38 ++++ gtk2_ardour/editor.cc | 6 +- gtk2_ardour/editor_canvas_events.cc | 3 +- gtk2_ardour/editor_mouse.cc | 39 ++-- gtk2_ardour/editor_selection.cc | 1 + gtk2_ardour/midi_region_view.cc | 83 ++++--- gtk2_ardour/midi_region_view.h | 1 + gtk2_ardour/midi_streamview.h | 4 +- gtk2_ardour/midi_time_axis.cc | 45 +++- gtk2_ardour/midi_time_axis.h | 13 +- gtk2_ardour/route_time_axis.cc | 22 +- gtk2_ardour/route_time_axis.h | 3 + gtk2_ardour/streamview.h | 3 +- libs/ardour/ardour/automation_event.h | 10 + libs/ardour/ardour/midi_track.h | 6 +- libs/ardour/ardour/parameter.h | 22 ++ libs/ardour/ardour/types.h | 5 + libs/ardour/automatable.cc | 1 + libs/ardour/automation_control.cc | 1 - libs/ardour/automation_event.cc | 34 ++- libs/ardour/enums.cc | 12 + libs/ardour/midi_track.cc | 18 +- 34 files changed, 819 insertions(+), 367 deletions(-) create mode 100644 gtk2_ardour/control_point.cc create mode 100644 gtk2_ardour/control_point.h create mode 100644 gtk2_ardour/diamond.cc create mode 100644 gtk2_ardour/diamond.h diff --git a/gtk2_ardour/SConscript b/gtk2_ardour/SConscript index cf8b8dbfaa..605e7d132b 100644 --- a/gtk2_ardour/SConscript +++ b/gtk2_ardour/SConscript @@ -96,6 +96,7 @@ ardour_ui_options.cc audio_clock.cc audio_time_axis.cc audio_region_editor.cc +control_point.cc automation_line.cc automation_time_axis.cc automation_controller.cc @@ -107,6 +108,7 @@ simpleline.cc canvas-simplerect.c simplerect.cc canvas-waveview.c +diamond.cc crossfade_edit.cc crossfade_view.cc curvetest.cc diff --git a/gtk2_ardour/ardour2_ui_default.conf b/gtk2_ardour/ardour2_ui_default.conf index d2272c7ac1..893c4ba6cd 100644 --- a/gtk2_ardour/ardour2_ui_default.conf +++ b/gtk2_ardour/ardour2_ui_default.conf @@ -13,11 +13,11 @@