Author Topic: how to replace midi drum with a wave loop  (Read 174 times)

johnvantelli

  • Posts: 64
how to replace midi drum with a wave loop
« on: 22 Feb '18 - 21:41 »
My app is growing...  ;D
I've midi and audio streams playing in a mixer stream, and I would like to be able to replace midi channel 10 (drums) with a wave loop.
I've two base loops to be selected based on midi beat (4/4 or 3/4)

I think it's possible but I don't know how to do..

the questions are:

- how to detect midi and wave beats and their pos?
- is it better to restart/resync the wave loop every midi beat or an initial sync is enough?
- Is this a good aproach or there is a better way?

example code is welcome :-)