10#ifndef __AUDIO_QUANTIZE_OPTIONS_H__
11#define __AUDIO_QUANTIZE_OPTIONS_H__
23#define QUANTIZE_OPTIONS_SCHEMA_VERSION 1
25#define QUANTIZE_OPTIONS_IS_EDITOR(qo) (PROJECT->quantize_opts_editor == qo)
26#define QUANTIZE_OPTIONS_IS_TIMELINE(qo) (PROJECT->quantize_opts_timeline == qo)
27#define QUANTIZE_OPTIONS_TIMELINE (PROJECT->quantize_opts_timeline)
28#define QUANTIZE_OPTIONS_EDITOR (PROJECT->quantize_opts_editor)
30#define MAX_SNAP_POINTS 120096
95quantize_options_set_randomization (
QuantizeOptions * self,
float randomization);
126quantize_options_new (
void);
void quantize_options_update_quantize_points(QuantizeOptions *self)
Updates snap points.
void quantize_options_free(QuantizeOptions *self)
Free's the QuantizeOptions.
QuantizeOptions * quantize_options_clone(const QuantizeOptions *src)
Clones the QuantizeOptions.
double quantize_options_quantize_position(QuantizeOptions *self, Position *pos)
Quantizes the given Position using the given QuantizeOptions.
char * quantize_options_stringize(NoteLength note_length, NoteType note_type)
Returns the grid intensity as a human-readable string.
A Position is made up of bars.beats.sixteenths.ticks.
NoteLength note_length
See SnapGrid.
float amount
Percentage to apply quantize (0-100).
int adj_start
Adjust start position or not (only applies to objects with length.
NoteType note_type
See SnapGrid.
float swing
Swing amount (0-100).
double rand_ticks
Number of ticks for randomization.
int adj_end
Adjust end position or not (only applies to objects with length.
Position q_points[MAX_SNAP_POINTS]
Quantize points.