Creating Variation

Mar 23, 2013 at 7:01pm

Creating Variation

Hi guys

Got a quick question for you;

I have an audio file loaded, and its playing through sfplay~ I want this to vary in volume, pitch, maybe some eq and filtering

Any ideas how this can be achieved? It is the random variation that I am struggling with



Mar 23, 2013 at 7:35pm

pink~, noise~, rand~ will give three types of random signal values which can then be *~ +~ or whatever you need. Look at onepole~, cross~, ffb~ and biquad~ for filtering. Look inside the sfplay helpfile for instructions on playback speed (pitch), or use play~ or groove~ if you prefer.


Mar 23, 2013 at 7:39pm

The pedant in me can’t resist the following correction: sfplay~ doesn’t ‘load’ an audio file – it streams it from disk.; buffer~ loads samples to RAM.


Mar 23, 2013 at 10:07pm

n00b_meister you are a legend.

Will be in touch with my progress

Mar 23, 2013 at 10:55pm

Just a quick question about the first three you mentioned

I am trying to manipulate the audio file to create an audio variation and the first three you mention just create a variation of audio. So can they be used to vary the audio file I have loaded?


Mar 23, 2013 at 10:55pm

Here’s an analog oscillator emulation I did for a class that has some guts you could look at for creating variation.

Mar 24, 2013 at 12:09am

Okay, cheers for that

I am not sure I am getting across what I am trying to say.

I have audio file loaded (now buffer~), how do I add some pitch, volume etc variation to this audio file. So every time I play it, it will sound slightly different. Nothing major, but enough to make you think it is a slightly different sound

Thanks for that patch though, super cool and I understand what you are getting at with it, but I need to vary and Audio file rather than midi notes



Mar 24, 2013 at 12:22am

That’s why I said take a look at the *guts* of the patch. The sub patcher “deviation” can be connected to anything you want. Adjust the values in the scale objects to suit your needs with a groove~ or play~ and you can get some variation.

– Pasted Max Patch, click to expand. –

You must be logged in to reply to this topic.