Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Repeating same sound eventually starts to fail. #17

Closed
RichardEll opened this issue Nov 18, 2018 · 4 comments
Closed

Repeating same sound eventually starts to fail. #17

RichardEll opened this issue Nov 18, 2018 · 4 comments
Labels
bug Something isn't working
Milestone

Comments

@RichardEll
Copy link

If you load a sound from disk and then repeatedly call the play method at short ( < 0.25 second ) intervals, without waiting for the previous sound to complete, then it eventually starts to distort and become "scratchy". Even waiting a few seconds before replaying the sound does not solve the problem.
I am using a Windows 7 computer.

@kevinstadler kevinstadler added bug Something isn't working help wanted Extra attention is needed labels Nov 23, 2018
@mekb-turtle
Copy link

mekb-turtle commented Mar 31, 2019

Have you tried adding a second silence at the end of the audio file, also make sure to call sound.stop() before you call sound.play(), so no more than one sound is playing at once, so no feedback can occur, also make sure that the audio file is signed frequency.

@kevinstadler kevinstadler added this to the 2.4 milestone Jan 22, 2023
@kevinstadler kevinstadler removed the help wanted Extra attention is needed label Sep 21, 2023
kevinstadler added a commit that referenced this issue Sep 21, 2023
This allows them to be properly removed from the JSyn synth network, and
consequently garbage collected. Closes #17, #74.

Insert COPIOUS expletives here.
@jwarmouth
Copy link

I'm having this same issue. It looks like Kevin made a recent commit. Is there a way that I can download/pull this recent commit and compile it as a Processing library?

@kevinstadler
Copy link
Collaborator

@jwarmouth indeed, a much improved new library release is in the making! I have just packaged up a test build of the new release, you can download the sound.zip from here and just extract it to your Processing libraries folder (replacing the existing sound folder): https://github.com/processing/processing-sound/releases/tag/v2.4.0-preview

We are also looking for feedback on the new release before we push it to the wider public, so if you could let us know whether this version fixes your issue, or if there is anything else that you notice/run into regarding the new library we would be super grateful.

@jwarmouth
Copy link

@jwarmouth indeed, a much improved new library release is in the making! I have just packaged up a test build of the new release, you can download the sound.zip from here and just extract it to your Processing libraries folder (replacing the existing sound folder): https://github.com/processing/processing-sound/releases/tag/v2.4.0-preview

We are also looking for feedback on the new release before we push it to the wider public, so if you could let us know whether this version fixes your issue, or if there is anything else that you notice/run into regarding the new library we would be super grateful.

Thank you! I installed the test build, and it definitely seems to fix the issue. I am happy to be able to create the functionality I need with the native Sound library, rather than having to work with Beads, Minim, or another 3rd party library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants