use expression on each element of framesnap~?
Hi,
How do I treat each element of the framesnap~object?
If I for example want to use an expression (expr. Is there an expr~ so that it is possible to use expressions for signals?) on each of the elements in framesnap~ is that possible?
If I for example take the amplitude from "cartopol~" and I want to convert that to dB before or after the "framesnap~" object for each of the elements, how would I go about doing that?
Do I understand well you want to do calculation on lists? The vexpr object does that. The expression from amp to db is then [vexpr 20*log10($f1)].
Thanks for starting about framesnap~, had missed the introduction of the object.
Ah, ok!
I will try the vexp object then!
Is there an [ expr~] object or some other object that lets you run expressions on signals?
there is no expr~, but in the given case it should be easy to use math objects:
log~ 10
*~ 20.
and eventually followed by
clip~ -90. 0.
mc.gen~ takes an @expr attribute. It is possible to type [mc.gen~ @expr max(-90,20*log10(in1))], in Max8 that is.