Forums > MaxMSP

Sample Banks

October 9, 2008 | 5:12 pm

Hello..

I am making a drum machine. It’s a simple enough thing. I would like to be able to create sample banks on the fly from the samples I have loaded into the various buffers~. I would like to load samples into the buffers~ and when I am happy with the samples click a button and have those samples stored with the patch so as when I open the patch again I can just click another button and load those samples automatically. Ideally I would like around 10 or so sample banks with 6 samples per bank.

I’m afraid I do not know where to start. If somebody could even tell me particular tutorials or examples to learn from that’d help me a lot. I did a search of the forum but I’m not sure exactly to to ask for so I come up with fairly random posts.

I had a look at pattrstorage. I’m not sure if thats the right object. I didn’t really understand the helpfile so I’m not sure if it’s the right object or not.

thanks

Ken


October 9, 2008 | 11:17 pm

You can refer [buffer~] to a particular sample with the "set" message, perhaps you could store the names/filepaths of all the samples in a particular bank in a [coll] and load store them that way.

lh


October 10, 2008 | 2:17 pm

I was thinking of doing that but how do I get the filepath information from the buffer so as I can save the patches on the fly. I use the info object but that only gave me the sample name and extension type not the filepath.

any ideas. I am probably missing something very obvious but MAX is so massive sometimes it can feel like trying to find a needle in a haystack of needles.


October 10, 2008 | 5:20 pm

On Oct 10, 2008, at 7:17 AM, Grizzle wrote:

> I was thinking of doing that but how do I get the filepath
> information from the buffer so as I can save the patches on the fly.
> I use the info object but that only gave me the sample name and
> extension type not the filepath.

If you load the files into buffer~ by passing a path from opendialog
you could remember that path.

-C

Chris Muir
cbm@well.com

http://www.xfade.com


October 10, 2008 | 5:27 pm

There are many solutions in MAX yes ;)

pattrstorage and autopattr can be really great for this, although a little
tricky to work with at first.
As for the filepath you could format text-strings with the sprintf object,
but it can become messy too.

Why not just have a general "sample-folder" that you add to MaxMSPs path?
"File Properties" under Options…
It can be set to automatically read through sub-folders so you still have
the opportunity to organise fairly freely…

Would let you address these files in whatever way you feel most comfortable,
without having to deal with their path… ;)

On Fri, Oct 10, 2008 at 4:17 PM, Grizzle wrote:

>
> I was thinking of doing that but how do I get the filepath information from
> the buffer so as I can save the patches on the fly. I use the info object
> but that only gave me the sample name and extension type not the filepath.
>
> any ideas. I am probably missing something very obvious but MAX is so
> massive sometimes it can feel like trying to find a needle in a haystack of
> needles.
>
>
>


October 11, 2008 | 1:54 pm

OK well that’s plenty to get me started. I’ll try the open dialog first but if I have troubles I’ll just make a special folder with the samples in it and set it up in the preferences.

thanks for the help

Ken


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