Menu where user can type in float value?

My Digital Sequencer module offers different output ranges for users to select in the right-click menu. For example:

  • 0v to 10v.
  • -5v to 5v
  • 0v to 5v
  • 0v to 1v
  • Etcetera

In addition to this, is it possible to let users type in specific values in a right-click menu item? If so, could someone explain the code required to pull that off?

Thanks!!

You need to override setDisplayValueString in your Param Quantity.

You can find some examples here: SquinkyVCV/CompressorTooltips.h at main · squinkylabs/SquinkyVCV · GitHub

Also, I think I saw an example on this forum yesterday.

Anyway, the idea is that you get passed a string, and you need to turn it into a float value. It can be any string that you let people type in.