use expression on each element of framesnap~?

    Jan 16 2019 | 2:44 pm
    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?

    • Jan 16 2019 | 8:34 pm
      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.
    • Jan 21 2019 | 11:06 am
      Ah, ok! I will try the vexp object then!
    • Jan 21 2019 | 1:01 pm
      Is there an [ expr~] object or some other object that lets you run expressions on signals?
    • Jan 21 2019 | 2:06 pm
      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.
    • Jan 21 2019 | 2:18 pm
      mc.gen~ takes an @expr attribute. It is possible to type [mc.gen~ @expr max(-90,20*log10(in1))], in Max8 that is.