mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-11 21:58:31 +00:00
build
This commit is contained in:
parent
8663f7f102
commit
45ff4444b3
@ -399,9 +399,11 @@ function stack(...pats) {
|
||||
}
|
||||
function slowcat(...pats) {
|
||||
pats = pats.map(reify);
|
||||
var query2 = function(span) {
|
||||
var pat = pats[Math.floor(span.begin) % pats.length];
|
||||
return pat.query(span);
|
||||
const query2 = function(span) {
|
||||
const pat_n = Math.floor(span.begin) % pats.length;
|
||||
const pat = pats[pat_n];
|
||||
const offset = span.begin.floor().sub(span.begin.div(pats.length).floor());
|
||||
return pat.withEventTime((t) => t.add(offset)).query(span.withTime((t) => t.sub(offset)));
|
||||
};
|
||||
return new Pattern(query2)._splitQueries();
|
||||
}
|
||||
|
||||
2
docs/dist/useCycle.js
vendored
2
docs/dist/useCycle.js
vendored
@ -25,7 +25,7 @@ function useCycle(props) {
|
||||
query(cycle + 1);
|
||||
}, queryNextTime);
|
||||
}
|
||||
events?.forEach((event) => {
|
||||
events?.filter((event) => event.part.begin.valueOf() === event.whole.begin.valueOf()).forEach((event) => {
|
||||
Tone.Transport.schedule((time) => {
|
||||
const toneEvent = {
|
||||
time: event.part.begin.valueOf(),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user