Animation of a logarithmic scale

Franchouss's icon

Hello everyone,

I'd like to create a patch with a logarithmic frequency scale between 0 and 20 kHz. I move a slider that selects a frequency, and I'd like to animate a second area around that frequency. However, I'd like this area to have a fixed frequency. For example, +/- 500 Hz, so if I'm at 400 Hz, I want this area to be between 0 and 900 Hz, and I want this area to be animated logarithmically.

I've made a first patch, but I can't seem to animate this area logarithmically. It's a real-time scale, and as a result, the animation isn't working properly.

Do you have any ideas, please?

Max Patch
Copy patch and select New From Clipboard in Max.

Matteo Marson's icon

I would use ftom / mtof to apply the offset in frequency space, and display the result in log space

Max Patch
Copy patch and select New From Clipboard in Max.

Franchouss's icon

Thank you so much for your reply. It seems to be exactly what I want to do. I wasn't very familiar with these items. Have a good day!