This file contains hidden or 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
| // polyform lite - nb editon v.0.1 @sonoCircuit | |
| // supercollider class based on the skilled labour study written by ezra buchla & dani derks for monome.org | |
| NB_PolyForm { | |
| classvar <voiceKeys, <synthParams, <synthGroup, <synthVoices; // do these all need to be classvars?? | |
| *initClass { | |
| // six voices | |
| voiceKeys = [ \1, \2, \3, \4, \5, \6]; |
This file contains hidden or 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
| --_r = include 'lib/reflection_new' | |
| _r = require 'reflection' | |
| my_pattern = _r.new() | |
| function init() | |
| params:set("clock_reset", 1) | |
| my_pattern.process = process_pat | |
| my_pattern.loop = 1 | |
| my_pattern:set_quantization(1/48) |
This file contains hidden or 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
| --- clocked pattern recorder library | |
| -- @module lib.reflection | |
| local reflection = {} | |
| reflection.__index = reflection | |
| --- constructor | |
| function reflection.new() | |
| local p = {} | |
| setmetatable(p, reflection) |
This file contains hidden or 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
| -- norns clock handler test | |
| -- | |
| -- when clock.get_beat_sec() is called via tempo_change_handler the value is off by 1bpm | |
| function clock.tempo_change_handler(tempo) | |
| print("params get bpm: "..params:get("clock_tempo")) -- tempo set in params | |
| print("clock handler bpm: "..tempo) -- the correct tempo is passed as arg | |
| print("calculated beat sec: "..60/tempo) | |
| print("clock get beat sec: "..clock.get_beat_sec()) |