mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-20 10:08:29 +00:00
build
This commit is contained in:
parent
3d0d526051
commit
b29857e81f
1
docs/dist/parse.js
vendored
1
docs/dist/parse.js
vendored
@ -4,6 +4,7 @@ import {Scale, Note, Interval} from "../_snowpack/pkg/@tonaljs/tonal.js";
|
|||||||
import "./tone.js";
|
import "./tone.js";
|
||||||
import "./midi.js";
|
import "./midi.js";
|
||||||
import "./voicings.js";
|
import "./voicings.js";
|
||||||
|
import "./tonal.js";
|
||||||
import * as toneStuff from "./tone.js";
|
import * as toneStuff from "./tone.js";
|
||||||
import shapeshifter from "./shapeshifter.js";
|
import shapeshifter from "./shapeshifter.js";
|
||||||
const {
|
const {
|
||||||
|
|||||||
10
docs/dist/tonal.js
vendored
Normal file
10
docs/dist/tonal.js
vendored
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
import {Note, Interval} from "../_snowpack/pkg/@tonaljs/tonal.js";
|
||||||
|
import {Pattern as _Pattern} from "../_snowpack/link/strudel.js";
|
||||||
|
const Pattern = _Pattern;
|
||||||
|
Pattern.prototype._transpose = function(intervalOrSemitones) {
|
||||||
|
const interval = !isNaN(Number(intervalOrSemitones)) ? Interval.fromSemitones(intervalOrSemitones) : String(intervalOrSemitones);
|
||||||
|
return this.fmap((note) => Note.transpose(note, interval));
|
||||||
|
};
|
||||||
|
Pattern.prototype.transpose = function(intervalOrSemitones) {
|
||||||
|
return this._patternify(Pattern.prototype._transpose)(intervalOrSemitones);
|
||||||
|
};
|
||||||
4
docs/dist/voicings.js
vendored
4
docs/dist/voicings.js
vendored
@ -10,9 +10,7 @@ const getVoicing = (chord, lastVoicing, range = ["F3", "A4"]) => dictionaryVoici
|
|||||||
});
|
});
|
||||||
const Pattern = _Pattern;
|
const Pattern = _Pattern;
|
||||||
Pattern.prototype.fmapNested = function(func) {
|
Pattern.prototype.fmapNested = function(func) {
|
||||||
return new Pattern((span) => this.query(span).map((event) => {
|
return new Pattern((span) => this.query(span).map((event) => reify(func(event)).query(span).map((hap) => new Hap(event.whole, event.part, hap.value))).flat());
|
||||||
return reify(func(event)).query(span).map((hap) => new Hap(event.whole, event.part, hap.value));
|
|
||||||
}).flat());
|
|
||||||
};
|
};
|
||||||
Pattern.prototype.voicings = function(range = ["F3", "A4"]) {
|
Pattern.prototype.voicings = function(range = ["F3", "A4"]) {
|
||||||
let lastVoicing;
|
let lastVoicing;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user