-
Jazzmansteve
@Jazzmansteve
Ok, never mind![ + 0.499 ] after after the multiplication stage seems to work!
-
Jazzmansteve
@seb-harmonik.ar
Thanks, that's a pretty intuitive explanation.I don't suppose you could suggest a more consistent way moving a decimal point?
-
Jazzmansteve
Hey guys!
This has been making me question my sanity and I just can't solve this by myself.
The patch I'm building is more complicated than this, but in trying to solve the problem I have isolated the strange behavior like this:
[number box 1]
I
[* 100}
I
[number box 2]
I
[int]
I
[number box 3]As you shift-scroll number box 1, number box 2 and 3 should read the same as 1 but with the decimal point moved. BUT on certain, values, number box 3 will be one lower than the input of [int]. For example 20.38 will always output [int] as 2037.
It seems like [int] is not storing values property.
I'm using Purr Data 2.5.1, but the same happens in vanilla.
What am I missing here? I feel like it's right in front of me. Thanks in advance for your help!
-
Jazzmansteve
Ok, so the idea is to transform the XY values from a PS3 analogue stick into linear values like that of a [knob] or [slider].
For example if you push the analogue stick straight forward it would be the same as turing a knob to its 12 o'clock position, keeping the stick agains the edge of its circumference and pushing it to the left 90 degrees would turn the knob to its 9 o'clock position.
The values range from:
left - right: 0 - 255
top - bottom: 0 - 255Hope that makes sense.
-
Jazzmansteve
So I'm building a simple sampler/looper...
When a sample is recorded I can work out the time in milliseconds and length in samples, but I need to give a phasor~ a Hz value so it can drive a tabread4~ to playback the sample.
In short is there an easy way to convert milliseconds to Hz, eg 1000ms = 1Hz
Cheers.
-
Jazzmansteve
@Maelstorm said:
[cartopol] is your friend here. The attached should get you going.
Excellent, that looks like it should do the trick, if i can get it work it out that is, I'm not a maths guy.
Thanks very much.
-