Python Forum

Full Version: Unwanted delay between looped synth plays
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Working on a relay-activated alarm on Raspberry Pi. When input is true, alarm should repeat over & over until input goes false. The code all works, but there is a delay between successive plays of the synth. Here is inside the loop (just what plays in the loop):

play -n -c 2 synth 2.2 saw 430-570 vol 0.4 synth 2.2 sine mix 430-570

It keeps playing it over & over like it should, but there is a very small delay, like 1/10 sec between plays. Guessing the synth just takes a bit to get going every time?
Maybe "synth" isn't the right TOOL for this application. What you would be hearing here is sort of a raspy upwards climbing alarm that just repeats ///////. Any ideas?
Is this a python question? What is "the synth" exactly; is it a keyboard?