Quantcast
Channel: openFrameworks - Latest posts
Viewing all articles
Browse latest Browse all 40524

Duplicating ofParameterGroup (or ofParameter)

$
0
0

so it was kind of an unusual situation -- in this project, we had people create code sketches and use a parameter group to label what in the sketch should change.

the idea was that you'd see a kind of pseudo code on the right side with numbers that would update and on the left side you'd see visuals changing.

We then hooked this up to midi, to use a controller to record us changing the sketches, so we could animate the sketches. One issue was that when it was hooked up to midi, it felt like it needed smoothing every frame. We have over 50 sketches, so it was a pain to add new variables to each one to smooth, so i thought, "what if the midi alters an 'unsmoothed' version of the parameters and we just animate the original parameters to smooth towards the unsmoothed ones". We tried adding smoothing on the midi side, but because that is an event based thing (vs frame based) it doesn't work the same. In the end we had to do something like a clone but by hand.

I think this isn't a common use case, but I could see quickly copying a parameter group and diffing them, or storing the parameter values at a specific point, being something that's useful, etc.


Viewing all articles
Browse latest Browse all 40524

Trending Articles