<div>One can make PWM decoder that works as fast as lightning, basicaly straight from the first period of PWM wave. Just use the same ramp generator as in the transmitter, and alow it run only at positive level of PWM signal. Negative (or low) level of PWM resets the ramp and holds it at 0V. Also, the falling slope of the PWM signal triggers the FET of S&H circuit that is fed by the ramp, and S&H output is your PWM-decoded CV. Of course you need some filtering to remove possible glitches, but it can be tuned pretty high.<br></div><div>As a result you get CV that is lagged only by a period of input PWM frequency.<br></div><div><br></div><div>Roman<br></div><div><br></div><div><br></div><div class="nh_extra"><p>Dnia 27 maja 2017 12:31 Tom Wiltshire <tom@electricdruid.net> napisaƂ(a):<br></p><blockquote class="nh_quote" style="border-left: 2px solid #999; padding-left: 8px; margin: 0;"><div id="gwpb6ee4a1f"><div>On 27 May 2017, at 01:08, Quincas Moreira <quincas@gmail.com> wrote:<br></div><div><br></div><blockquote is-minimized=""><div>That's right, converting PWM to voltage requires filtering, so there'll always be a bit of glide.<br></div></blockquote><div><br></div><div>This is true, but you can make it pretty minimal, depending on the situation.<br></div><div><br></div><div>I designed a PWM-based pitch transposer, which uses two PWM channels,  one to provide octaves, and the other to provide semitones. Since one channel only needs ten steps, and the other only needs 12, the PWM frequency can be very high (250KHz) and the required filtering can therefore be both effective and fast.<br></div><div><br></div><div>The project  finished up as this:<br></div><div><br></div><div><a href="http://www.frequencycentral.co.uk/?page_id=1311" nh-safe-redirect="" data-saferedirecturl="https://zasobygwp.pl/redirect?sig=1b47530304bb865a19a6b0535169efe99a953accc7949dbd23f904970cabd179&url=aHR0cDovL3d3dy5mcmVxdWVuY3ljZW50cmFsLmNvLnVrLz9wYWdlX2lkPTEzMTE=" target="_blank">http://www.frequencycentral.co.uk/?page_id=1311</a><br></div><div><br></div><div>It's a pity that the technique wouldn't work for a full MIDI-CV convertor, but that'd need more resolution to get between notes, and then the benefit of only a few steps is gone.<br></div><div><br></div><div>Tom<br></div><div><br></div><div><br></div><div>_______________________________________________<br></div><div>Synth-diy mailing list<br></div><div><a nh-compose-link="" href="mailto:Synth-diy@synth-diy.org">Synth-diy@synth-diy.org</a><br></div><div><a href="http://synth-diy.org/mailman/listinfo/synth-diy" nh-safe-redirect="" data-saferedirecturl="https://zasobygwp.pl/redirect?sig=f5a7d515e23e7b2847f308fc5d0ab7801fb7328904288997517fe23d09e8e120&url=aHR0cDovL3N5bnRoLWRpeS5vcmcvbWFpbG1hbi9saXN0aW5mby9zeW50aC1kaXk=" target="_blank">http://synth-diy.org/mailman/listinfo/synth-diy</a><br></div></div></blockquote></div><div><br></div>