PalatisSoftPWM - dynamic numbers of channels

Hello,

I'm using the per1234/PalatisSoftPWM library to control a few leds.
To use the library you need to invoke the SOFTPWM_DEFINE_OBJECT macro which will create the PMW object that you use afterwards. However that means you hardcode the number of channels to be used.
I need to be able to dynamically set the number of channels in setup().
Is there a way to do that?

PS: I know of GitHub - bhagman/SoftPWM: A Wiring (and Arduino) Library to produce PWM signals on arbitrary pins., and that would do what I need, but there I can't increase the PWM frequency and it's not ok for me.