dreamlayers / synaesthesia

Synaesthesia music visualization program
GNU General Public License v2.0
31 stars 5 forks source link

Reducing diagonal spread of new particles - code pointers request. #1

Open ra-om opened 1 year ago

ra-om commented 1 year ago

Hello, I find synaesthesia second to none for some types of music, still in some songs the constant diagonal movement downwards can be distracting.

If I perceive right, each new particle that spawns splits into two and goes down, with not much connection to the music(please correct me if I'm wrong). I would like to reduce or eliminate this effect, and play with it until I perceive an improvement.

Kind regards, RO.

dreamlayers commented 1 year ago

When sounds happen, Synaesthesia draws things corresponding to them. It doesn't track these individual things afterwards. Instead, between frames, what was drawn before is processed via a fade algorithm, which transforms the image.

There are 3 different fade modes: fade, heat and wave. If you don't want things to spread afterwards, try the ordinary fade mode. Both heat and wave spread things around. Code: https://github.com/dreamlayers/synaesthesia/blob/345d2de7c11fcaef894c7b215682f0510f7d3a78/core.cc#L381

ra-om commented 1 year ago

Thank you! In the latest version, after making some adjustments. I think I've finally got it to a point where it's satisfactory with all kinds of music. Also your modified algorhythm is a huge improvement from the classic one. Thank you for all the great work.