at my wits end with this patch

jaycy1984's icon

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

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

p.s this was made on max 6

deerell's icon

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

mharter's icon
Max Patch
Copy patch and select New From Clipboard in Max.

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.

mharter's icon
Max Patch
Copy patch and select New From Clipboard in Max.

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.

jaycy1984's icon

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

jaycy1984's icon

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

jaycy1984's icon

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

jaycy1984's icon

how do you stop your patch?

mharter's icon

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.

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

Here is the updated demo patch:

Chris Muir's icon
Max Patch
Copy patch and select New From Clipboard in Max.