Decide Object with adjustable probability

Sym's icon

Hey, I'm looking for an object or a simple combination that acts like the decide object and outputs 1 or 0 randomly at a bang input. What I want to achieve is for example to say that the chance is 80% that a 1 is the output.

I'm sure there's a simple solution but currently I'm stuck.

Thanks for your help!

Andrew Pask's icon
Max Patch
Copy patch and select New From Clipboard in Max.
Roman Thilenius's icon

start with random or expr ... plus if or gate ...

Christopher Dobrian's icon

Maybe TMI, but here ya go: A simple probabilistic decision

Max Patch
Copy patch and select New From Clipboard in Max.

Also, here's a "gamble" abstraction, to "play the odds" (from the Max 2.0 tutorials).

Chris Muir's icon

What Andrew said.

xidance's icon

i think this is the most simple.

Max Patch
Copy patch and select New From Clipboard in Max.

`

Chris Muir's icon

Pretty much the same as Andrew's with less resolution.

xidance's icon

sorry i did not look at it in the hurry of waking up, but you're right. though this cropped resolution thing seems nonsense to me.

Sym's icon

Thanks you very much for your help guys!
Finally Andrews answer worked perfect for me.

Josh Lockwood's icon

Hello, I am attempting to recreate Christopher Dobrian's "Thelonius Monk effect” in Max for Live to play grace notes in Ableton as a Max Midi Effect. I am very new here and I apologize if I am missing something obvious. Could someone please point me in the right direction to achieve this effect in Ableton? I’ve tried creating an abstraction from the patches that Christopher shared in this thread but I really don’t know what I’m doing. Any help would be greatly appreciated as I've been searching the internet and I can't find any other way to attain this effect.

Here's my failed Max for Live patch:

Grace-Note-Attempt1.amxd
amxd 16.12 KB

And here is a link to "Tutorial 28" pictured in the screenshot above (page 112):

http://sites.music.columbia.edu/cmc/courses/g6601/fall2004/week2a/Max43TutorialsAndTopics.pdf