...
On top of that, switching is NOT equal to digital.
This myth is especially difficult in audio (Class D isn't digital!)
The definition of digital is only about a true or false state (1 or 0). PWM for example is also not a digital signal, but an analogue signal! (similar like AM and FM)
...
Not sure why Class D isn't digital nor why PWM isn't digital. Is it because of the filtering afterwards?
I was taught if you quantise the signal level it becomes a digital signal and if you have a signal that changes at regular intervals it is discrete.
As far as I know and can find (via google and encyclopedia) is the definition of digital means a logical statement with only true or false.
Therefore it is also impossible to amplify a digital signal, because a true will not be a bigger true when amplified.
You can even work digitally with pen and paper, no electronics needed.
Digital also means that the signal has discrete components. The with of PWM can be a sinewave (music) and therefore is not discrete!
A practical explanation is that otherwise you can even call a switch, digital, which isn't true.
PWM is just a modulation technique. You could even make a PWM out of sine-waves or triangles, although very impractical.
PWM is analogue by definition. You can amplify it, correct the phase etc etc etc. At the end you will have a different signal than you started with.
I have no idea why, but for some reason a lot of people think that everything that looks like a square wave is equal of being digital.