Adding decimals to a value


#1

I'm creating a sample player/looper and I want the starting point of the sample to change randomly every time i push a button.

I have this set up and working using the button to trigger a rand/uniform lfo wich then modulates the wave/play fn position input, BUT the random lfo only outputs whole numbers and that gives a limited amount of starting points for the sample. How can I get the rand/uniform object to output decimals as well?


#2

How about mixing it with the attenuated output of another random object?


#3

Thank you for this suggestion. It is working better now :smile_cat:
Is there any way for the disp/i object to show decimals? I can now hear that the number is changing so to speak, but only the nearest whole number is displayed.


#4

The "disp/dial ..." object shows 2 decimal places.
"disp/i" implies conversion to a whole number (blue outlet to green inlet), so only shows the whole number.