Change the feedback alert to a flashing button; works
[ardour.git] / libs / ardour / ardour / quantize.h
index 57e54672941d64363bbad1ff5e9a0ec21d7cefd4..e1ca2b2395d2b7c5ed6035e5158bb32e3abf289d 100644 (file)
@@ -1,6 +1,6 @@
 /*
-    Copyright (C) 2007-2009 Paul Davis 
-       Author: Dave Robillard
+    Copyright (C) 2007-2009 Paul Davis
+    Author: David Robillard
 
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
@@ -30,24 +30,26 @@ class Session;
 
 class Quantize : public MidiOperator {
 public:
-        Quantize (ARDOUR::Session&, QuantizeType type, 
-                  bool snap_start, bool snap_end,
-                  double start_grid, double end_grid, 
-                  float strength, float swing, float threshold);
-        ~Quantize ();
+       Quantize (ARDOUR::Session&, QuantizeType type,
+                       bool snap_start, bool snap_end,
+                       double start_grid, double end_grid,
+                       float strength, float swing, float threshold);
+       ~Quantize ();
 
-        int operator() (std::vector<Evoral::Sequence<Evoral::MusicalTime>::Notes>&);
-        std::string name() const { return std::string ("quantize"); }
+       Command* operator() (boost::shared_ptr<ARDOUR::MidiModel>,
+                            double position,
+                            std::vector<Evoral::Sequence<Evoral::MusicalTime>::Notes>&);
+       std::string name() const { return std::string ("quantize"); }
 
 private:
-        ARDOUR::Session& session;
-        bool   _snap_start;
-        bool   _snap_end;
-        double _start_grid;
-        double _end_grid;
-        float  _strength;
-        float  _swing;
-        float  _threshold;
+       ARDOUR::Session& session;
+       bool   _snap_start;
+       bool   _snap_end;
+       double _start_grid;
+       double _end_grid;
+       float  _strength;
+       float  _swing;
+       float  _threshold;
 };
 
 } /* namespace */