Ardour  9.0-pre0-582-g084a23a80d
libs/ardour/ardour/utils.h File Reference
#include "libardour-config.h"
#include <iostream>
#include <string>
#include <cmath>
#include "ardour/ardour.h"
#include "ardour/data_type.h"
#include "ardour/dB.h"
#include "ardour/types.h"
#include "ardour/libardour_visibility.h"
Include dependency graph for libs/ardour/ardour/utils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 ARDOUR
 

Macros

#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
 

Functions

std::string ARDOUR::legalize_for_path (const std::string &str)
 
std::string ARDOUR::legalize_for_universal_path (const std::string &str)
 
std::string ARDOUR::legalize_for_uri (const std::string &str)
 
std::string ARDOUR::legalize_for_path_2X (const std::string &str)
 
XMLNodeARDOUR::find_named_node (const XMLNode &node, std::string name)
 
std::string ARDOUR::bool_as_string (bool)
 
static float ARDOUR::f_max (float x, float a)
 
std::string ARDOUR::bump_name_once (const std::string &s, char delimiter)
 
std::string ARDOUR::bump_name_number (const std::string &s)
 
std::string ARDOUR::bump_name_abc (const std::string &s)
 
int ARDOUR::cmp_nocase (const std::string &s, const std::string &s2)
 
int ARDOUR::cmp_nocase_utf8 (const std::string &s1, const std::string &s2)
 
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)
 
bool ARDOUR::path_is_paired (std::string path, std::string &pair_base)
 
void ARDOUR::compute_equal_power_fades (ARDOUR::samplecnt_t nframes, float *in, float *out)
 
const char * ARDOUR::edit_mode_to_string (ARDOUR::EditMode)
 
ARDOUR::EditMode ARDOUR::string_to_edit_mode (std::string)
 
const char * ARDOUR::ripple_mode_to_string (ARDOUR::RippleMode)
 
ARDOUR::RippleMode ARDOUR::string_to_ripple_mode (std::string)
 
double ARDOUR::gain_to_slider_position_with_max (double g, double max_gain=2.0)
 
double ARDOUR::slider_position_to_gain_with_max (double g, double max_gain=2.0)
 
float ARDOUR::meter_falloff_to_float (ARDOUR::MeterFalloff)
 
ARDOUR::MeterFalloff ARDOUR::meter_falloff_from_float (float)
 
float ARDOUR::meter_falloff_to_db_per_sec (float)
 
const char * ARDOUR::native_header_format_extension (ARDOUR::HeaderFormat, const ARDOUR::DataType &type)
 
bool ARDOUR::matching_unsuffixed_filename_exists_in (const std::string &dir, const std::string &name)
 
uint32_t ARDOUR::how_many_dsp_threads ()
 
uint32_t ARDOUR::how_many_io_threads ()
 
std::string ARDOUR::compute_sha1_of_file (std::string path)
 
template<typename T >
std::shared_ptr< AutomationControlList > ARDOUR::route_list_to_control_list (std::shared_ptr< RouteList const > rl, std::shared_ptr< T >(Stripable::*get_control)() const)
 
template<typename T >
std::shared_ptr< AutomationControlList > ARDOUR::stripable_list_to_control_list (StripableList &sl, std::shared_ptr< T >(Stripable::*get_control)() const)
 
template<typename T >
std::shared_ptr< AutomationControlList > ARDOUR::stripable_list_to_control_list (std::shared_ptr< StripableList const > sl, std::shared_ptr< T >(Stripable::*get_control)() const)
 

Macro Definition Documentation

◆ METER_FALLOFF_FAST

#define METER_FALLOFF_FAST   32.0f

Definition at line 100 of file libs/ardour/ardour/utils.h.

◆ METER_FALLOFF_MEDIUM

#define METER_FALLOFF_MEDIUM   20.0f

Definition at line 99 of file libs/ardour/ardour/utils.h.

◆ METER_FALLOFF_MODERATE

#define METER_FALLOFF_MODERATE   13.3f

Definition at line 98 of file libs/ardour/ardour/utils.h.

◆ METER_FALLOFF_OFF

#define METER_FALLOFF_OFF   0.0f

Definition at line 94 of file libs/ardour/ardour/utils.h.

◆ METER_FALLOFF_SLOW

#define METER_FALLOFF_SLOW   8.6f

Definition at line 96 of file libs/ardour/ardour/utils.h.

◆ METER_FALLOFF_SLOWEST

#define METER_FALLOFF_SLOWEST   6.6f

Definition at line 95 of file libs/ardour/ardour/utils.h.

◆ METER_FALLOFF_SLOWISH

#define METER_FALLOFF_SLOWISH   12.0f

Definition at line 97 of file libs/ardour/ardour/utils.h.