Saving Breakpoint Function Editor in a Preset?

Mitch Turner's icon

I am creating a Pluggo Plugin in which I have a break point function object. Which object should I use to have its contents saved as part of a Preset.

[pp ] does not seem right but neither does [plugmultipram].

I saw in the PluggoDevGuide 3.5 a section on multislider but it does not seem the same to me.

Any help would be greatly appreciated.
Mitch

roger.carruthers's icon

You should be able to do this by binding the
breakpoint function object to a pattr, and then use a
hidden number box with a pp, to link the pattr presets
to the Pluggo parameter storage system.

I've used this method to save & restore the states of
a matrixctrl in dial mode in a Pluggo, but it's not
working 100% yet, ie. the preloaded presets restore
ok, but you can't save and load your own presets when
the plug is loaded in a host.

However, there must be another way to do this, because
there have been Pluggo's that use the breakpoint
function generator, that predate the whole pattr thing
by some time. Anyone at Cycling care to comment?
cheers
Roger

Timothy Place's icon

One thing you could try is to use plugmultiparam to store a list of
the breakpoints. The trick though is to use the first element of the
list to store the number of breakpoints in the list. You can then
use zl slice etc. to trim things down and work with the breakpoints
as you wish.

Hope that helps,
Tim

Mitch Turner's icon

Hey, thanks for the ideas. I'll give them a try.
Mitch