<div dir="ltr">Well, there's always tying a string to a post in a speaker cone with a weight on the other end of the string and then some sort of optical sensor....</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Apr 4, 2017 at 8:11 AM, Tom Wiltshire <span dir="ltr"><<a href="mailto:tom@electricdruid.net" target="_blank">tom@electricdruid.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">From the document:<br>
<br>
"Present implementations limit magic sinewaves to power line frequencies, possibly up to 400 Hertz."<br>
<br>
and<br>
<br>
"Unusual programming techniques are required as each and every microprocessor clock cycle is critical."<br>
<br>
Sounds like exactly the sort of thing the SDIY list would get into!<br>
<br>
and<br>
<br>
"As many as 44,000 or more microprocessor instructions may be needed per power line cycle."<br>
<br>
So it looks like full audio might be pretty demanding. Not impossible, perhaps, but at least demanding. For generating sines for a Hammond organ (just to take totally random example…) we'd only need up to 6KHz. Assuming the 44K-instructions-per-cycle guideline from above, that's a 264MHz processor!<br>
Still, like you, I can't help thinking there must be a (simpler) way…<br>
<span class="HOEnZb"><font color="#888888"><br>
Tom<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On 4 Apr 2017, at 13:26, <a href="mailto:rburnett@richieburnett.co.uk">rburnett@richieburnett.co.uk</a> wrote:<br>
<br>
> I have always wondered about magic sinewaves for something like this. For those not familiar they are sinewaves generated digitally using PWM techniques but the transitions in the PWM pulse-train are carefully chosen using some clever mathematics to force most of the low-order harmonics to zero. This *greatly* reduces how much you have to filter the signal in order to get a decent sinewave with nice low THD.<br>
><br>
> <a href="http://www.tinaja.com/glib/msinexec.pdf" rel="noreferrer" target="_blank">http://www.tinaja.com/glib/<wbr>msinexec.pdf</a><br>
><br>
> Might not be appropriate here? ...but it's a neat trick nonetheless. It's used in power electronic "inverters" for driving motors, but can't help thinking it might have some uses in audio synthesis too?<br>
><br>
> -Richie,<br>
><br>
> On 2017-04-04 12:37, Tom Wiltshire wrote:<br>
>> On 4 Apr 2017, at 11:32, Elaine Klopke <<a href="mailto:functionofform@gmail.com">functionofform@gmail.com</a>><br>
>> wrote:<br>
>>> Does this actually work?<br>
>> <a href="http://www.learningaboutelectronics.com/Articles/Square-to-sine-wave-converter-circuit.php" rel="noreferrer" target="_blank">http://www.<wbr>learningaboutelectronics.com/<wbr>Articles/Square-to-sine-wave-<wbr>converter-circuit.php</a><br>
>>> I would assume that being 3 RC networks in series means quite the<br>
>>> drop in volume.<br>
>> Yes, it works, and yes, it'll kill the volume. It's a three-pole<br>
>> passive filter. The recommendation (which they've ignored in this<br>
>> example) is for each resistor to be ten times the previous one to help<br>
>> avoid one stage loading the next. So it could be improved. There's an<br>
>> example in my LoopEnv datasheet, pg.6:<br>
>> <a href="http://www.electricdruid.net/datasheets/LOOPENV1Datasheet.pdf" rel="noreferrer" target="_blank">http://www.electricdruid.net/<wbr>datasheets/LOOPENV1Datasheet.<wbr>pdf</a><br>
>> It'll only work properly at one particular frequency, as you've<br>
>> realised. Changing the input frequency will change both the level and<br>
>> the harmonic content of the output (although perhaps not enough to<br>
>> matter for small changes in input frequency - e.g. vibrato?)<br>
>>> Also, in a related article they show two networks in series<br>
>>> converting the square wave to a triangle.<br>
>> Probably running the square into an integrator. That gives you a nice<br>
>> triangle, but the same volume problem - the volume halves for each<br>
>> octave you go up. Have a look at the stuff online about DCOs for more<br>
>> about this, since this is the problem they had to overcome.<br>
>>> All of the converters being dependent on the frequency of the input<br>
>>> wave being roughly the same as what the RC networks are tuned to.<br>
>> Exactly.<br>
>> Tom<br>
>> ______________________________<wbr>_________________<br>
>> Synth-diy mailing list<br>
>> <a href="mailto:Synth-diy@synth-diy.org">Synth-diy@synth-diy.org</a><br>
>> <a href="http://synth-diy.org/mailman/listinfo/synth-diy" rel="noreferrer" target="_blank">http://synth-diy.org/mailman/<wbr>listinfo/synth-diy</a><br>
<br>
<br>
______________________________<wbr>_________________<br>
Synth-diy mailing list<br>
<a href="mailto:Synth-diy@synth-diy.org">Synth-diy@synth-diy.org</a><br>
<a href="http://synth-diy.org/mailman/listinfo/synth-diy" rel="noreferrer" target="_blank">http://synth-diy.org/mailman/<wbr>listinfo/synth-diy</a><br>
</div></div></blockquote></div><br></div>