preset storage

take5's icon

Greetings. i have written here before looking for some help, and got a little ways, but am feeling stuck < I am relatively new to this and need something fairly simple. , I need a 64 slot memory storage that I can cycle through starting at A1 to D16. (a1, to 16, b1 to b16, c1 to c16 and d1 to d 16)
I would like to be able to cycle through these forwards and backwards manually with the press of a button (forward or backward).
Also I need to be able to output those values A1 through D16 (as described above) on some kind menu or screen so users know which preset is being used.

I have run into numerous issues I don know how to deal with.. if anyone could please help me build this, I would be grateful.
Thanks

Mikee

dtr's icon

So what did you try and where did it fail?

Gregory Taylor's icon

As always, you're going to get way better feedback if you show us your work. In the whilemean, you could take a look at this series of pattr tutorials at

and investigate some low-level Max objects (incdec, counter) and the umenu's scrolling mode (see under the "more about menus" tab in the umenu help file).

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

here's a start for you regarding umenu in scrolling mode:

take5's icon

ok i have something to share, but I have forgotten how to upload the code. How do I export that for you to have a look at?

thanks for replies

Floating Point's icon
take5's icon

ok thanks, here it is. There are a few notes inside that describe the problems.

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

Floating Point's icon

you've uploaded the wrong patch

take5's icon

sorry .. I copied over the one I made, so i had to re do it.. so much work!

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

Ok try this:

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

here's a way of doing what you want-- you need to isolate the preset object from the menu object and the (new) control buttons. the red patch cords do this. Note the use of the inc-dec object allows the use of cycling through forwards or backwards-- you could have done this with buttons too but this is easier. also use the rightmost outlet of the preset object let other objects know a preset has been stored

btw if you don't want the 'S' placeholder in the menu just subtract 1 from the output of preset object and change the conditionals to 0 and 63

take5's icon

Thank you so very much this all seems to work just as I need it to! The only issue I have is that the buttons used are not midi mappable. Is there an easy way to replace those without messing the whole thing up? The Up & Down buttons I had in the previous version had some sort of wiring I dont understand, but they were midi mappable which is what I need.

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

i'm not sure what you mean by midi mappable-- all objects are able to be mapped to or from midi in max. but if you want to use a live.object, just use these buttons with inc and dec:

note I changed the message boxes' triggering from last patch (my error)

take5's icon

thank you! just wondering what you meant about the last part about 'message boxes' triggering from last patch' I didnt notice anything strange or different in this code, other than the buttons being replaced.

you are so awesome for helping , thanks again!

take5's icon

sorry double post

Floating Point's icon

no worries just trying to build up a bit of good karma...
the message boxes with 'set 64' and 'set 1' in them are preceded by a trigger object [t b b] and I'd connected the wrong outlets of these to the recipient objects, so i just swapped them, (and deleted the deferlow objects required to stop it crashing)-- anyway works now