// CroneEngine_TestSine
// dumbest possible test: a single, mono sinewave
// Inherit methods from CroneEngine
Engine_TestSine : CroneEngine {
// Define a getter for the synth variable
var <synth;
// Define a class method when an object is created
*new { arg context, doneCallback;
// Return the object from the superclass (CroneEngine) .new method
^super.new(context, doneCallback);
}
// Rather than defining a SynthDef, use a shorthand to allocate a function and send it to the engine to play
// Defined as an empty method in CroneEngine
// https://github.com/monome/norns/blob/master/sc/core/CroneEngine.sc#L31
alloc {
// Define the synth variable, whichis a function
synth = {
// define arguments to the function
This file has been truncated. show original