Simple maths help needed

Miles Davies's icon
Max Patch
Copy patch and select New From Clipboard in Max.

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.

brendan mccloskey's icon

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?
Brendan

Miles Davies's icon

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.

brendan mccloskey's icon

like this...

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

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

Brendan

Miles Davies's icon

Brendan,
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.

Miles Davies's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Here is the final product

brendan mccloskey's icon

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:

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

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.

1073.grain2windows.jpg
jpg
Miles Davies's icon

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.

microsound.info

brendan mccloskey's icon

Hey
microsound
I love that blog, nice one

Brendan

ps
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
interposedesign@gmail.com

Miles Davies's icon

Brendan, I PM'd you.

Filament

mrmrshoes's icon

Hia noob_meister

Is your new Granualtor along the same lines as the pd book examples.
http://www.pd-tutorial.com/english/ch03s07.html#id430983

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.

brendan mccloskey's icon

@mrmrshoes

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

Thanks
Brendan

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

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.