[sdiy] saw vs ramp, audible?

Ben Stuyts ben at stuyts.nl
Mon Dec 9 22:20:55 CET 2024


> On 9 Dec 2024, at 19:37, Jonatan Liljedahl <lijon at kymatica.com> wrote:
> 
> Yes, all but the 4th one is the same. I don’t think it’s interesting or important to know/hear if it’s up or down ramp, the interesting thing is that it’s a clear difference. I also perceive it as lower pitch. They are all aliasing a lot too :)

Agreed about the aliasing. These were ideal sawtooth waveforms without any filtering. Here is a slightly improved version with an 8 pole low-pass Butterworth filter at 4.4 kHz. I have uploaded the resulting .wav to https://synth-diy.org/files/sawtooth_waves.wav to save bandwidth on the list.

Attached is the Python script. There is a bit of a DC shift between the inverted and regular wave forms, so I have to look into that.

The info about which is which is here: https://synth-diy.org/files/sawtooth_inversion_info.txt

Ben


> /Jonatan
> http://kymatica.com <http://kymatica.com/>
> 
> 
> mån 9 dec. 2024 kl. 19:14 skrev Ingo Debus via Synth-diy <synth-diy at synth-diy.org <mailto:synth-diy at synth-diy.org>>:
>> 
>> 
>>> Am 09.12.2024 um 17:44 schrieb Ben Stuyts via Synth-diy <synth-diy at synth-diy.org <mailto:synth-diy at synth-diy.org>>:
>>> 
>>> Here is a Python script to generate some random non-/inverted sawtooth waves after each other in a single wav file, plus a text file saying which is which. You can play with the parameters in the script to change the sample rate, length of each sample, etc.
>> 
>> Thanks for sharing!
>> I listened to them several times (via Yamaha NS-10M speakers), and the 4th one sounds slightly lower in pitch to me than the first three. Any one else noticing this too?
>> 
>> Ingo
>> ________________________________________________________
>> This is the Synth-diy mailing list
>> Submit email to: Synth-diy at synth-diy.org <mailto:Synth-diy at synth-diy.org>
>> View archive at: https://synth-diy.org/pipermail/synth-diy/
>> Check your settings at: https://synth-diy.org/mailman/listinfo/synth-diy
>> Selling or trading? Use marketplace at synth-diy.org <mailto:marketplace at synth-diy.org>
> ________________________________________________________
> This is the Synth-diy mailing list
> Submit email to: Synth-diy at synth-diy.org
> View archive at: https://synth-diy.org/pipermail/synth-diy/
> Check your settings at: https://synth-diy.org/mailman/listinfo/synth-diy
> Selling or trading? Use marketplace at synth-diy.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://synth-diy.org/pipermail/synth-diy/attachments/20241209/f3bae075/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sawtooth-test-aa.py
Type: text/x-python-script
Size: 2450 bytes
Desc: not available
URL: <http://synth-diy.org/pipermail/synth-diy/attachments/20241209/f3bae075/attachment.bin>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://synth-diy.org/pipermail/synth-diy/attachments/20241209/f3bae075/attachment-0001.htm>
-------------- next part --------------
numpy
wave
scipy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://synth-diy.org/pipermail/synth-diy/attachments/20241209/f3bae075/attachment-0002.htm>


More information about the Synth-diy mailing list