First of all, thanks everybody for the quick and kind responses. I didn't expect that many and that fast! To add a little bit of context, the real life problem I have is that I've got a phaser pedal that uses OTAs driven by PWM and a tremolo in which a two vactrols and two transistors are driven by PWM. The PWM signal is the only thing passing from the digital realm to the analog one in the circuit and, somehow, when activated, a faint squeal can be heard in the background. It's dim, but it's there and must be removed. I think that increasing the PWM frequency might rid of it.
@MartinL Could I decrease that ICR1 value to, for instance, 255, so I get something around the 30KHz range by losing some accuracy in the values? Also, you're changing the duty cycle of OCR1A and OCR1B at the same time to the same value, but I reckon those are independent and I could change the duty cycle to anything. I have a stereo tremolo in which I'd like to treat each side slightly differently to create panning effects.
@anon57585045 I've just saved that in my markers. It looks great. Definitely will come back to it as soon as I find an hour or so today.
@GolamMostafa I don't mind the phase in this case. I have a flanger pedal in mind that would require two 50% duty cycle signals of opposite phase varying in frequency. Those would drive a bucket brigade delay chip, but that's a different story.
@johnwasser John, especial thanks to you since this year I've read like a thousand contributions of yours in this forum around this very topic (and I gotta say I've ctrl+c ctrl+v'd some of those).
I don't mind phase correct since I'm just driving a vactrol and a transistor and they just care about the average electrons passing through and opening the gate :). That 62.5 kHz Fast PWM in 3 and 11 looks great to me.
I've got a delay already working that uses a digital resistor I set via SPI. I use PWM to modulate the delay time, but no noise filters through with the "analogWrite" Arduino method since it connects to the digital part of the circuit and doesn't bleed into the audio, so that one is working and I'm not changing the code.
Now, would it be possible to have @johnwasser and @MartinL solutions at the same time and drive 4 independent leds/transistors/whatever independently and beyond the human hearing range? I thought this was impossible but I think I'm starting to get it and my mind's flying with possible uses of this.