Chord Machine problem in MAX

I have made a subpatch with chords so that I can listen to them and guess which one it is. There are three chords with pipe of 2500 on the second chord and a pipe of 5000 on the third chord, so that the second and the third chord are listened with a certain delay.

What happens is only the third ones button lights up instead of the first one, or it randomly lights up, usually the third chord button.

It is a random selection of chords. Additionally every chord starts with random object with an argument 48 which is one octave between Middle C, and on the right inlet which sets the Random Number Range is connected the number 74 which is one octave above Middle C.

I have made this subpatch a long time ago, so I don’t quite remember why I connected the random outlet to the number +30, which is then connected to each of the tones of the chord, it will produce random tones of the chord, but WHY the number box +30, and not another number???

The thing is that I think its best if the chords are within Middle C octave, but where do I go wrong, because the chords listened are just random chords, and not how I intended them to be.

I don’t have Max here so can’t see the patch, but 48 is one octave below middle C, and 74 is actually an octave and a major second above middle C (you probably want 72 for one octave above).

You might want [random 25] which will give you a range of two full octaves (including the top note of the next octave) and then add that to [+ 48] for the MIDI offset, which will ensure that all chords start at least at one octave below middle C.

Thank You seejayjames, I will try that and I will let you know. So, instead of random 48 I should put random 25 and then add +48 instead of +30. That will give me chords that are one octave below Middle C and one octave above.

chrisoconnor: It is part of a subpatch, the subpatch is very big, so I have exluded just what I thought it is most impsrtant.
Yes, I am trying to play three consecutive chords in the range of Middle C and guess which ones they are.

Sorry, I just realised how bitchy my comment on the tidyness was, sorry.
I did however remember doing something similar. I don’t know if it’s what you’re after as mine seems a bit more simple, but have a look anyway, you never know!

-chris

– Pasted Max Patch, click to expand. –

Copy all of the following text. Then, in Max, select New From Clipboard.