If you have a problem or need to report a bug please email : support@dsprobotics.com
There are 3 sections to this support area:
DOWNLOADS: access to product manuals, support files and drivers
HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects
USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here
NEW REGISTRATIONS - please contact us if you wish to register on the forum
Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright
Scope's in FS
Scope's in FS
Hey all, ive been trying to get an accurate scope going & have come up short.As it stands I would like to get a snapshot of the audio every beat. So far with the amazing work of Billv, Nubeat7, Trog & others its now possible to have accurate timing from the host.
My process is this:
Calculate the required samples needed for the snapshot (get beat length in samples)
Then with the help of a good timer, trigger the mono2graph every beat.
Each time its slightly off. Nothing I do seems to grab the sample in the same place. It keeps bouncing around.
Have a look at the fsm
Export it to vst, load up in host.
Whack in a 4/4 kick pattern and hit play. Technically speaking it should grab the kick sample very beat . It does, but it keeps jumping around on every beat.
Now if you program a kick only on the first beat & then hit play. . . you see that it grabs EARLY (beginning of kick at the end of sample window) & on the second beat shows a grab thats too late??? Annoying!
I tried to make the fsm as minimal as possible to reduce the amount of human error
Dont know where to go on this one! Its either 2 things: Timing off or delay in graph
Im pretty sure that the timing is not an issue:
http://www.dsprobotics.com/support/viewtopic.php?f=3&t=1255
http://www.dsprobotics.com/support/viewtopic.php?f=3&t=1267
So does anyone have experience with graphs / displaying signals here?
Any help would be greatly appreciated!
My process is this:
Calculate the required samples needed for the snapshot (get beat length in samples)
Then with the help of a good timer, trigger the mono2graph every beat.
Each time its slightly off. Nothing I do seems to grab the sample in the same place. It keeps bouncing around.
Have a look at the fsm
Export it to vst, load up in host.
Whack in a 4/4 kick pattern and hit play. Technically speaking it should grab the kick sample very beat . It does, but it keeps jumping around on every beat.
Now if you program a kick only on the first beat & then hit play. . . you see that it grabs EARLY (beginning of kick at the end of sample window) & on the second beat shows a grab thats too late??? Annoying!
I tried to make the fsm as minimal as possible to reduce the amount of human error
Dont know where to go on this one! Its either 2 things: Timing off or delay in graph
Im pretty sure that the timing is not an issue:
http://www.dsprobotics.com/support/viewtopic.php?f=3&t=1255
http://www.dsprobotics.com/support/viewtopic.php?f=3&t=1267
So does anyone have experience with graphs / displaying signals here?
Any help would be greatly appreciated!
- Drnkhobo
- Posts: 312
- Joined: Sun Aug 19, 2012 7:13 pm
- Location: ZA
Re: Scope's in FS
There is no way to make this work with green triggers. The only chance is to use Ruby and its audio frames. But that'll use a lot of CPU.
-
MyCo - Posts: 718
- Joined: Tue Jul 13, 2010 12:33 pm
- Location: Germany
Re: Scope's in FS
But why MyCo. . . WHY
Its so close. . . just a few samples jumping around each time
Its so close. . . just a few samples jumping around each time
- Drnkhobo
- Posts: 312
- Joined: Sun Aug 19, 2012 7:13 pm
- Location: ZA
Re: Scope's in FS
Drnkhobo wrote:But why MyCo. . . WHY
Its so close. . . just a few samples jumping around each time
Because green data isn't sample accurate... it's processed whenever the CPU has time for it. Also the "Mono to array" primitive captures samples block aligned, when your sample buffer is very big, you'll always capture only the beginning of the buffer, but never the samples that are somewhere near the end.
-
MyCo - Posts: 718
- Joined: Tue Jul 13, 2010 12:33 pm
- Location: Germany
Re: Scope's in FS
you'll always capture only the beginning of the buffer, but never the samples that are somewhere near the end.
I see. . .
I mean, its no problem if you have a full track running (the display will be 1 beat off but thats fine). Just the constant moving of the graph. Maybe a Ruby routine with Arrays can help to keep it in place?
Because green data isn't sample accurate... it's processed whenever the CPU has time for it.
I was under the assumption that the beat ticker is done in Ruby??? Its getting excellent results just little jumpy.
- Drnkhobo
- Posts: 312
- Joined: Sun Aug 19, 2012 7:13 pm
- Location: ZA
Re: Scope's in FS
I don't know details of your project, but what about some smoothing/averaging over time? Slower but more accurate display for more constant patterns? I used "green buffer" for pitch tracking instabilities. Not perfect, but depending on your needs - the idea can do the job. Is somewhere on this forum.
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
Feel free to donate. Thank you for your contribution.
- tester
- Posts: 1786
- Joined: Wed Jan 18, 2012 10:52 pm
- Location: Poland, internet
Re: Scope's in FS
Thanks Tester Will look into it!
- Drnkhobo
- Posts: 312
- Joined: Sun Aug 19, 2012 7:13 pm
- Location: ZA
Re: Scope's in FS
MyCo wrote:Because green data isn't sample accurate
In Some Seq systems I've built, they use green counters before feeding back into midi.
Sample accuracy is maintained, and well documented.
Myco, is the only reason i'm maintaining sample accuracy here,
is because green section is within a "Ruby" loop, so to speak????
BV MUSIC SYDNEY AUSTRALIA..Songwriting and Software development
Headquartershttps://www.bvmusicsydneyaustralia.com/
Spotifyhttps://open.spotify.com/artist/7JO8QM40mVmHb7pAwKPJi0
Donatationhttps://www.paypal.com/donate/?hosted_button_id=HEUR8R7K8GZ4L
Headquartershttps://www.bvmusicsydneyaustralia.com/
Spotifyhttps://open.spotify.com/artist/7JO8QM40mVmHb7pAwKPJi0
Donatationhttps://www.paypal.com/donate/?hosted_button_id=HEUR8R7K8GZ4L
- billv
- Posts: 1157
- Joined: Tue Aug 31, 2010 3:34 pm
- Location: Australia
Re: Scope's in FS
No, sample accuracy isn't maintained. As soon as your timing path relates on a green connection, your sample accuracy is gone. There are only 3 types of connection which are accurate: Ruby (V), Midi (M) and streams. When you use something else, your accuracy is depending on Windows and CPU usage.
-
MyCo - Posts: 718
- Joined: Tue Jul 13, 2010 12:33 pm
- Location: Germany
Re: Scope's in FS
There are only 3 types of connection which are accurate: Ruby (V), Midi (M) and streams.
ok, so will it be accurate if the timing & drawing is all in Ruby?
- Drnkhobo
- Posts: 312
- Joined: Sun Aug 19, 2012 7:13 pm
- Location: ZA
Who is online
Users browsing this forum: No registered users and 1 guest