39 for (ARDOUR::ScalePoints::const_iterator i = desc.
scale_points->begin();
49 return v > 0 ?
_(
"on") :
_(
"off");
56 #ifdef PLATFORM_WINDOWS
58 snprintf(buf,
sizeof(buf),
"-inf dB");
66 snprintf (buf,
sizeof (buf),
"%d%%", (
int) floor (100.0 * v));
68 snprintf(buf,
sizeof(buf), desc.
print_fmt.c_str(), v);
70 snprintf(buf,
sizeof(buf),
"%d", (
int)v);
72 snprintf(buf,
sizeof(buf),
"%.1f", v);
74 snprintf(buf,
sizeof(buf),
"%.2f", v);
76 snprintf(buf,
sizeof(buf),
"%.3f", v);
80 return std::string(buf) +
" dB";
static float accurate_coefficient_to_dB(float coeff)
std::string value_as_string(const ARDOUR::ParameterDescriptor &desc, double v)
std::string print_fmt
format string for pretty printing
std::shared_ptr< ScalePoints > scale_points
@ MIDI_NOTE
MIDI note number.
static std::string midi_note_name(uint8_t, bool translate=true)
float upper
Maximum value (in Hz, for frequencies)
float lower
Minimum value (in Hz, for frequencies)
bool toggled
True iff parameter is boolean.