Timing

Post any examples or modules that you want to share here
User avatar
Nubeat7
Posts: 1347
Joined: Sat Apr 14, 2012 9:59 am
Location: Vienna
Contact:

Re: Timing

Post by Nubeat7 »

sorry but it is not a ppq timer because it is not locked to the host beat position, maybe you should call it bpm ticker - for a ppq timer you will need the PPQ primitive.. the problem is when you start to play on any position it starts on the position you are and not synced to the beat position in the song - so every time you start to play not on a snapped barstart your ticker is offset..

the definition for ppq is pulses per quater (but it returns a float which will vary from 0 to 3.999999.. over 4 beats)
so it is the musical position from your host, if you don`t get this position it cant be ppq synced when you dont start playing at a barstart.
billv
Posts: 1165
Joined: Tue Aug 31, 2010 3:34 pm
Location: Australia
Contact:

Re: Timing

Post by billv »

Nubeat7 wrote:it is not locked to the host beat position

yeh..good point. Not addressing all ppq "behaviours"....that should be fixable too...
Still a "basic timing" module at the moment. Lots of different ways to do it...
So yeh....modify it any way you like. I'll definatly have a dig at that later on as well
I'm taking a detour, back to X11 and the re-build...see what this version does in there....
billv
Posts: 1165
Joined: Tue Aug 31, 2010 3:34 pm
Location: Australia
Contact:

Re: Timing

Post by billv »

Nubeat7 wrote:the problem is when you start to play on any position it starts on the position you are and not synced to the beat position in the song

Does seem like an easy fix to get that feature your after Nubeat7.
I started by turning the Clock Module to float. Created a 2nd second Clock that runs off the ppq trigger
timer. So there's two sets of numbers to choose from, to build your seq system, or midi output from.
Then added ppq primitive..and just routed it into the clock....idea is ok so far....
In the host, press along the timeline, clock changes with it...functions just like the "start" knob
in the X11.....
ScreenShot253.png
ScreenShot253.png (25.18 KiB) Viewed 71627 times
billv
Posts: 1165
Joined: Tue Aug 31, 2010 3:34 pm
Location: Australia
Contact:

Re: Timing

Post by billv »

Nubeat7 wrote:sorry but it is not a ppq timer.

And the tempo bug is still there...fine at 120.... but drifts real bad at other tempos
Will know more about it on w/end..will strip it down and find where the error really is....
This design defiantly on its last legs.....
billv
Posts: 1165
Joined: Tue Aug 31, 2010 3:34 pm
Location: Australia
Contact:

Re: Timing

Post by billv »

Awesome...just took the ppq trigger out and re-tested...error still there at tempo's other than 120..
Somethings not right in the host tempo/beat fraction part.....
Probably the beat fraction code i wrote is wrong....
Will have to make a green version to clarify this.....
billv
Posts: 1165
Joined: Tue Aug 31, 2010 3:34 pm
Location: Australia
Contact:

Re: Timing

Post by billv »

billv wrote:Probably the beat fraction code i wrote is wrong...

Ruby beat fraction seems ok...same results as green version.
Its the midi timer module.
Checked it in green and in ruby.
Stripped back circuit to just the is playing/beat fraction and the ticker/midi output module.
Still drifts at host tempos other than 120...
nasty stuff...got to start from scratch again....
billv
Posts: 1165
Joined: Tue Aug 31, 2010 3:34 pm
Location: Australia
Contact:

Re: Timing

Post by billv »

No...Its not happening. Myco was right..there's nothing here.
Everything drifts at host tempos other than 120....and it's a bigger drift than Trogs stuff...
At least his drift is somewhat consistent. My drift just keeps getting bigger.
Last edited by billv on Sun Jun 08, 2014 7:14 am, edited 1 time in total.
billv
Posts: 1165
Joined: Tue Aug 31, 2010 3:34 pm
Location: Australia
Contact:

Re: Timing

Post by billv »

billv wrote:No...Its not happening

Seems I was bit wrong again. The 2.04_v4 timer is not bad. :D
Most of that big drift diss-appears a lot in a big synth.
Timer is very useable it seems. Still not perfect...but good enough for me at the moment.
billv
Posts: 1165
Joined: Tue Aug 31, 2010 3:34 pm
Location: Australia
Contact:

Re: Timing

Post by billv »

Here's a new midi timer based on the default custom ticker.
Offers individual control of all Midi note/Velocity/Duration/Midi channel/On-Off.
Steps can be changed on the fly. Minimum step value is 2.
Don't know what the max is, I punched 1000 into the selector and still got a result.
I've stripped this fsm down to a "default template" style.
Everything is in 1 module, you can see it all at once.
Custom Seq Ticker_BV.fsm
(111.02 KiB) Downloaded 2363 times
billv
Posts: 1165
Joined: Tue Aug 31, 2010 3:34 pm
Location: Australia
Contact:

Re: Timing

Post by billv »

Here's an updated version.
I squeezed out a bug or two.
To further test it, I added a hostclock and stuff to keep tempo selections in time with host.
This also allows the tempo to controlled/automated at every bar.
Custom Seq Ticker_BV_v2.fsm
(120.98 KiB) Downloaded 2432 times
Post Reply