Forums > MaxMSP

need help with some random numbers…

Nov 16 2010 | 10:35 pm


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

-- Pasted Max Patch, click to expand. --

Nov 17 2010 | 9:01 pm

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

Dec 18 2010 | 11:08 pm

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..

Dec 19 2010 | 10:44 am

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]?


Dec 19 2010 | 10:58 am

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.

Viewing 5 posts - 1 through 5 (of 5 total)

Forums > MaxMSP