Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
quantize_options.h File Reference

Quantize options. More...

#include "dsp/position.h"
#include "dsp/snap_grid.h"
#include "utils/yaml.h"
Include dependency graph for quantize_options.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  QuantizeOptions
 

Macros

#define QUANTIZE_OPTIONS_SCHEMA_VERSION   1
 
#define QUANTIZE_OPTIONS_IS_EDITOR(qo)   (PROJECT->quantize_opts_editor == qo)
 
#define QUANTIZE_OPTIONS_IS_TIMELINE(qo)   (PROJECT->quantize_opts_timeline == qo)
 
#define QUANTIZE_OPTIONS_TIMELINE   (PROJECT->quantize_opts_timeline)
 
#define QUANTIZE_OPTIONS_EDITOR   (PROJECT->quantize_opts_editor)
 
#define MAX_SNAP_POINTS   120096
 

Functions

void quantize_options_init (QuantizeOptions *self, NoteLength note_length)
 
void quantize_options_update_quantize_points (QuantizeOptions *self)
 Updates snap points.
 
float quantize_options_get_swing (QuantizeOptions *self)
 
float quantize_options_get_amount (QuantizeOptions *self)
 
float quantize_options_get_randomization (QuantizeOptions *self)
 
void quantize_options_set_swing (QuantizeOptions *self, float swing)
 
void quantize_options_set_amount (QuantizeOptions *self, float amount)
 
void quantize_options_set_randomization (QuantizeOptions *self, float randomization)
 
char * quantize_options_stringize (NoteLength note_length, NoteType note_type)
 Returns the grid intensity as a human-readable string.
 
double quantize_options_quantize_position (QuantizeOptions *self, Position *pos)
 Quantizes the given Position using the given QuantizeOptions.
 
QuantizeOptionsquantize_options_clone (const QuantizeOptions *src)
 Clones the QuantizeOptions.
 
QuantizeOptionsquantize_options_new (void)
 
void quantize_options_free (QuantizeOptions *self)
 Free's the QuantizeOptions.
 

Detailed Description

Quantize options.

Definition in file quantize_options.h.