diff options
author | David Robillard <d@drobilla.net> | 2008-02-18 19:45:52 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-02-18 19:45:52 +0000 |
commit | fbfb26b45c075da880861cf2303b851fe1acc0e8 (patch) | |
tree | 4673a82d5516535b17e9c60ffd57a206801a1e01 /gtk2_ardour/lineset.cc | |
parent | 1b2fe7bf34f1e05ab4e3975ac91aeda28a4d11d0 (diff) |
Preliminary (read: kludgey) MIDI import support.
Only really works when tracks contain only channel 1 data for now.
git-svn-id: svn://localhost/ardour2/branches/3.0@3083 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/lineset.cc')
-rw-r--r-- | gtk2_ardour/lineset.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk2_ardour/lineset.cc b/gtk2_ardour/lineset.cc index 75fdb938ae..0ae494c034 100644 --- a/gtk2_ardour/lineset.cc +++ b/gtk2_ardour/lineset.cc @@ -33,7 +33,7 @@ namespace Canvas { LinesetClass Lineset::lineset_class; -static const char* overlap_error_str = "Lineset error: Line overlap"; +//static const char* overlap_error_str = "Lineset error: Line overlap"; Lineset::Line::Line(double c, double w, uint32_t color) : coord(c) @@ -142,7 +142,7 @@ Lineset::change_line_width(double coord, double width) { if(it != lines.end()) { if(l.coord + width > it->coord) { - cerr << overlap_error_str << endl; + //cerr << overlap_error_str << endl; return; } } @@ -171,14 +171,14 @@ Lineset::add_line(double coord, double width, uint32_t color) { /* overlap checking */ if(it != lines.end()) { if(l.coord + l.width > it->coord) { - cerr << overlap_error_str << endl; + //cerr << overlap_error_str << endl; return; } } if(it != lines.begin()) { --it; if(l.coord < it->coord + it->width) { - cerr << overlap_error_str << endl; + //cerr << overlap_error_str << endl; return; } ++it; |