How to convert Integer to float on chuck~ object on max msp

May 15, 2011 at 6:00am

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;

}
///////////////////////////////////////////////

#57137
May 15, 2011 at 3:06pm

I dont think you pasted your code properly. But anyway, its as simple as

– Pasted Max Patch, click to expand. –

GW

#204643
May 15, 2011 at 3:54pm

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;//
}
/////////////////////////////////

#204644

You must be logged in to reply to this topic.