ardour
Namespaces | Macros | Functions
utils.h File Reference
#include <iostream>
#include <string>
#include <cmath>
#include "ardour/libardour_visibility.h"
#include "ardour/ardour.h"
#include "ardour/data_type.h"
#include "ardour/dB.h"

Go to the source code of this file.

Namespaces

 ARDOUR
 

Macros

#define OLD_GAIN_MATH
 
#define METER_FALLOFF_OFF   0.0f
 
#define METER_FALLOFF_SLOWEST   6.6f
 
#define METER_FALLOFF_SLOW   8.6f
 
#define METER_FALLOFF_SLOWISH   12.0f
 
#define METER_FALLOFF_MODERATE   13.3f
 
#define METER_FALLOFF_MEDIUM   20.0f
 
#define METER_FALLOFF_FAST   32.0f
 
#define METER_FALLOFF_FASTER   46.0f
 
#define METER_FALLOFF_FASTEST   70.0f
 

Functions

LIBARDOUR_API std::string ARDOUR::legalize_for_path (const std::string &str)
 
LIBARDOUR_API std::string ARDOUR::legalize_for_universal_path (const std::string &str)
 
LIBARDOUR_API std::string ARDOUR::legalize_for_uri (const std::string &str)
 
LIBARDOUR_API std::string ARDOUR::legalize_for_path_2X (const std::string &str)
 
LIBARDOUR_API XMLNodeARDOUR::find_named_node (const XMLNode &node, std::string name)
 
LIBARDOUR_API std::string ARDOUR::bool_as_string (bool)
 
static float ARDOUR::f_max (float x, float a)
 
LIBARDOUR_API std::string ARDOUR::bump_name_once (const std::string &s, char delimiter)
 
LIBARDOUR_API std::string ARDOUR::bump_name_number (const std::string &s)
 
LIBARDOUR_API int ARDOUR::cmp_nocase (const std::string &s, const std::string &s2)
 
LIBARDOUR_API int ARDOUR::cmp_nocase_utf8 (const std::string &s1, const std::string &s2)
 
LIBARDOUR_API int ARDOUR::touch_file (std::string path)
 
LIBARDOUR_API std::string ARDOUR::region_name_from_path (std::string path, bool strip_channels, bool add_channel_suffix=false, uint32_t total=0, uint32_t this_one=0)
 
LIBARDOUR_API bool ARDOUR::path_is_paired (std::string path, std::string &pair_base)
 
LIBARDOUR_API void ARDOUR::compute_equal_power_fades (ARDOUR::framecnt_t nframes, float *in, float *out)
 
LIBARDOUR_API const char * ARDOUR::sync_source_to_string (ARDOUR::SyncSource src, bool sh=false)
 
LIBARDOUR_API ARDOUR::SyncSource ARDOUR::string_to_sync_source (std::string str)
 
LIBARDOUR_API const char * ARDOUR::edit_mode_to_string (ARDOUR::EditMode)
 
LIBARDOUR_API ARDOUR::EditMode ARDOUR::string_to_edit_mode (std::string)
 
static double ARDOUR::gain_to_slider_position (ARDOUR::gain_t g)
 
static ARDOUR::gain_t ARDOUR::slider_position_to_gain (double pos)
 
LIBARDOUR_API double ARDOUR::gain_to_slider_position_with_max (double g, double max_gain=2.0)
 
LIBARDOUR_API double ARDOUR::slider_position_to_gain_with_max (double g, double max_gain=2.0)
 
LIBARDOUR_API float ARDOUR::meter_falloff_to_float (ARDOUR::MeterFalloff)
 
LIBARDOUR_API ARDOUR::MeterFalloff ARDOUR::meter_falloff_from_float (float)
 
LIBARDOUR_API float ARDOUR::meter_falloff_to_db_per_sec (float)
 
LIBARDOUR_API const char * ARDOUR::native_header_format_extension (ARDOUR::HeaderFormat, const ARDOUR::DataType &type)
 
LIBARDOUR_API bool ARDOUR::matching_unsuffixed_filename_exists_in (const std::string &dir, const std::string &name)
 
LIBARDOUR_API uint32_t ARDOUR::how_many_dsp_threads ()
 

Macro Definition Documentation

#define METER_FALLOFF_FAST   32.0f

Definition at line 163 of file utils.h.

#define METER_FALLOFF_FASTER   46.0f

Definition at line 164 of file utils.h.

#define METER_FALLOFF_FASTEST   70.0f

Definition at line 165 of file utils.h.

#define METER_FALLOFF_MEDIUM   20.0f

Definition at line 162 of file utils.h.

#define METER_FALLOFF_MODERATE   13.3f

Definition at line 161 of file utils.h.

#define METER_FALLOFF_OFF   0.0f

Definition at line 157 of file utils.h.

#define METER_FALLOFF_SLOW   8.6f

Definition at line 159 of file utils.h.

#define METER_FALLOFF_SLOWEST   6.6f

Definition at line 158 of file utils.h.

#define METER_FALLOFF_SLOWISH   12.0f

Definition at line 160 of file utils.h.

#define OLD_GAIN_MATH

Definition at line 80 of file utils.h.