}
if (desc.toggled) {
- return v >= 0 ? _("on") : _("off");
+ return v > 0 ? _("on") : _("off");
}
// Value is not a scale point, print it normally
snprintf(buf, sizeof(buf), "%s", ParameterDescriptor::midi_note_name (rint(v)).c_str());
} else if (desc.type == GainAutomation || desc.type == TrimAutomation || desc.type == EnvelopeAutomation) {
snprintf(buf, sizeof(buf), "%.1f dB", accurate_coefficient_to_dB (v));
+ } else if (desc.type == PanWidthAutomation) {
+ snprintf (buf, sizeof (buf), "%d%%", (int) floor (100.0 * v));
} else if (!desc.print_fmt.empty()) {
snprintf(buf, sizeof(buf), desc.print_fmt.c_str(), v);
} else if (desc.integer_step) {