X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fardour%2Fardour%2Fquantize.h;h=639736b174668c97c0c2fae6daa84e7ad29dbcf4;hb=fbea6c254268e9780afd22fbb191569df4120463;hp=8db7e4185f2b80f2896a5d9075b98d5cf2c87031;hpb=539c8361de35364effe804e2db184790226b340a;p=ardour.git diff --git a/libs/ardour/ardour/quantize.h b/libs/ardour/ardour/quantize.h index 8db7e4185f..639736b174 100644 --- a/libs/ardour/ardour/quantize.h +++ b/libs/ardour/ardour/quantize.h @@ -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 @@ -21,33 +21,32 @@ #ifndef __ardour_quantize_h__ #define __ardour_quantize_h__ +#include "ardour/libardour_visibility.h" #include "ardour/types.h" #include "ardour/midi_operator.h" namespace ARDOUR { -class Session; - -class Quantize : public MidiOperator { +class LIBARDOUR_API 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 (bool snap_start, bool snap_end, + double start_grid, double end_grid, + float strength, float swing, float threshold); + ~Quantize (); - Command* operator() (boost::shared_ptr, std::vector::Notes>&); - std::string name() const { return std::string ("quantize"); } + Command* operator() (boost::shared_ptr, + Evoral::Beats position, + std::vector::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; + bool _snap_start; + bool _snap_end; + double _start_grid; + double _end_grid; + float _strength; + float _swing; + float _threshold; }; } /* namespace */