tom.dugovic's code

Re: sloth canons [Pattern Extension]

23 Apr'22 22:21 in code forksloth canon

Save this as an extension and recompile class library. You can now use `Psloth([0,1,0], 10)`, for example, instead of declaring a new routine for each pattern. Update: Psloth2 created. Same output, memory usage decreased. I didn't persist the use cases, as this should be saved as a `.sc` file. Please refer to the ancestor code for usage.

Re: [improved] Gradually change TempoClock tempo [ accelerando / decelerando ] [extension]


This gradually changes the tempo of a TempoClock, each beat of a specified number of beats, and starting at the next bar. Personally, I was not able to heavily distinguish between `.linlin` and `.linexp` for reasonable musical tempos. There may be a mathematically smoother way of handling this at the control rate. This function does not gracefully handle multiple simultaneous invocations.