Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 8 additions & 11 deletions prebake.strudel
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

// tb303 style filter envelope control between 0 & 1 values for useful range
register('acidenv', (x, pat) => pat.lpf(100)
.lpenv(x * 9).lps(.2).lpd(.12).lpq(2)
Expand Down Expand Up @@ -27,18 +26,16 @@ window.track = function(...input) {

const pats = []
str.split(/-+/).forEach((val, index) => {
if (val == false ){
return
if (!val) {
return
}
let newPat = patterns.at(index)
mods?.forEach(([mod, callback]) => {
if (val != mod) {
return
}
mods?.forEach(([mod, callback]) => {
if (val == mod) {
newPat = callback(newPat)
})

pats.push(newPat)
}
})
pats.push(newPat)
})
return stack(...pats)
});
Expand Down Expand Up @@ -438,4 +435,4 @@ register('stxt', (text, pat) => {
})

return pat
})
})