I rarely ask questions on this majestic vvvvorum since most questions can be answered by searching ;) Im a lurker.
Im trying to translate FFT Values from 4 Pianos to 4 Electromagnets.
The magnets are triggered with a mosfet via Arduino. The magnet strengh can be controller via Pulse Modulation. The faster the Pulse ( or a constant 1 ) the stronger the magnetic field. So i need loud sounds in any frequency to be translated into a fast Pulse, lower volume = slower pulsing
The music is a piece by john cage, so theres really many random notes. Very high, very low sounds that slowly descent into silence.
I used the Meannode to get an average value for all tonal frequencies.
I have had no possibility to test this with the magnet yet, but will be able to test it later today.
The main Problem is the fact that the “period” on the LFO im triggering to creat the pulse is constantly changing. I have added another LFO with a queue node to keep it from changing all the time.
Im not sure if a LFO is the right choice to create a Pulse fast enough for a magnet, but im not aware of alternatives and would welcome help on this :)
FFT_PulseModulation.v4p (14.9 kB)