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
-- flocking. | |
-- | |
engine.name = 'PolyPerc' | |
local function to_hz(note) | |
local exp = (note - 21) / 12 | |
return 27.5 * 2^exp | |
end |
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
( | |
~engine=NornsProto.spawn('glut') { |engine| | |
var nvoices = 7; | |
var pg; | |
var effect; | |
var buffers; | |
var voices; | |
var mixBus; | |
var phases; |
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.spawn('glut') { |engine| | |
var nvoices = 7; | |
var pg; | |
var effect; | |
var buffers; | |
var voices; | |
var mixBus; | |
var phases; |
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
( | |
var imgui_prev; | |
var imgui = (); | |
var ui_begin = { | |
ui_clear.value; // TODO: perhaps possible to fix via property? | |
imgui.inside_item = nil; | |
Pen.font = imgui.font; |
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
( | |
~engine = Norns.spawn('glut') { |engine| | |
var nvoices = 7; | |
var pg; | |
var effect; | |
var buffers; | |
var voices; | |
var mixBus; | |
var phases; |
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
( | |
var nvoices = 7; | |
var pg; | |
var effect; | |
var buffers; | |
var voices; | |
var mixBus; | |
var phases; | |
var levels; |
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
( | |
var nvoices = 7; | |
var pg; | |
var effect; | |
var buffers; | |
var voices; | |
var mixBus; | |
var phases; | |
var levels; |
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
-- an ad-hoc, informally-specified, bug-ridden, slow implementation of half of Common Lisp. | |
--[[ | |
]] | |
--[[ | |
inspiration: | |
https://norvig.com/lispy.html | |
scheme r4rs @ https://people.csail.mit.edu/jaffer/r4rs_toc.html |
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
// 1. Overview of Scheme | |
(* 5 8) // ==> 40 | |
// 2.1 Identifiers | |
// Extended alphabetic characters may be used within identifiers as if they were letters. The following are extended alphabetic characters: | |
+ - . * / < = > ! ? : $ % _ & ~ ^ |
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
( | |
// an ad-hoc, informally-specified, bug-ridden, slow implementation of half of Common Lisp. | |
/* | |
TODO: assoc / assv / assq TODO | |
TODO: (sc only) suspicion that slow ss_* functions has performance penalty - check by testing parsed statements in define_non_prim_standard_procedures | |
TODO: (sc only) for clarity, use .value() over .() | |
*/ | |
/* |
NewerOlder