Random Beat Sequencer (AudioContext Oscillators FTW) ('-' * 52) Takes composition data, and data relative to each instrument and generates a random beat sequence.
A Pen by Jake Albaugh on CodePen.
Random Beat Sequencer (AudioContext Oscillators FTW) ('-' * 52) Takes composition data, and data relative to each instrument and generates a random beat sequence.
A Pen by Jake Albaugh on CodePen.
### | |
### | |
### UPDATE: For Win 11, I recommend using this tool in place of this script: | |
### https://christitus.com/windows-tool/ | |
### https://github.com/ChrisTitusTech/winutil | |
### https://www.youtube.com/watch?v=6UQZ5oQg8XA | |
### iwr -useb https://christitus.com/win | iex | |
### | |
### |
function ValueBreakpoint(parent, fullNamePath) { | |
var name = fullNamePath[0]; | |
var childNamePath = fullNamePath.slice(1); | |
var innerValue = parent[name]; | |
var childBreakpoints = []; | |
function applyChildValueBreakpoints() { | |
if (childNamePath.length > 0 && innerValue) { | |
childBreakpoints.push(new ValueBreakpoint(innerValue, childNamePath)); | |
} |
/* | |
This 'Observer' component expects the attrs described below. | |
The vdom rendered by `view` will re-render normally within | |
Mithril's redraw cycle. | |
The vdom rendered by `render` will only re-render when the | |
data stream updates. This will not trigger global redraws. | |
`render` renders into the dom node described by `selector`, | |
otherwise defaults to the component's root node. |
Hmm... I don't see any docs for 4.0 on https://webpack.js.org. I guess I'll just wing it.
All I need to do is npm i -D webpack@next
, right?
+ webpack@4.0.0-beta.2
local upper2lower = {[65]=97, [66]=98, [67]=99, [68]=100, [69]=101, [70]=102, [71]=103, [72]=104, | |
[74]=106, [75]=107, [76]=108, [77]=109, [78]=110, [79]=111, [80]=112, [81]=113, | |
[83]=115, [84]=116, [85]=117, [86]=118, [87]=119, [88]=120, [89]=121, [90]=122, | |
[193]=225,[194]=226,[195]=227,[196]=228,[197]=229,[198]=230,[199]=231,[200]=232, | |
[201]=233,[202]=234,[203]=235,[204]=236,[205]=237,[206]=238,[207]=239,[208]=240, | |
[209]=241,[210]=242,[211]=243,[212]=244,[213]=245,[214]=246,[216]=248,[217]=249, | |
[218]=250,[219]=251,[220]=252,[221]=253,[222]=254,[376]=255,[73]=105, [82]=114, | |
[192]=224}; | |
local lower2upper = {[97]=65, [98]=66, [99]=67, [100]=68, [101]=69, [102]=70, [103]=71, [104]=72,[105]=73, |