mirror of
https://codeberg.org/uzu/strudel
synced 2026-07-13 14:26:58 -04:00
build
This commit is contained in:
@@ -42598,6 +42598,14 @@ class Pattern {
|
||||
return this._asNumber().fmap((v)=>Math.round(v)
|
||||
);
|
||||
}
|
||||
floor() {
|
||||
return this._asNumber().fmap((v)=>Math.floor(v)
|
||||
);
|
||||
}
|
||||
ceil() {
|
||||
return this._asNumber().fmap((v)=>Math.ceil(v)
|
||||
);
|
||||
}
|
||||
union(other) {
|
||||
return this._opleft(other, (a)=>(b)=>Object.assign({
|
||||
}, a, b)
|
||||
@@ -42733,6 +42741,9 @@ class Pattern {
|
||||
return binary_pat.fmap((b)=>(val)=>b ? val : undefined
|
||||
).appRight(this)._removeUndefineds();
|
||||
}
|
||||
_segment(rate) {
|
||||
return this.struct(pure(true).fast(rate));
|
||||
}
|
||||
invert() {
|
||||
// Swap true/false in a binary pattern
|
||||
return this.fmap((x)=>!x
|
||||
@@ -42859,7 +42870,8 @@ Pattern.prototype.patternified = [
|
||||
'late',
|
||||
'duration',
|
||||
'legato',
|
||||
'velocity'
|
||||
'velocity',
|
||||
'segment'
|
||||
];
|
||||
// methods that create patterns, which are added to patternified Pattern methods
|
||||
Pattern.prototype.factories = {
|
||||
@@ -183271,4 +183283,4 @@ exports.default = cx;
|
||||
|
||||
},{"@parcel/transformer-js/src/esmodule-helpers.js":"gkKU3"}]},["3uVTb"], "3uVTb", "parcelRequire94c2")
|
||||
|
||||
//# sourceMappingURL=index.86c7b8fe.js.map
|
||||
//# sourceMappingURL=index.df5f5725.js.map
|
||||
File diff suppressed because one or more lines are too long
@@ -11,6 +11,6 @@
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
<noscript>You need to enable JavaScript to run this app.</noscript>
|
||||
<script src="/tutorial/index.86c7b8fe.js" defer=""></script>
|
||||
<script src="/tutorial/index.df5f5725.js" defer=""></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user