[Tutorial] Storing Value presets with a Live Set

Learn about building and using Max for Live devices.
hoffman2k
Posts: 14718
Joined: Tue Jun 15, 2004 6:40 pm
Location: Belgium
Contact:

[Tutorial] Storing Value presets with a Live Set

Post by hoffman2k » Fri Apr 23, 2010 9:56 am

Image

I wanted to share this bit of code in case anybody has trouble getting their head around pattrstorage and using it to store values with a set.
This example uses a Multislider with 16 values. You can store presets of different values, recall them and even morph between 2 chosen presets. Everything gets saved with your Live Set so that upon next load everything is as you left it.

http://covops.dreamhosters.com/uploads/ ... e.amxd.zip

This Multislider bit comes straight out of a device I made for working with parameter value presets. In that device you don't see the multislider but its there in the background to manage the values from the 16 dials in the device.

Image

http://covops.dreamhosters.com/uploads/ ... 9.amxd.zip

And here is a tutorial on how the preset system works. Its written for people who are new to max so I hope it makes sense to newcomers and isn't condescending to the veterans. It'll be fun finding out.

http://www.thecovertoperators.org/Artic ... a-live-set
Last edited by hoffman2k on Sat Apr 24, 2010 4:39 pm, edited 1 time in total.

hoffman2k
Posts: 14718
Joined: Tue Jun 15, 2004 6:40 pm
Location: Belgium
Contact:

Re: [Share] Storing Value presets with a set using pattrstorage

Post by hoffman2k » Sat Apr 24, 2010 2:17 pm

Hi All,

I want to share a M4L tutorial I wrote about how you can save multiple presets of data like the contents of a multislider with a Live Set.

Its aimed at newcomers and I hope it makes sense to them but I also hope its not too boring for Max veterans who seek the same information. Its my first M4L tutorial so any feedback is greatly appreciated.


http://www.thecovertoperators.org/Artic ... a-live-set

Parametex
Posts: 438
Joined: Sun Oct 17, 2004 4:34 pm

Re: [Tutorial] Storing Value presets with a Live Set

Post by Parametex » Sat Apr 24, 2010 4:52 pm

This was badly needed, thank you sir!

Tone Deft
Posts: 24152
Joined: Mon Oct 02, 2006 5:19 pm

Re: [Tutorial] Storing Value presets with a Live Set

Post by Tone Deft » Sat Apr 24, 2010 7:33 pm

this looks great, thank you!!

I won't have time until tomorrow evening to crack it, just wanted to give a shout out before time slips away.

preset morphing... nom nom nom nom :D
In my life
Why do I smile
At people who I'd much rather kick in the eye?
-Moz

S4racen
Posts: 5987
Joined: Fri Aug 24, 2007 4:08 pm
Location: Dunstable
Contact:

Re: [Tutorial] Storing Value presets with a Live Set

Post by S4racen » Sun Apr 25, 2010 7:49 am

Thank you so much... i have this working in my device but only cause JuanSOLO did it for me, i had no idea how or why it worked so couldn't do anything with it.... Nice one!!

Cheers
D

maxforlive
Posts: 70
Joined: Thu Nov 05, 2009 3:30 pm

Re: [Tutorial] Storing Value presets with a Live Set

Post by maxforlive » Sun Apr 25, 2010 11:18 am

"I'll just show you one thing that can be used without needing to learn more. For some objects there is always more to learn, but don't let that get in the way of using what you already know"

Very nice! Good tutorials

Tone Deft
Posts: 24152
Joined: Mon Oct 02, 2006 5:19 pm

Re: [Tutorial] Storing Value presets with a Live Set

Post by Tone Deft » Mon Apr 26, 2010 4:04 am

I went through the content, it works, many thanks!

lots of great code in the Snapshot Morpher, the M4L.api.x commands, the BG color for the buttons... not to mention it's an amazing addition to Operator.

the web page writeup of pattr made a lot of sense. I read it after looking at the patches for a while, I think that helped.

the scope of these example is very well thought out. good lesson, it's very much appreciated. :D
In my life
Why do I smile
At people who I'd much rather kick in the eye?
-Moz

LOFA
Posts: 3365
Joined: Mon Jan 10, 2005 7:10 pm

Re: [Tutorial] Storing Value presets with a Live Set

