summaryrefslogtreecommitdiff
path: root/gtk2_ardour/canvas-hit.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-02-02 02:36:05 +0000
committerDavid Robillard <d@drobilla.net>2009-02-02 02:36:05 +0000
commit166ef64e3db4ab72b7b1e7455234e2b9ceddf6d8 (patch)
tree0f28067a301556c5c0a67091c691c82960db57c1 /gtk2_ardour/canvas-hit.h
parentead5dd45689be089d79a4a5daad88da737ca4cd9 (diff)
Make (MIDI) event time stamp type a template parameter.
git-svn-id: svn://localhost/ardour2/branches/3.0@4473 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/canvas-hit.h')
-rw-r--r--gtk2_ardour/canvas-hit.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/gtk2_ardour/canvas-hit.h b/gtk2_ardour/canvas-hit.h
index fa90075a0c..c4578b3530 100644
--- a/gtk2_ardour/canvas-hit.h
+++ b/gtk2_ardour/canvas-hit.h
@@ -29,11 +29,13 @@ namespace Canvas {
class CanvasHit : public Diamond, public CanvasNoteEvent {
public:
+ typedef Evoral::Note<double> NoteType;
+
CanvasHit(
- MidiRegionView& region,
- Group& group,
- double size,
- const boost::shared_ptr<Evoral::Note> note = boost::shared_ptr<Evoral::Note>())
+ MidiRegionView& region,
+ Group& group,
+ double size,
+ const boost::shared_ptr<NoteType> note = boost::shared_ptr<NoteType>())
: Diamond(group, size), CanvasNoteEvent(region, this, note)
{