nic
Soapbox Supremo  
Troublemaker
Press any key to continue
Posts: 2,011
|
Post by nic on Sept 19, 2018 13:43:32 GMT
Here's a little Stream Byter script to monitor the BPM of an incoming clock signal. Merge this scene (or paste the code below) and feed it a clock signal. The left hand label will show the bpm in whole numbers and the right hand label will show the bpm in 100ths. Note we do have a bit of integer rounding inaccuracy, so the 100ths may not be perfect and may also fluctuate, but it's not too bad. # bpm monitor by audeonic IF LOAD # tick count ASS L0 = 0 END IF M0 == F8 MAT I0 = L0 % 18 IF I0 == 0 # quarter note ASS I1 = T0 IF L0 != 0 # 25th tick onwards, interval (ms) in i1 MAT I2 = EA60 / I1 SET LB0 I2 +D MAT I3 = EA60 % I1 MAT I1 = I1 / 64 MAT I3 = I3 / I1 SET LB1 I3 +D END END
MAT L0 = L0 + 1 END IF M0 >= FA IF M0 <= FC ASS L0 = 0 END END
Regards, Nic. Attachments:Scene-BPM Monitor.mfr (1.09 KB)
|
|
|
Post by John Haas on Sept 24, 2018 12:46:42 GMT
thanks for posting this. I wanted to implement a "Beat Repeat", holding down a drum pad, and have it repeat the note at various regular intervals, 1/4 note, 1/8, 1/  , etc., and seeing this post pinned to the top was all I needed to figure out the clock part of it. Cheers!
|
|
ki
MidiFire Beta
Posts: 25
|
Post by ki on Nov 17, 2018 7:37:51 GMT
Hmm this does not seem to work in StreamByter AU - probabbly because the tempo messages (and start stop etc) are not yet integrated ?
I still have several use-cases for thes features...
Greetings, -ki
|
|
nic
Soapbox Supremo  
Troublemaker
Press any key to continue
Posts: 2,011
|
Post by nic on Nov 19, 2018 11:23:04 GMT
Hi ki, The above code works with a pure MIDI clock signal, so if you piped a clock signal into the above code loaded in the AUv3 it should work. However, I think you're referring to the AUv3 being able to interpret the AUv3 transport messages. This is on my list to investigate. Regards, Nic.
|
|