I'm looking for simple granular patch I could apply on a audio file,
Is there anything that is not complicated?
I try to look for something in the pd example but could not find any
Thanks
Granular in pd
I'm looking for simple granular patch I could apply on a audio file,
Is there anything that is not complicated?
I try to look for something in the pd example but could not find any
Thanks
@KMETE I throw this at you until something better is posted....... Microsound-granular.pd .... which will happen.
The "smooth" anti-click part would be better done with a Hann window than the "duck" that is implemented and I am sure it can be improved/simplified.
It should be easy to understand and tailor to your requirements.
If you actually want granular synthesis there are good links here..... http://gerard.paresys.free.fr/Theme/Theme5.html
David.
Thanks for this. How can I avoid that random process on the reading location(?)
edit: I have also found this
which seems good for basic granular. What do you think?Here is a demo patch I use in my courses.
Dependencies:
Load your file using the [stereofile] object inside [pd resources].
Grains are produced in the [clone 15 one-grain] object.
The [pd linear] subpatch produces grain-trigger messages to play through the file. (You might need to click the 'reset' button to set the pitch control to 1.0 = normal pitch.)
hjh
@ddw_music
Thanks! what do you mean by load your file? I have put my audio file named 003.wav inside the pd-grains folder ( where the 3 files are located) and then I changed the name of the sound file object like in the attached screenshot. No sound is coming out.
@KMETE said:
@ddw_music
what do you mean by load your file?
You got it right, that's the way. I think I put in a "read" message too, but changing the object is fine.
Note that soundfiler posts an error if the file couldn't be opened. If you didn't see this type of error, then file access wouldn't be the problem.
No sound is coming out.
Did you start the "linear" granulator? Admittedly the toggle is unlabeled, but there are two processes shown... it would be confusing if they both played automatically.
Also as noted, "You might need to click the 'reset' button to set the pitch control to 1.0 = normal pitch." I should have initialized it but didn't, oops.
hjh
@ddw_music
Thanks it is working now! is it possible to decide the size of the grains? in ms?
@KMETE said:
@ddw_music
is it possible to decide the size of the grains? in ms?
As the old mathematicians used to do, I'll "leave that as an exercise for the reader." (It's a bit of a funny question -- of course it's possible, even though this specific patch doesn't do it for you.)
This patch defines terms as: Given a trigger rate (grains per second), the grain inter-onset interval in ms is 1000 / rate. Then the grain duration is ioi * overlap = 1000 * overlap / rate.
You could simply drop the multiplication and redefine the "overlap" slider to be grain size (and edit [pd globals] to route in the right way).
I always preferred the "overlap" definition because the sound is more consistent when changing the grain rate. If you use grain size directly, then slowing down the grain rate decreases the density. That's not my first choice, although it may be useful in cases where you want the sound to be "pulled apart."
hjh
I'm a bit late to this, but the video/patch I posted a little while ago might be useful for you
Depending on what you mean by "not complicated": the Audiolab lib (its on deken) has a great granular sampler [pp.grainer~]. It is simple to use, sound good, rock stable.
Oops! Looks like something went wrong!