out[i] = (float) Math.random();

I thought that would give me white noise. The result is either a buzzing sound or nothing. Generally it buzzes after I reload the mxj~ object until I stop and start audio once or twice. After that the output sits at zero with no audio at all. My CPU meter sits at 0%.

Then I tried Math.tanh((double) in[i]): same exact result. Math.round: same exact result. After that I wondered if Math functions were supported at all, so I made an mxj just to post some Math calculations to the Max window. All the calculations worked fine in that non-audio case.

Is there a special restriction with mxj~ and Math, or Math and the “perform” block?

]]>