QC 4.6 > QC 4.0 = strange behaviour

xniala's picture

Hello, I searched before posting but didn't find anything...

I created a comp with QC v4.6 (OS 10.9.5) and have to make it run on a computer running 10.6.8 and QC v4.0.

With the same comp I notice that "Mathematical Expression" patch doesn't calculate the same result. The result is wrong with QC 4.0 !

More strange : the result is a float number and all the values entering the patch are integers !!! Am I missing something obvious ?

The first expression in something like :"a2 + b3 + c4 + d5 + e6 + f7 + g7 + h8 + i9 + j10 + k11 + l12 + m13 + n14 + o15 + p16 + q17 + r18 + s19 + t20 + u21 + v22 + w23 + x24 + y25 + z26 + a227 + b228 + c229 + d230 + e231 + f232 + g233 + h234 + i2*35"

An other : "a1+b2+c1+d4"

Any idea ? Thanks.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Achim Breidenbach's picture
Re: QC 4.6 > QC 4.0 = strange behaviour

The Math-patch always calculates in float. If you are running QC in 64 bit on 10.9.5 and 32 bit on 10.6.8 that can make a difference in precision, if you are using big values. This is just a guess.

xniala's picture
Re: QC 4.6 > QC 4.0 = strange behaviour

Hello Achim, thanks again ;) I need to check on the computer running 10.6.8 (not at my home) but I think both are set in 64 bits mode...

Maybe the problem is that values entering the Math-patch are in fact booleans. I want to check which entry is true and outputting a different number, (integer) depending on the "true" entry... This way I can trigger different parts of the comp.

Sorry my english is awful today...

Achim Breidenbach's picture
Re: QC 4.6 > QC 4.0 = strange behaviour

Maybe you should have a look at the "Demultiplexer" patch. You can set it up to output a boolean "true" to a certain output depending on the index. (Use the "reset"-value to reset to false) So you can have a single index number to enable different parts of your composition. Its totally the other way you need it, but maybe this is of some help anyways.

xniala's picture
Re: QC 4.6 > QC 4.0 = strange behaviour

Thanks again Achim, I will test it soon !

My main problem with QC is that I'm not programmer, I'm an editor, so my methods are surely non orthodox...