How to convert Integer to float on chuck~ object on max msp
HI, All Would you give me solution for my problem about converting integer number to float number for chuck object on max msp.
this is sample my script ,this work on mini audicle but still error on chuck objek on max msp.
Thanks alot for your help
/////////////////////////////////////////////
while (true) {
Std.rand2(24 , 35) => int asoy; // integer number to be converted
asoy $ float => float asik; //convert int to float (
asik => m.floatout// send data information to outlet chuck object on max msp
0.7::second => now;
count + 2.0 => count;
}
///////////////////////////////////////////////
I dont think you pasted your code properly. But anyway, its as simple as
GW
Thank for your information but I mean this for chuck programming script, but I have simple solution just add
/////////////////////////////////
float number 0.0
// frequency..
if ( Std.randf() > 0.25 )
{
Std.rand2( 0, 22 ) => int nilai=> shake.which;
Std.rand2f( 0, 128 ) => shake.objects;
0.0+nilai=>float hasil;///convert int to float variable "nilai" to variable "hasil"
hasil => m.floatout;//
}
/////////////////////////////////