Quick Sign In:  

Forum: Old versions

Topic: Bar counter instead of beat counter - Page: 2

This topic is old and might contain outdated or incorrect information.

action="get_beat_counter" / 4/>
why you put "/4" ?
It's an error, a "/" it's an end of a line so if you add a thing, there's an error
 

Posted Tue 23 Sep 14 @ 4:30 pm
jmf28 wrote :
action="get_beat_counter" / 4/>
why you put "/4" ?
It's an error, a "/" it's an end of a line so if you add a thing, there's an error


becouse i try to devide the outcome by 4 so that instead of a beatcounter, i get a barcount
 

Posted Tue 23 Sep 14 @ 4:46 pm
PachNPRO InfinityMember since 2009
I've done some research yesterday.
Couldn't find a way to get a bar counter without doing some math.
And unfortunately you can't do so...

The only way I could think of is something like this, but haven't tried...

var "myCounter" 0 ? get_beat_counter & param_mod 4.0 & param_equal 0 ? set "myCounter" 1 & get_var "myCounter" : nothing : var "myCounter" 1 ? get_beat_counter & param_mod 4.0 & param_equal 0 ? set "myCounter" 2 & get_var "myCounter" : nothing : var "myCounter" 2 ? get_beat_counter & param_mod 4.0 & param_equal 0 ? set "myCounter" 3 & get_var "myCounter" : nothing

.......


Intention:
Get the beat_counter and divide it with the modulo operation.

E.g. you got 3 Beats, divide it by mod 4... 3%4 != 0, so not a full bar over.
you got 4 beats, divide it by mod 4... 4%4 = 0. 1 bar is over, save 1 to your var and return the value of your var, then go on.

You now are at Beat 7, 7%4 != 0, not a bar over yet.
Beat 8%4 = 0 -> 2nd bar over, save it to your var, return var value go on...


 

Posted Wed 24 Sep 14 @ 8:04 am
I'll look into it tonight, bear with me couse I'm no programmer & have 0 exp with skinning :P
I'm guessing this creates a variable that holds the bar count.. I'd still need a way to display it?
 

Posted Wed 24 Sep 14 @ 8:39 am
PachNPRO InfinityMember since 2009
Yes, that is the idea behind the skript.
If it will work? I don't know.

I'm no skinner either, but I think the script should be in the skin.
As the "Action" like in the examples above.
 

Posted Wed 24 Sep 14 @ 8:49 am
locoDogPRO InfinityModeratorMember since 2013
I see a problem, for this to work right you need bars to happen as 0,4,8 etc, VDJ has bars happen 1,5,9.

I knew no 0 beat would be a problem at some point.
 

Posted Wed 24 Sep 14 @ 8:51 am
PachNPRO InfinityMember since 2009
I don't know if I get you, but I think the way VDJ handles the bars is irrelevant.
Because all you do is divide the beatcounter and then "add 1" to your variable.

So all is related to beats.

 

Posted Wed 24 Sep 14 @ 8:59 am
locoDogPRO InfinityModeratorMember since 2013
With how V8 counts (1-32), beat 4 (which would return 1 with your script) isn t the start of the next bar, beat 5 is.
Other sequencing software I've used always starts on 0/0
I'm sure it can be worked around,
 

Posted Wed 24 Sep 14 @ 9:45 am
yea, beat-1 I guess
This does start to get way too complicated for me so I think the bast thing to do is to make a request in the skinsection :s
 

Posted Wed 24 Sep 14 @ 9:56 am


(Old topics and forums are automatically closed)