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

Synthesized sound extremely glitchy #9

Open
hamoid opened this issue Sep 10, 2018 · 7 comments
Open

Synthesized sound extremely glitchy #9

hamoid opened this issue Sep 10, 2018 · 7 comments
Labels
Linux/Raspberry Pi more info needed Further information is requested

Comments

@hamoid
Copy link

hamoid commented Sep 10, 2018

Hi. I'm trying the SineCluster and SawWave examples and most of the time they do not work correctly on my system.

When I start the sketch most of the times the result is almost pure glitch, very broken. Sometimes, about 10% of the times, it seems to work ok. I've heard it slide from working to glitch: it starts ok, but after a few seconds it becomes broken. It sounds like something out of sync, or a threading problem.

I tried recording it with simplescreenrecorder, but the result is silent. I can try record it with an external recorder if that helps.

I work on ArchLinux, the laptop is a quad i7 and I'm used to audio synthesis (often with SuperCollider or webaudio) and creative coding with different languages.

@kevinstadler
Copy link
Collaborator

What does the CPU usage look like while the sketches are running, is Java hogging a lot of the processor?

Also, could you paste the output from the Processing console from when the Sound library is initialised (it should tell you some stuff about latency etc)

@hamoid
Copy link
Author

hamoid commented Sep 12, 2018

Hi, this is "idle":

before

and this while running the sine cluster:

after

The console shows this:

Sep 12, 2018 12:26:08 PM com.jsyn.engine.SynthesisEngine start
INFO: Pure Java JSyn from www.softsynth.com, rate = 44100, RT, V16.8.0 (build 463, 2017-10-16)

@kevinstadler kevinstadler added the help wanted Extra attention is needed label Sep 12, 2018
@mekb-turtle
Copy link

mekb-turtle commented Mar 31, 2019

Before the sound.play() have you got sound.stop(), so it doesn't get feedback.

@hamoid
Copy link
Author

hamoid commented Mar 31, 2019

@wooden-utensil sorry I don't understand what you mean. Is it a question?
I just open the SineCluster example and run it.
With the latest version there's no longer anything in the console.

@mekb-turtle
Copy link

@hamoid Have you tried updating Processing to the latest version, also try updating your speaker driver if necessary. Try to see if you can change the bit quality and if it's signed or unsigned, otherwise just try to play around with the parameters. Make sure you define the SineCluster in the setup() function.

@hamoid
Copy link
Author

hamoid commented Apr 11, 2019

@wooden-utensil I'm using the latest Processing. Sound in all other environments work fine: with and without jackd, in SuperCollider, Audacity, Firefox, cmus, VLC, KDEnlive, zynaddsubfx, etc. It also works in Processing with Minim and Beads (other sound libraries). So I think my system should be configured ok for sound.

I am not writing any new programs, just running the examples that come with the Sound library for Processing, so it's not an error in my programs.

Unfortunately I have no time at the moment to change audio settings to try debug this. Maybe some day.

@jeanFrancoisHicter
Copy link

jeanFrancoisHicter commented Feb 10, 2020

Hey! I jump on this thread as I did a simple program to deal with sineWaves... the idea is to modulate the amplitude of the waves with LFO... I post the link to the code below so you can tell me what is wrong... The issue I have is: massive parasites/glitches: the sine wave seems to be "scaled" on a sample rate basis: but there is no way in the library to custom the sample rate. So, guys, what's wrong here? Thanks!

https://www.dropbox.com/s/0ry9srb9r3cgitt/soundTest.pde?dl=0

@kevinstadler kevinstadler added more info needed Further information is requested Linux/Raspberry Pi and removed help wanted Extra attention is needed labels Sep 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Linux/Raspberry Pi more info needed Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants