Optimize plugin-processing for non-automated params
[ardour.git] / libs / ardour / ardour / quantize.h
index c41d172177e3b3e7ebaaf99c30ca872d50a15250..7255d4ce4f7d78a3478fca103193de32bca67d7b 100644 (file)
 
 namespace ARDOUR {
 
-class Session;
-
 class LIBARDOUR_API Quantize : public MidiOperator {
 public:
-       Quantize (ARDOUR::Session&, bool snap_start, bool snap_end,
+       Quantize (bool snap_start, bool snap_end,
                        double start_grid, double end_grid,
                        float strength, float swing, float threshold);
        ~Quantize ();
 
        Command* operator() (boost::shared_ptr<ARDOUR::MidiModel>,
-                            double position,
-                            std::vector<Evoral::Sequence<Evoral::MusicalTime>::Notes>&);
+                            Temporal::Beats position,
+                            std::vector<Evoral::Sequence<Temporal::Beats>::Notes>&);
        std::string name() const { return std::string ("quantize"); }
 
 private:
-       ARDOUR::Session& session;
        bool   _snap_start;
        bool   _snap_end;
        double _start_grid;