Sounds like you suggest 555 with RC time constant to get a ramp but I am afraid it won't be accurate enough. I am not sure about the output feedback yet. In class D it is more challenging then AB. For now I think I would like to generate a clean triangle waveform of min 200khz (10x audio frequency). I used standard frequency formula and got R3 - 10k and C1 = 625pF for 200kHz:How linear do you need your triangle-wave? If you class-D is open-loop then it needs to be really accurate. If you have feedback, then less so. Maybe a 555 might do it? Or if it has to be straight, a 555 and a couple of current sources?

But the problem is, with these values I only got ~60khz as you can see on the pop up window. Worse still, my amplitude is messed up as well - from perfect +/-1V to +/- 2.5 roughly. While I think I can explain the frequency problem by usage of op amp in place of a comparator, I wonder why the amplitude is messed up? After all the R2/R1 ratio should keep it constant? Or is it because it also doesn;t catch up with the speed of oscillation?
Notice that each of the amps have one input grounded therefore it needs to exceed +/-1V Threshold to overcome the feedback ratio and we see it indeed happens from my waveforms. Looks like the diodes are not modeled then.That depends if whoever made the model remembered them! Just add a voltage probe between the two inputs, and if it ever exceeds 0.6V in either direction they are missing. Just add them in with a couple of external 1N4148s and you'll see what will really happen.







