<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><blockquote type="cite"><div 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);">If you're going to generate the signals as WAV files, wouldn't it be better to just use Matlab or C++</div></div></blockquote><div><br></div><div>if I'm exporting wavs from ltspice, it's to hear what ltspice thinks this exact circuit sounds like. in this case "exactly what you want" is the circuit's output. </div><br><div dir="ltr">Cheers,<div>Chris </div></div><div dir="ltr"><br><blockquote type="cite">On May 18, 2024, at 6:02 AM, Mike Bryant <mbryant@futurehorizons.com> wrote:<br><br></blockquote></div><blockquote type="cite"><div dir="ltr">

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">



<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're going to generate the signals as WAV files, wouldn't it be better to just use Matlab or C++ and produce exactly what you want, rather than some simulation of a circuit that produced something that probably wasn't quite the same as a real percussion
 instrument in any case ?</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 id="appendonsend"></div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<hr style="display: inline-block; width: 98%;">
<div id="divRplyFwdMsg" dir="ltr"><span style="font-family: Calibri, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);"><b>From:</b> Synth-diy <synth-diy-bounces@synth-diy.org> on behalf of rburnett@richieburnett.co.uk <rburnett@richieburnett.co.uk><br>
<b>Sent:</b> 18 May 2024 11:55<br>
<b>To:</b> Mattias Rickardsson <mr@analogue.org><br>
<b>Cc:</b> ackolonges fds via Synth-diy <synth-diy@synth-diy.org><br>
<b>Subject:</b> Re: [sdiy] *EXT* Re: Becoming better at understanding difficult analog schematics</span>
<div> </div>
</div>
<div style="font-size: 11pt;">You can set the maximum time-step of the simulation to something like<br>
2us and save the WAV file at a high sample rate like 192kHz.  Then load<br>
that into an audio editor, band-limit to 20kHz and resample to 48kHz<br>
before saving.  I find that gives better results for simulations that<br>
exhibit an inherently "high-pass" response like hi-hats, etc.  (Another<br>
thing that helps is to follow the circuit being simulated with a basic<br>
1st or 2nd-order 20kHz low-pass RC filter before writing the waveform<br>
out to a WAV file.  This curtails some of the ultrasonic stuff so it<br>
aliases less in the WAV file.)<br>
<br>
Good VA has a lot in common with Spice simulations, but it has to be a<br>
bit cleverer to render in real-time and to handle things like<br>
non-linearities and discontinuities in a way that doesn't result in<br>
unacceptable levels of aliasing in the final audio output.<br>
<br>
Being able to export simulation results to WAV audio files is still a<br>
neat feature though, aliasing and all!<br>
<br>
-Richie,<br>
<br>
<br>
<br>
> Very useful for prototyping, but it's aliasing like crazy if you<br>
> produce rapidly changing signals like cymbals etc. The simulations are<br>
> neither band-limited nor having constant timesteps. Virtual analog<br>
> synthesis is something else. :-)<br>
><br>
> /mr<br>
><br>
>><br>
________________________________________________________<br>
This is the Synth-diy mailing list<br>
Submit email to: Synth-diy@synth-diy.org<br>
View archive at: <a href="https://synth-diy.org/pipermail/synth-diy/" id="OWA97fbd6ff-8a97-888b-3aca-61c45d757047" class="OWAAutoLink" data-auth="NotApplicable" data-loopstyle="linkonly">
https://synth-diy.org/pipermail/synth-diy/</a><br>
Check your settings at: <a href="https://synth-diy.org/mailman/listinfo/synth-diy" id="OWAee1b5c88-8bdc-c22b-99d9-70d10c5859dc" class="OWAAutoLink" data-auth="NotApplicable" data-loopstyle="linkonly">
https://synth-diy.org/mailman/listinfo/synth-diy</a><br>
Selling or trading? Use marketplace@synth-diy.org</div>
<div id="appendonsend"></div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<hr style="display: inline-block; width: 98%;">
<div id="divRplyFwdMsg" dir="ltr"><span style="font-family: Calibri, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);"><b>From:</b> Synth-diy <synth-diy-bounces@synth-diy.org> on behalf of rburnett@richieburnett.co.uk <rburnett@richieburnett.co.uk><br>
<b>Sent:</b> 18 May 2024 11:55<br>
<b>To:</b> Mattias Rickardsson <mr@analogue.org><br>
<b>Cc:</b> ackolonges fds via Synth-diy <synth-diy@synth-diy.org><br>
<b>Subject:</b> Re: [sdiy] *EXT* Re: Becoming better at understanding difficult analog schematics</span>
<div> </div>
</div>
<div style="font-size: 11pt;">You can set the maximum time-step of the simulation to something like<br>
2us and save the WAV file at a high sample rate like 192kHz.  Then load<br>
that into an audio editor, band-limit to 20kHz and resample to 48kHz<br>
before saving.  I find that gives better results for simulations that<br>
exhibit an inherently "high-pass" response like hi-hats, etc.  (Another<br>
thing that helps is to follow the circuit being simulated with a basic<br>
1st or 2nd-order 20kHz low-pass RC filter before writing the waveform<br>
out to a WAV file.  This curtails some of the ultrasonic stuff so it<br>
aliases less in the WAV file.)<br>
<br>
Good VA has a lot in common with Spice simulations, but it has to be a<br>
bit cleverer to render in real-time and to handle things like<br>
non-linearities and discontinuities in a way that doesn't result in<br>
unacceptable levels of aliasing in the final audio output.<br>
<br>
Being able to export simulation results to WAV audio files is still a<br>
neat feature though, aliasing and all!<br>
<br>
-Richie,<br>
<br>
<br>
<br>
> Very useful for prototyping, but it's aliasing like crazy if you<br>
> produce rapidly changing signals like cymbals etc. The simulations are<br>
> neither band-limited nor having constant timesteps. Virtual analog<br>
> synthesis is something else. :-)<br>
><br>
> /mr<br>
><br>
>><br>
________________________________________________________<br>
This is the Synth-diy mailing list<br>
Submit email to: Synth-diy@synth-diy.org<br>
View archive at: <a href="https://synth-diy.org/pipermail/synth-diy/" id="OWAbdb0d12f-2921-67e3-8f78-5f5055716898" class="OWAAutoLink" data-auth="NotApplicable" data-loopstyle="linkonly">
https://synth-diy.org/pipermail/synth-diy/</a><br>
Check your settings at: <a href="https://synth-diy.org/mailman/listinfo/synth-diy" id="OWAa0b432bf-139c-9b2f-bd6e-0472b4644fa0" class="OWAAutoLink" data-auth="NotApplicable" data-loopstyle="linkonly">
https://synth-diy.org/mailman/listinfo/synth-diy</a><br>
Selling or trading? Use marketplace@synth-diy.org</div>


<span>________________________________________________________</span><br><span>This is the Synth-diy mailing list</span><br><span>Submit email to: Synth-diy@synth-diy.org</span><br><span>View archive at: https://synth-diy.org/pipermail/synth-diy/</span><br><span>Check your settings at: https://synth-diy.org/mailman/listinfo/synth-diy</span><br><span>Selling or trading? Use marketplace@synth-diy.org</span><br></div></blockquote></body></html>