Python Forum
Unwanted delay between looped synth plays
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Unwanted delay between looped synth plays
#1
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?
Reply
#2
Is this a python question? What is "the synth" exactly; is it a keyboard?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Is it possible to add a delay right after a request.get() cubangt 6 2,788 Sep-07-2023, 09:29 AM
Last Post: shoesinquiry
Question Unwanted execution of unittest ThomasFab 9 2,070 Nov-15-2022, 05:33 PM
Last Post: snippsat
  Removing the unwanted data from a file jehoshua 14 4,094 Feb-01-2022, 09:56 PM
Last Post: jehoshua
  Request Delay pheadrus 1 3,816 Nov-25-2021, 08:51 PM
Last Post: snippsat
  adding a delay on end Daz2264 6 2,496 Sep-29-2021, 02:57 PM
Last Post: deanhystad
  HELP on Unwanted CSV Export Output | Using Selenium to Scrape soothsayerpg 0 1,275 Jun-13-2021, 12:23 PM
Last Post: soothsayerpg
  python delay without interrupt the whole code Nick_tkinter 4 5,169 Feb-22-2021, 10:51 PM
Last Post: nilamo
  How to read CSV file one row at the time in a range and some delay in between greenpine 2 4,758 Nov-20-2020, 02:26 PM
Last Post: greenpine
  configure delay on only one link using python3 HiImAl 3 2,727 Oct-21-2020, 07:51 PM
Last Post: buran
  How to eliminate unwanted spaces Mohan 5 2,895 Jun-04-2020, 08:34 AM
Last Post: buran

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020