I honestly don’t know if this is the best forum to ask this, but as you are the Csound API guru in my humble opinion, I thought I’d ask you!
I’m experimenting with creating a plugin for Plogue Bidule and I’ve got a plugin up and running, using Spout and making sound. All good, but I get little cpu spikes and glitches in the audio; should I be using a CsoundPerformanceThread?
No. When using Csound in a plugin you simply call performKsmps() from the plugin’s processBlock function. Messing with other threads will be world of pain. What plugin type are you building? And are you using the SDK directly, or using JUCE/iPlug/etc…
Plugin type…in the sense of? I want to make something similar to the csound6~ Pd external. Arguably yes, I could just use Cabbage and make a AU/VST, but it’s kind of a learning exercise and closer integration would be useful. Plus I like making life harder for myself.
No, I wasn’t even aware there was one. but I like their stuff.
We should start a club
The processing method seems pretty succinct. The dropouts could be coming from elsewhere. Do they get better or worse if you change the ksmps in your .csd file?
Changing ksmps doesn’t seem to affect it, though they seem like 1 sample dropouts/discontinuities. I was convinced that it was when moving windows around or interacting with the computer somehow, but I’m not sure really.
I hadn’t but I just tried and still getting dropouts. I’m gonna keep an eye on it. I probably make out that it’s terrible, but it isn’t, just enough to bait me. I’ll try tomorrow after a fresh restart as it could equally be some other process running that’s pegging the cpu. Definitely graphics related tho
It’s not publicly available on the site. I think he doesn’t want the likes of me sending him annoying questions, which I do anyway. You have to email email_address who’s the lead developer on that product.
I might do, if I need to experience higher levels of pain than usual. I’m going to block out that email address just in case Don’t want him spammed on account of us
This morning I’m finding when hitting cmd+s to save something in VS Code (which is running some node processes), that’s a factor that causes hiccups in the audio stream. Seems totally unrelated, but unless it’s a thread issue?
It’s hard to say without seeing the SDK. but for now you might try filling s1 and s2 with a wave table and see if you continue to get dropouts. If you make the sine table = buffer size and sr = 44100, you should hear a tone around 172 Hz. If you get dropouts there you know Csound isn’t to blame