Randomly cycle the parameters until the output is stable

Dec 5, 2012 at 10:18am

Randomly cycle the parameters until the output is stable

I realize this could be quite a challenge, but has anyone ever done something that would randomly cycle a few parameters to make the output the parameters effect “stable”?

Think of something in the lines of “auto-tuning”

edit note: not antares auto-tuning, but auto-tuning like Gibson robo-guitar, except i would like to cycle parameters not tuners.

#65498
Dec 5, 2012 at 7:14pm

I am experimenting with running average and compare… Theoretically, I randomly cycle few parameters until the running average of the input matches the input, resulting in a *bang* that disables random changing of the parameters.

The ratio of match/no-match is around 170000:1. Perhaps this could work? Or am I taking the idiots road around

#235986
Dec 5, 2012 at 8:50pm

Lots of ways to do something like this and without seeing your patch difficult to know exactly what your looking for.

Here’s a patch where you set a target number and gradually narrow the search until the random number matches the target.

– Pasted Max Patch, click to expand. –
#235987
Dec 5, 2012 at 8:57pm

This is an interesting patch, thanks.

I can’t show you the patch since it’s huge at the moment and needs external files.
Basically I’m detecting sinusoids with help of several bandpass filters to clean up the signal and [sigmund~] to detect the frequency of the signal and I want to develop a mechanism that will narrow bandpass filter properties (filter order, passband ripple, width) to get a result as precise as possible.

edit: I’m figuring how to apply your logic to a dynamic target value. And probably the error margin would be set when the program stops narrowing it down.

#235988
Dec 6, 2012 at 1:43am

here’s a general method for honing in on a solution– hope it makes sense
–T

– Pasted Max Patch, click to expand. –
#235989

You must be logged in to reply to this topic.