This is one of the few people who connects math and music in a way that's both useful and interesting. I followed this channel back when I found the video on Fourier transforms[1], but never looked at other videos. I've never really thought about the math of consonance and dissonance, but I use it all the time without realizing it.
For example: a hypersaw. That's 7 saws slightly detuned played at the same time. The more you detune them, the worse it sounds. If you own Serum, you can hear this in realtime if you make a 7 voice saw and play with the detune knob.
You can use an LFO to modulate this and get a sound that's a little uneasy while still somehow being harmonious. It's perfect for dark/spooky music.