Simple maths help needed

Sep 4, 2010 at 10:28am

Simple maths help needed

I know it is simple maths but I have sat and tried to do this for over an hour now. Can someone please refresh my stuck brain. I need to tell a slider to scan the length of a sample. Please see patch below.

– Pasted Max Patch, click to expand. –
Sep 4, 2010 at 10:33am

I can’t look at your patch just at the moment, but I would get the length of the sample from the [info] object, then set this as the slider maximum using the [size $1] message to the slider (look at slider’s helpfile and inspector), then make a [line] go [0., $1 $1] to scan at speed=1.

Is this what you want?

Sep 4, 2010 at 10:46am

Thanks Brendan. It was the [size $1] message. Thanks for the pointers. Simple I know, but unless you use these things often you can remember everything.

Sep 4, 2010 at 10:53am

like this…

– Pasted Max Patch, click to expand. –

I think I recognise that patch of mine (or is it TimLloyd’s)….doin’ a little granulation eh?


Sep 4, 2010 at 11:50am

Thanks for the help. Yes, I think it may be your patching for the granulation. You see, I have no Idea how to program this myself, but learning from yourself and others is very helpful. I would like to express my gratitude. Searching the forum brings up loads of granular patches and simple ones like your patch here do tend to have the nicest sound imo. Thanks again.

Sep 4, 2010 at 12:03pm

Here is the final product

– Pasted Max Patch, click to expand. –
Sep 4, 2010 at 12:06pm

As we speak, I'm still trying to perfect a granulator that avoids that 'bubbly-ness' that is unavoidable in the time-domain. I'm working on a patch Tim gave me, which uses 2 overlapping windows:

– Pasted Max Patch, click to expand. –

And here's a screenshot if you're busy.
There are 2 granulators that are continually referred to in this forum: the granularized maxpatch in the Max examples and Sakonda's granular patch.


  1. grain2windows.jpg
Sep 4, 2010 at 12:26pm

Thats a nice patch. Thanks for letting me see it. I’ll have more of a look next week when I get more time. I have a patch that I made from the workings of Sakonda’s patch, but as I said I am no dsp wizz and all I can really do is make bits and pieces from parts of other peoples patches with a trial and error method. More like circuit bending if you like. I pick things up here and there. Have a look at my blog if you get time. I started it as a personal resource site for interesting granular programs. You have probably seen most of it though.

Sep 4, 2010 at 7:18pm

I love that blog, nice one


I’m doing a PhD in DMI design and one of my software tools is a DIY granulator in Max – PM me if you like, I’d be interested in keeping up to date

Sep 9, 2010 at 9:15am

Brendan, I PM’d you.


Sep 9, 2010 at 11:16am

Hia noob_meister

Is your new Granualtor along the same lines as the pd book examples.

Also is it Add Overlap Gran.
i’ve patched a crappy version a while ago. I need to go back and studie it again. I’ll try out your new patch when i have time. Cheers for sharing.

Sep 9, 2010 at 1:51pm


I haven’t seen that resource before, but the patch looks very useful; i’ll implement a max/msp version asap


Sep 9, 2010 at 2:07pm

I managed to buy a hard copie from a friend. It’s not bad like. I think they are a few holes in it, But a good resource none the less.
here is my nasty version of one the patches.

– Pasted Max Patch, click to expand. –

You must be logged in to reply to this topic.