need help with some random numbers...

flowdesigner's icon

Hi,

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

My brain is sort of stuck trying to figure this out.
My random numbers work as expected when "going up" but when I want to "get down" again, its either stuck or sometimes it works down also, but when I then want to get up again, it always start from the lowest number, which it is not supposed to ( its supposed to shift from up to down continuing on the last value)
Experienced maxers probably spot a lot of stupid patching here, but if its easy to solve, it would be cool if you just added some comments on where I can fix the patch instead of patching it up for me. Thanks

Luke Woodbury's icon

What exactly are you trying to do, its a bit hard to tell?

flowdesigner's icon

Hey, Im just trying to compose a piece for my timecode vinyl dj liveset, and the patch is generating midi for a simple 1:1 ratio 2-operator fm bassline.
The patch recieve 8th note shuffled/swinged (C3)16th notes midi where everything except velocity is ignored by the patch. The patch generates random notes in a range set by a live.numberbox, and when the counter gets the highest number a certain times it shifts the random range up at a set amount.
Whenever i feel like it I should be able to to the same stuff going from high pitch and downwards.
Im sure the Max wizards at this forum can achive the same sounding results with a much smarter/less complicated patch, but for me its important to understand what im doing here.
I dont understand what im doing with the rightmost inlet at the switch at the bottom of the patch, in fact, coming back to this patch now after a month, I dont understand much at all :).
It works as intended when "going upwards" but then im stuck..

brendan mccloskey's icon

Hi
If a problem is hard to describe, it is difficult to realise a solution; I didn't look at your patch, but have you tried [drunk] instead of [random]?

Brendan

Chris Muir's icon

There really needs to be a better problem statement, at least. As it is I think your goals are pretty ambiguous.

Also, without a concise, well commented, patch illustrating what you expect to happen, and what does happen, it's hard to be motivated to suss out what you are doing enough to want to help.