projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Transfer Fn: skip phase calculation for silence and small signal levels
[ardour.git]
/
gtk2_ardour
/
note.cc
diff --git
a/gtk2_ardour/note.cc
b/gtk2_ardour/note.cc
index dc8decf83776d6a76e1d5abe6705d549f59c377f..41c509e6152c04174cc0deeacad2129a572c26a2 100644
(file)
--- a/
gtk2_ardour/note.cc
+++ b/
gtk2_ardour/note.cc
@@
-20,122
+20,135
@@
#include "evoral/Note.hpp"
#include "evoral/Note.hpp"
-#include "canvas/
rectangl
e.h"
+#include "canvas/
not
e.h"
#include "canvas/debug.h"
#include "note.h"
#include "canvas/debug.h"
#include "note.h"
-#include "midi_region_view.h"
#include "public_editor.h"
using namespace ARDOUR;
#include "public_editor.h"
using namespace ARDOUR;
-using namespace ArdourCanvas;
+using ArdourCanvas::Coord;
+using ArdourCanvas::Duple;
Note::Note (
Note::Note (
- MidiRegionView& region, Item* parent, const boost::shared_ptr<NoteType> note, bool with_events)
+ MidiRegionView& region,
ArdourCanvas::
Item* parent, const boost::shared_ptr<NoteType> note, bool with_events)
: NoteBase (region, with_events, note)
: NoteBase (region, with_events, note)
- , _
rectangle (new ArdourCanvas::Rectangl
e (parent))
+ , _
note (new ArdourCanvas::Not
e (parent))
{
{
- CANVAS_DEBUG_NAME (_
rectangl
e, "note");
- set_item (_
rectangl
e);
+ CANVAS_DEBUG_NAME (_
not
e, "note");
+ set_item (_
not
e);
}
Note::~Note ()
{
}
Note::~Note ()
{
- delete _
rectangl
e;
+ delete _
not
e;
}
void
Note::move_event (double dx, double dy)
{
}
void
Note::move_event (double dx, double dy)
{
- _
rectangle->set (_rectangl
e->get().translate (Duple (dx, dy)));
+ _
note->set (_not
e->get().translate (Duple (dx, dy)));
}
Coord
Note::x0 () const
{
}
Coord
Note::x0 () const
{
- return _
rectangl
e->x0 ();
+ return _
not
e->x0 ();
}
Coord
Note::x1 () const
{
}
Coord
Note::x1 () const
{
- return _
rectangl
e->x1 ();
+ return _
not
e->x1 ();
}
Coord
Note::y0 () const
{
}
Coord
Note::y0 () const
{
- return _
rectangl
e->y0 ();
+ return _
not
e->y0 ();
}
Coord
Note::y1 () const
{
}
Coord
Note::y1 () const
{
- return _
rectangl
e->y1 ();
+ return _
not
e->y1 ();
}
void
Note::set_outline_color (uint32_t color)
{
}
void
Note::set_outline_color (uint32_t color)
{
- _
rectangl
e->set_outline_color (color);
+ _
not
e->set_outline_color (color);
}
void
Note::set_fill_color (uint32_t color)
{
}
void
Note::set_fill_color (uint32_t color)
{
- _
rectangl
e->set_fill_color (color);
+ _
not
e->set_fill_color (color);
}
void
Note::show ()
{
}
void
Note::show ()
{
- _
rectangl
e->show ();
+ _
not
e->show ();
}
void
Note::hide ()
{
}
void
Note::hide ()
{
- _rectangle->hide ();
+ _note->hide ();
+}
+
+void
+Note::set (ArdourCanvas::Rect rect)
+{
+ _note->set (rect);
}
void
Note::set_x0 (Coord x0)
{
}
void
Note::set_x0 (Coord x0)
{
- _
rectangl
e->set_x0 (x0);
+ _
not
e->set_x0 (x0);
}
void
Note::set_y0 (Coord y0)
{
}
void
Note::set_y0 (Coord y0)
{
- _
rectangl
e->set_y0 (y0);
+ _
not
e->set_y0 (y0);
}
void
Note::set_x1 (Coord x1)
{
}
void
Note::set_x1 (Coord x1)
{
- _
rectangl
e->set_x1 (x1);
+ _
not
e->set_x1 (x1);
}
void
Note::set_y1 (Coord y1)
{
}
void
Note::set_y1 (Coord y1)
{
- _
rectangl
e->set_y1 (y1);
+ _
not
e->set_y1 (y1);
}
void
Note::set_outline_what (ArdourCanvas::Rectangle::What what)
{
}
void
Note::set_outline_what (ArdourCanvas::Rectangle::What what)
{
- _
rectangl
e->set_outline_what (what);
+ _
not
e->set_outline_what (what);
}
void
Note::set_outline_all ()
{
}
void
Note::set_outline_all ()
{
- _
rectangl
e->set_outline_all ();
+ _
not
e->set_outline_all ();
}
void
Note::set_ignore_events (bool ignore)
{
}
void
Note::set_ignore_events (bool ignore)
{
- _
rectangl
e->set_ignore_events (ignore);
+ _
not
e->set_ignore_events (ignore);
}
}
+
+void
+Note::set_velocity (double fract)
+{
+ _note->set_velocity (fract);
+}
+