Real time granular synthesis

Anna Laborová's icon

Hi,
I am new in programming with Max and I would like to create real-time granular synthesis, where grain would be created from additive synthesis. Simply said - first I am creating sound with several oscillators and then the signal would go into process with granulation. Any idea where I should start or patches which could help me? Thanks a lot!

Floating Point's icon

sound source->{variable delay->windowing->amplitude->panning etc}->out(s)
{...} are inside a poly~
the variable delay is used simultaneously as a buffer and as a pitch control for each grain;
best to implement it at audio rate in a gen (inside the poly~)