Forums > MaxMSP

Making a melody go up and down …

September 3, 2010 | 6:58 am

Hi,

Why doesn’t my patch work? I want to make a note go one or two steps up or down, depending on what you select in the ubu menu. I use [int] to store the last note number, and a tone is added, but somehow I cannot make the melody go down again … what did I do wrong?

– Pasted Max Patch, click to expand. –

September 3, 2010 | 7:20 am

… and then I try another thing that works better, but not quite:

– Pasted Max Patch, click to expand. –

September 3, 2010 | 7:43 am

your last one just needed one small further tweak, if i’m understanding your desire correctly:

– Pasted Max Patch, click to expand. –

September 3, 2010 | 7:51 am

on second thought, i’m pretty sure i have no idea what you’re going for since your first patch works fine for me(just tried it only now after modding your second one).


September 3, 2010 | 7:53 am

Hmm, no the little tweak didn’t fix it.

Let me make a better patch.

I want the tone to keep going 1 up if i type 1,
stay on the same tone, if I type 0.
and I want the tone to keep going 1 down if i type -1
and so on with -2 and 2, 3 and -3 …

– Pasted Max Patch, click to expand. –

September 3, 2010 | 8:04 am

Hmm, I kinda solved it, however, this is a bit of a clumpsy solution … anyone who has an idea how to make this simpler?

– Pasted Max Patch, click to expand. –

September 3, 2010 | 8:32 am
– Pasted Max Patch, click to expand. –

September 3, 2010 | 10:09 am

I haven’t looked at the patch yet either (I will), but this sounds like the relational keyboard of the Samchillian

http://www.samchillian.com/nimefinal.pdf

When I have Max in front of me I’ll get back to you

Brendan


September 3, 2010 | 1:19 pm

"I want the tone to keep going 1 up if i type 1,
stay on the same tone, if I type 0.
and I want the tone to keep going 1 down if i type -1
and so on with -2 and 2, 3 and -3 …"

strange, this is exactly what i thought you wanted and your first patch works exactly like that for me(along with my tweak of your 2nd), no problems on my computer. but in any case, chris muir’s post is a nicely efficient way of doing what you want, i’d use that.


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