This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function loader($class) { | |
if (strpos($class, 'List') !== false) { | |
eval("class $class extends TypedList {}"); | |
} | |
} | |
spl_autoload_register('loader'); | |
abstract class TypedList extends ArrayObject |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Multi-saw oscilator. Output on pin D6 | |
* A0 controls base frequency, A1 controls spread. Sync on 3 | |
*/ | |
#define NUM_SAWS 8 | |
typedef union { | |
uint16_t value; | |
uint8_t bytes[2]; |