From the original SynthMaker forum (2004–2014), with its members’ names and dates.
geekygenius ·
Hello everyone. I am trying to make a little olliscope that takes in data from a stream, samples it, then displays it.
Ignore most of the GUI stuff on the top. To my knowledge it isn't important. Right now, when I look at my view, I get jittery instead of smooth. Shown below is the output, it is supposed to be a saw wave LFO.
I was reading around, and it sounds like this is because of the sound buffer. It only updates when the buffer fills (or empties). For simplicity sake, I say it refreshes at the same rate as the buffer is long.
How do you get around this issue? Also, what optimizations can I make (if any)? I just read the tutorial on triggers, so I think I optimized it a bit.
Thank you!
infuzion ·
osm plz
cyto ·
From the looks of your picture, it seems you are trying to "sample" stream rate data (which updates at least 44,100 times per second) with a "tick" that updates (at best) 100 times a second. This is not the right approach. There is a "mono to graph" primitive that will be better (it samples chunks of stream data). Though really it seems what you are trying to accomplish is the same thing that the "scope" module (from the toolbox) does. You should look in there for your answers.
-cyto
geekygenius ·
infuzion wrote: osm plz
Here you go.
geekygenius ·
cyto wrote: From the looks of your picture, it seems you are trying to "sample" stream rate data (which updates at least 44,100 times per second) with a "tick" that updates (at best) 100 times a second. This is not the right approach. There is a "mono to graph" primitive that will be better (it samples chunks of stream data). Though really it seems what you are trying to accomplish is the same thing that the "scope" module (from the toolbox) does. You should look in there for your answers.
-cyto
The only problem with that is that it gives me all of the data. I only need every 1000th sample to get an accurate representation of what the LFO is outputting. The scope works great for higher frequencies, but it doesn't mean much for an LFO.
*EDIT*
After some tinkering, I set the number of samples of the scope to 65536. By putting it on the same chain as the "view" module, it increased the resolution to where it was no longer jittery. I think I'm just looking for a way to update the stream on demand. That's what the scope seemed to do.
cyto ·
geekygenius wrote: The only problem with that is that it gives me all of the data. I only need every 1000th sample to get an accurate representation of what the LFO is outputting. The scope works great for higher frequencies, but it doesn't mean much for an LFO..
Have you looked at this. It might be similar to what you are looking for. A LOT of discussion and work from various SMers went into getting that to work right, so if you are interested, you might want to read the whole thread.
-cyto
infuzion ·
geekygenius wrote: Hello everyone. I am trying to make a little olliscope that takes in data from a stream, samples it, then displays it
cyto wrote: Have you looked at this. It might be similar to what you are looking for.
1/2 of the problem with searching the SM forums is either knowing what words to search for, or getting the spelling right 😉
A little joke, but I have made the same mistake several times (like having to retype "made" 4 times just now 😮 )
Wrote something here? To have a post removed or your name hidden, write to [email protected].