santi

Avatar

santi's code

beat repeat with gate and pitch increment

Use this synthdef as an effect and just make the \go parameter from 0 to 1 to activate. When you transition from 0 to 1, it will record a buffer of length \repms (in miliseconds) and will loop this recorded chunk for as long as \go=1. The \gate parameter controls how much silence is left at the end of the chunk, for a strong gate effect. \rate allows you to change the speed of the sampled chunk, without affecting the loop duration (it will omit part of the end of the loop for rates <1, and it will loop for rates>1, resyncing when \repms time has passed) \pitchstep will make that every new loop starts with an increment/decrement of semitones defiend by this parameter \declick...well... declicks.... and \reverse reverses the played chunk