Wave array bad behavior
Posted: Mon Oct 06, 2014 6:55 am
Hi,
I'v released a new drum sampler lately
http://www.tornsub.com/ProductDetails.aspx?pid=4
and it works just fine, but having one major problem that seems hard to resolve:
I'm using 20 sample slots which means 20 wave array primitives that load a new sample at once on preset change to create a new drumkit. I understand that to do it properly,
I should first remove the old samples from the memory (clear the array) and then, load the new ones. I use timers for this, but the problem is that sometimes, when a preset changes, i got harshing popping and clicking sound (something like bad speakers effect). Thought maybe its due to the fact that the wave array primitives need some more time to clear their arrays before loading the new waves, so increased the timers delay but it hadn't resolved the problem. Note that the bad audio behavior comes and goes. For instance, it comes after 2-3 preset changes and disappear after another 2-3 preset changes. Really strange...
Does anyone knows how long it takes to the wave array primitives to clear their array before they are ready to load a new samples?
Or probably the problem is somewhere else? A bug maybe?
I'v released a new drum sampler lately
http://www.tornsub.com/ProductDetails.aspx?pid=4
and it works just fine, but having one major problem that seems hard to resolve:
I'm using 20 sample slots which means 20 wave array primitives that load a new sample at once on preset change to create a new drumkit. I understand that to do it properly,
I should first remove the old samples from the memory (clear the array) and then, load the new ones. I use timers for this, but the problem is that sometimes, when a preset changes, i got harshing popping and clicking sound (something like bad speakers effect). Thought maybe its due to the fact that the wave array primitives need some more time to clear their arrays before loading the new waves, so increased the timers delay but it hadn't resolved the problem. Note that the bad audio behavior comes and goes. For instance, it comes after 2-3 preset changes and disappear after another 2-3 preset changes. Really strange...
Does anyone knows how long it takes to the wave array primitives to clear their array before they are ready to load a new samples?
Or probably the problem is somewhere else? A bug maybe?