Post by LOFA » Tue Apr 27, 2010 1:50 pm

Bjorn, if I was you I would put a direct link to your paypal account in your sig. I'm just saying.

hoffman2k
Posts: 14718
Joined: Tue Jun 15, 2004 6:40 pm
Location: Belgium
Contact:

Re: [Tutorial] Storing Value presets with a Live Set

Post by hoffman2k » Tue Apr 27, 2010 2:03 pm

LOFA wrote:Bjorn, if I was you I would put a direct link to your paypal account in your sig. I'm just saying.
:lol:

It sorta is already. Just saying ;)
If we don't have a Live Pack to your taste, we might have something more suitable in the future.
We don't put up a donate button because Paypal is fickle and we avoid issues with it at all costs. But nobody will ever stop you from sending something to b @ thecovertoperators.org

Personally I'm just glad that my first M4L tutorial made sense. That is a big reward for me.
And there will be plenty to come. Where with Live I always had a trick up my sleeve, now with Max I have a huge shortage on sleeves.
I considered this article a warm-up. I guess I'm warmed up now :D

Ps: Putting a donate button in my signature on this forum is suicidal. Rough crowd out there!

3dot...
Posts: 9996
Joined: Tue Feb 20, 2007 11:10 pm

Re: [Tutorial] Storing Value presets with a Live Set

Post by 3dot... » Tue Apr 27, 2010 2:51 pm

daaamnnn.. this some of that good shit !!!!
Image

LOFA
Posts: 3365
Joined: Mon Jan 10, 2005 7:10 pm

Re: [Tutorial] Storing Value presets with a Live Set

Post by LOFA » Tue Apr 27, 2010 3:30 pm

hoffman2k wrote:Ps: Putting a donate button in my signature on this forum is suicidal. Rough crowd out there!
So true. Which is why I thought I would mention donations, since it is less target-worthy.

digid
Posts: 177
Joined: Sat Nov 28, 2009 10:29 pm

Re: [Tutorial] Storing Value presets with a Live Set

Post by digid » Tue Apr 27, 2010 9:11 pm

Very nice work with the Snapshot Morpher, though I just have one request: Could you make it so that the Snapshot Morpher registers movement made on the actual plug-in?

It seems the learn mode isn't working, either - I have tried with a couple of plugs, and none of them seems to "register" with Snapshot Morpher when learn mode is enabled (nothing happens with the device when I move parameters on the plug-in).

Or am I misunderstanding something?
Listen to my scruffy electroacoustics on Bandcamp: https://skurring.bandcamp.com/album/gniss

hoffman2k
Posts: 14718
Joined: Tue Jun 15, 2004 6:40 pm
Location: Belgium
Contact:

Re: [Tutorial] Storing Value presets with a Live Set

Post by hoffman2k » Wed Apr 28, 2010 11:24 am

digid wrote:Very nice work with the Snapshot Morpher, though I just have one request: Could you make it so that the Snapshot Morpher registers movement made on the actual plug-in?

It seems the learn mode isn't working, either - I have tried with a couple of plugs, and none of them seems to "register" with Snapshot Morpher when learn mode is enabled (nothing happens with the device when I move parameters on the plug-in).

Or am I misunderstanding something?
Well this is a bit of a simplified device. You shouldn't even be able to control things from the actual plugin. At least not Ableton devices. If it works with VST's then this is bound to end up messy. I'm not even sure how one would fix that. Maybe that is what the live.param~ object is for.

flowdesigner
Posts: 930
Joined: Sun Dec 21, 2008 5:58 am

Re: [Tutorial] Storing Value presets with a Live Set

Post by flowdesigner » Tue May 04, 2010 7:44 pm

Is it the same procedure to morph presets with live. UIs? Except binding them to a pattr

hoffman2k
Posts: 14718
Joined: Tue Jun 15, 2004 6:40 pm
Location: Belgium
Contact:

Re: [Tutorial] Storing Value presets with a Live Set

Post by hoffman2k » Tue May 04, 2010 8:05 pm

flowdesigner wrote:Is it the same procedure to morph presets with live. UIs? Except binding them to a pattr
No, I think you may need to use the raw values input/output. But don't quote me on that.
The Snapshot Morpher device has 16 live.dial objects, I'm using a multislider and raw values to do the morphing.

Post Reply