# How to invert a value in animation nodes?

Do somone know how to realize that: I want to control the value on the light strength of my shader in the my node tree with the amplitude of a sound file. This works perfectly fine in the animation node Plugin. But now i would love to invert the light strength. That means when the light goes on, on the first (original) material, the light on the inverted material should go off.

Is my question understandable :D ?

I hope so.

Greets and ty 4 all replies

• max - amplitude? – Omar Emara Apr 30 at 17:27
• Hey Omar:) I can freely choose the amplitude. The files come directly from my DAW and are limited at dBFs 0. The specific track i was talking about in my question were the solo stem of my instrumet bus. So i guess his in avarage lvl is like -12 to -6 DbFs. – Forrest Apr 30 at 18:36
• I mean, all you have to do is subtract the computed amplitude from the maximum amplitude you define. – Omar Emara Apr 30 at 18:41
• Can you please clarify what you want to do? – Omar Emara May 3 at 7:22