<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I'm afraid that doesn't actually work. </div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
If you do everything in 2mS (or any other audio frequency) bursts, you still get repetitive patterns appearing on the memory lines so it still produces audio crap. You really should do the actual audio processing at 48 or 96kHz, then try to randomise lower
frequency actions such as generating envelopes, handling MIDI calls and so on. I divide the code for these up into 32 tasks, then calculate 31 in a random order, one per each 96kHz timeslot, but always with just the 32<sup>nd</sup> task being always on the
32<sup>nd</sup> timeslot which transfers the newly calculated values into the active memory locations all the other DSP processing uses.</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Synth-diy <synth-diy-bounces@synth-diy.org> on behalf of Mattias Rickardsson <mr@analogue.org><br>
<b>Sent:</b> 08 February 2024 15:22<br>
<b>To:</b> Richie Burnett <rburnett@richieburnett.co.uk><br>
<b>Cc:</b> Synth DIY <synth-diy@synth-diy.org><br>
<b>Subject:</b> Re: [sdiy] How to design out "usb noise"?</font>
<div> </div>
</div>
<div>
<div dir="auto">
<div>
<div class="x_gmail_quote">
<div dir="ltr" class="x_gmail_attr">Den tors 8 feb. 2024 13:59 <<a href="mailto:rburnett@richieburnett.co.uk">rburnett@richieburnett.co.uk</a>> skrev:<br>
</div>
<blockquote class="x_gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
... if the main micro is processing audio in <br>
2ms blocks that results in an ugly 500Hz current waveform that is quite <br>
hard to filter out! You either need a *LOT* of local stored charge or a <br>
big inductor to smooth out the ripple of a 500Hz pulse waveform, <br>
otherwise it's influence starts to spread across the board!<br>
</blockquote>
</div>
</div>
<div dir="auto"><br>
</div>
<div dir="auto">Or you just have to fill your processors to keep them busy at all times. Finally, feature creep is the solution! ;-)</div>
<div dir="auto"><br>
</div>
<div dir="auto">/mr</div>
<div dir="auto"><br>
</div>
<div dir="auto">
<div class="x_gmail_quote">
<blockquote class="x_gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
</blockquote>
</div>
</div>
</div>
</div>
</body>
</html>