mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-22 02:58:32 +00:00
adjust use of focus in squeezeJoin - fixes #216
This commit is contained in:
parent
dfdd918ea0
commit
5b56fbed97
@ -653,7 +653,7 @@ export class Pattern {
|
|||||||
function query(state) {
|
function query(state) {
|
||||||
const haps = pat_of_pats.discreteOnly().query(state);
|
const haps = pat_of_pats.discreteOnly().query(state);
|
||||||
function flatHap(outerHap) {
|
function flatHap(outerHap) {
|
||||||
const pat = outerHap.value._focusSpan(outerHap.wholeOrPart().cycleArc());
|
const pat = outerHap.value._focusSpan(outerHap.wholeOrPart());
|
||||||
const innerHaps = pat.query(state.setSpan(outerHap.part));
|
const innerHaps = pat.query(state.setSpan(outerHap.part));
|
||||||
function munge(outer, inner) {
|
function munge(outer, inner) {
|
||||||
let whole = undefined;
|
let whole = undefined;
|
||||||
@ -753,8 +753,7 @@ export class Pattern {
|
|||||||
// Similar to compress, but doesn't leave gaps, and the 'focus' can be
|
// Similar to compress, but doesn't leave gaps, and the 'focus' can be
|
||||||
// bigger than a cycle
|
// bigger than a cycle
|
||||||
_focus(b, e) {
|
_focus(b, e) {
|
||||||
const factor = Fraction(1).div(e.sub(b));
|
return this._fast(Fraction(1).div(e.sub(b))).late(b);
|
||||||
return this._fast(factor).late(b)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
_focusSpan(span) {
|
_focusSpan(span) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user