I am trying to generate a sound using the sox package synth feature, alarm 1: https://soundcloud.com/xekons/a1-1 and alarm 2: https://soundcloud.com/xekons/a2-1
its possible to create some interesting sounds:
play -q -n synth 0.2 sine 480 vol 0.2
play -q -n synth 0.2 triangle 480 vol 0.2
play -q -n synth 0.2 square 480 vol 0.2
play -q -n synth 0.2 pluck 480 vol 0.2
play -q -n synth 0.2 pluck C5 vol 0.2
play -q -n synth 0.2 sawtooth 480 vol 0.2
play -q -n synth 0.2 trapezium 480 vol 0.2
play -q -n synth 0.2 exp 480 vol 0.2
Here is a very elaborate one I found online:
play -n synth pl G2 pl B2 pl D3 pl G3 pl D4 pl G4 delay 0 .05 .1 .15 .2 .25 remix - fade 0 4 .1 norm -1
To listen to the alarm wave file it seems like its a decreasing volume, but maybe also frequency?
I tried this:
play -q -n synth 0.6 triangle 1500-1300 vol 0.2
which changes the frequency, but beyond that it sounds nothing like the bell lol. Also not looking for a close match, just something sounding somewhat similar to the bell in those wav files I linked.
The sox synthesized sound will be used in the python script that I am writing, and will go off under certain conditions. I plan to make the entire project I am working on opensource once I polish it up a bit.
I could not figure out how to synthesize the sounds, I really wish I understood the synthesizer better.
for now I am just playing the files directly from my python script, here is a small snippet:
If anyone can synthesize any sounds remotely similar to the ones I linked, please do post, and I will update this to mark your answer as the correct one. THANK YOU!