ardour
Public Member Functions | Private Attributes | List of all members
ARDOUR::Quantize Class Reference

#include <quantize.h>

Inheritance diagram for ARDOUR::Quantize:
ARDOUR::MidiOperator

Public Member Functions

 Quantize (bool snap_start, bool snap_end, double start_grid, double end_grid, float strength, float swing, float threshold)
 
 ~Quantize ()
 
Commandoperator() (boost::shared_ptr< ARDOUR::MidiModel >, Evoral::Beats position, std::vector< Evoral::Sequence< Evoral::Beats >::Notes > &)
 
std::string name () const
 
- Public Member Functions inherited from ARDOUR::MidiOperator
 MidiOperator ()
 
virtual ~MidiOperator ()
 

Private Attributes

bool _snap_start
 
bool _snap_end
 
double _start_grid
 
double _end_grid
 
float _strength
 
float _swing
 
float _threshold
 

Detailed Description

Definition at line 30 of file quantize.h.

Constructor & Destructor Documentation

Quantize::Quantize ( bool  snap_start,
bool  snap_end,
double  start_grid,
double  end_grid,
float  strength,
float  swing,
float  threshold 
)

Quantize notes

grid parameters are the quantize value in beats, ie 1.0 = quantize to beats, 0.25 = quantize to beats/4, etc.

Definition at line 38 of file quantize.cc.

Quantize::~Quantize ( )

Definition at line 51 of file quantize.cc.

Member Function Documentation

std::string ARDOUR::Quantize::name ( ) const
inlinevirtual

Implements ARDOUR::MidiOperator.

Definition at line 40 of file quantize.h.

Command * Quantize::operator() ( boost::shared_ptr< ARDOUR::MidiModel model,
Evoral::Beats  position,
std::vector< Evoral::Sequence< Evoral::Beats >::Notes > &  seqs 
)
virtual

Implements ARDOUR::MidiOperator.

Definition at line 56 of file quantize.cc.

Member Data Documentation

double ARDOUR::Quantize::_end_grid
private

Definition at line 46 of file quantize.h.

bool ARDOUR::Quantize::_snap_end
private

Definition at line 44 of file quantize.h.

bool ARDOUR::Quantize::_snap_start
private

Definition at line 43 of file quantize.h.

double ARDOUR::Quantize::_start_grid
private

Definition at line 45 of file quantize.h.

float ARDOUR::Quantize::_strength
private

Definition at line 47 of file quantize.h.

float ARDOUR::Quantize::_swing
private

Definition at line 48 of file quantize.h.

float ARDOUR::Quantize::_threshold
private

Definition at line 49 of file quantize.h.


The documentation for this class was generated from the following files: