background image

Max4Live live.dial widget trick

July 7, 2014


I’m currently in the process of overhauling the views of all Jamoma stereo audio modules to use Max4Live widgets in preparation for the Jamoma 0.6 release.

In particular live.dial is fast becoming a favourite, as this widget provides a graphical and numerical display of value, as well as info on what parameter it is controlling, and the unit used.

However, I’ve had one problem: If the unit is set to decibels, it only displays decibel with decimals for values in the [-10, 10] range. Today I got a tip from Emmanuel Jourdan. If I instead set the unit Style to Custom, I can use sprintf expressions to get what I want.

The same trick can be used with live.numbox.