How should we write pattern classes?

I have some pattern functions I’d like to turn into classes. I’m trying to understand the approach that the standard lib has taken and have some ‘dumb questions’

  • What should I inherit from? Should I inherit from : pattern?
  • What exactly does the embedInStream do in the context of pattern classes?
  • When should you use embedInStream with a while loop?
  • Why doesn’t the pattern library just use Plazy all the time?
  • Anything else?

Appreciate any insight!

Step 1 for this topic is the Pattern Internals help file.

http://docs.supercollider.online/Tutorials/A-Practical-Guide/PG_Ref01_Pattern_Internals.html

hjh

1 Like

missed this, thank you!