Forums > MaxMSP

at my wits end with this patch

December 23, 2011 | 11:43 am

im new to max therefore this has taken me a while, ive probably done this in a weird way but it works, well except for two parts

this patch is based on the real times it takes for planets in the solar system to spin on there axis (a day)

the mercury and venus parts do not work, the other 6 planets do, at first i thought this was because in comparison to the scale ive made they take much longer to be triggered compared to planets like earth or mars which is about 8 seconds

i added a speed dial yesterday and sped them up and realised there just not working, i havent wired them up any different to any of the other planets so i dont know why they dont work, one of them worked briefly last night but then stopped…something is definitly wrong

if you turn the speed dial to the left this will speed it up and you will see it should be putting out bangs from the metro but it doesnt

i tried all day yesterday to fix the problem but to be honest i am now completely stuck and ready to throw my computer out the window

if anyone could help me i would be so greatful

i have labeled the parts the down work

p.s this was made on max 6

– Pasted Max Patch, click to expand. –

December 23, 2011 | 2:11 pm

What would it mean for this patch to "work?"


December 23, 2011 | 3:06 pm

Metro doesn’t like those big intervals. If you speed things up enough using your dial, Mercury and Venus sart to work. I added a progress bar to these planets to help me figure out what was going on. It seems to be related to the metro.

– Pasted Max Patch, click to expand. –

December 23, 2011 | 3:17 pm

Maybe this method will work better than metro for those big numbers. Note that the minimum on the input integer is set to 1000 (one second) because very small numbers will cause a stack overflow.

– Pasted Max Patch, click to expand. –

December 23, 2011 | 4:52 pm

hmm mharter they worked for you when you sped eveything up? it still didnt for me

yes your way would work better but i dont understand it, im new to this and have done this the only way i know how as i need to write about it in an essay


December 23, 2011 | 4:58 pm

the progress bar does rise on mercury and venus, but just stays at the top when it gets there


December 23, 2011 | 5:09 pm

they do work when left at normal speed it seems, i just sat and watched for quite a while

how ever when sped up they get stuck


December 23, 2011 | 5:32 pm

how do you stop your patch?


December 23, 2011 | 5:47 pm

They will get stuck if the metro doesn’t fire, because the bang from it restarts the [line] object. In my demo patch, I use the right output from [line] to re-trigger itself. I’ve included a version that has a start and stop option.

Line can be a bit hard to use because it wants a start value and then a list containing the destination value and number of milliseconds. In the message you send, there needs to be a comma between the start value and the destination value, time pair. Look at help for the message and line objects.

Here is the updated demo patch:

– Pasted Max Patch, click to expand. –

December 23, 2011 | 5:53 pm
– Pasted Max Patch, click to expand. –

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