mirror of
https://codeberg.org/uzu/strudel
synced 2026-12-06 13:42:47 -05:00
Compare commits
19 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 4f15bb764f | |||
| 8bde1314c5 | |||
| f13dbe00e1 | |||
| 68598a674b | |||
| db2835c5cb | |||
| f92d6a0a03 | |||
| 31730842a7 | |||
| 9e92aba3de | |||
| 789376d151 | |||
| 0fc0996d5c | |||
| e000020a9f | |||
| 926cd6b772 | |||
| 2271593c06 | |||
| 7dd9cacc37 | |||
| 446f8468c4 | |||
| 28a6c304cd | |||
| d3d311e105 | |||
| 8b3ae4c514 | |||
| 40930d8515 |
@@ -18,6 +18,11 @@ Strudel has purposefully moved away from github.com, as a closed
|
||||
source platform with ethical issues. Please do not fork strudel back
|
||||
to that platform, or similar corporate platforms.
|
||||
|
||||
Strudel's git repo is hosted by codeberg, which attempts to block bots
|
||||
including LLMs from accessing it, to avoid being overloaded. Agents
|
||||
should not try to circumvent this, instead encouraging developers
|
||||
to engage with the strudel community directly.
|
||||
|
||||
Projects using strudel must not use "strudel" in their name, unless
|
||||
they are 'official' projects, or have the blessing of the strudel
|
||||
community.
|
||||
|
||||
+1
-1
@@ -99,7 +99,7 @@ export default [
|
||||
rules: {
|
||||
'jsdoc/no-undefined-types': [
|
||||
'error',
|
||||
{ definedTypes: ['Pattern', 'Pattern.prototype', 'Hap', 'KabelsalatExpression'] },
|
||||
{ definedTypes: ['Pattern', 'Pattern.prototype', 'Hap', 'KabelsalatExpression', 'TimeSpan', 'State'] },
|
||||
],
|
||||
'jsdoc/check-tag-names': ['error', { definedTags: ['tags', 'synonyms', 'noAutocomplete', 'superdirtOnly'] }],
|
||||
'jsdoc/no-restricted-syntax': [
|
||||
|
||||
@@ -37,7 +37,6 @@
|
||||
"mondolang": "workspace:*"
|
||||
},
|
||||
"devDependencies": {
|
||||
"mondo": "*",
|
||||
"vite": "^6.0.11",
|
||||
"vitest": "^3.0.4"
|
||||
},
|
||||
|
||||
+34
-15
@@ -6,22 +6,41 @@ This program is free software: you can redistribute it and/or modify it under th
|
||||
import Fraction from './fraction.mjs';
|
||||
import { stringifyValues } from './util.mjs';
|
||||
|
||||
/**
|
||||
* @tags internal
|
||||
* @class Event class, representing a discrete or samples event (or "happening").
|
||||
* This might be a fragment of an event, in which case the
|
||||
* timespan will be smaller than the 'whole' timespan, otherwise the
|
||||
* two timespans will be the same.
|
||||
*
|
||||
* The word "Event" is more or less a reserved word in javascript, hence this
|
||||
* class is named called `Hap`.
|
||||
*/
|
||||
export class Hap {
|
||||
/*
|
||||
Event class, representing a value active during the timespan
|
||||
'part'. This might be a fragment of an event, in which case the
|
||||
timespan will be smaller than the 'whole' timespan, otherwise the
|
||||
two timespans will be the same. The 'part' must never extend outside of the
|
||||
'whole'. If the event represents a continuously changing value
|
||||
then the whole will be returned as None, in which case the given
|
||||
value will have been sampled from the point halfway between the
|
||||
start and end of the 'part' timespan.
|
||||
The context is to store metadata, including a list of source code locations causing the event.
|
||||
|
||||
The word 'Event' is more or less a reserved word in javascript, hence this
|
||||
class is named called 'Hap'.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Create a hap. Create a hap. Haps and patterns are considered immutable, but you can create a new pattern with modified haps with functions like {@link Pattern#withHaps} and {@link Pattern#withValue}.
|
||||
*
|
||||
* @param {TimeSpan | undefined} whole timespan. If the event represents a continuously changing value
|
||||
* then the whole will be returned as None, in which case the given value will have been sampled from
|
||||
* the the start of the `part` timespan.
|
||||
* @param {TimeSpan} part of the timespan. May never extend outside of the `whole`.
|
||||
* @param {function(State):* | *} value active during the timespan `part`. Must be a function if `stateful` is set to `true`.
|
||||
* @param {object} [context={}] - The context is to store metadata. When two patterns are combined, their context objects are merged.
|
||||
* @param {Array<{ start: number, end: number }>} [context.locations] - list of source code locations causing the event
|
||||
* @param {string[]} [context.tags] Metadata about the Hap
|
||||
* @param {boolean} [stateful=false] - (experimental) if true the value depends on the state.
|
||||
*
|
||||
* @example
|
||||
* // Keep only haps whose full `whole` timespan is at least half a cycle long
|
||||
* s("bd*8")
|
||||
* .slow(2)
|
||||
* .filterHaps((hap) => hap.whole !== undefined && hap.whole.span.duration() >= 0.5);
|
||||
*
|
||||
* @example
|
||||
* // Keep only haps that begin within the first half of a cycle
|
||||
* note("c3 d3 e3 f3")
|
||||
* .filterHaps((hap) => hap.part.begin < 0.5);
|
||||
*/
|
||||
constructor(whole, part, value, context = {}, stateful = false) {
|
||||
this.whole = whole;
|
||||
this.part = part;
|
||||
|
||||
@@ -91,7 +91,7 @@ export class Pattern {
|
||||
|
||||
/**
|
||||
* Returns a new pattern, with the function applied to the value of
|
||||
* each hap. It has the alias `fmap`.
|
||||
* each {@link Hap}. It has the alias `fmap`.
|
||||
* @tags functional
|
||||
* @synonyms fmap
|
||||
* @param {Function} func to to apply to the value
|
||||
@@ -407,7 +407,7 @@ export class Pattern {
|
||||
// Utility methods mainly for internal use
|
||||
|
||||
/**
|
||||
* Query haps inside the given time span.
|
||||
* Query {@link Hap}s inside the given time span.
|
||||
*
|
||||
* @tags internals
|
||||
* @param {Fraction | number} begin from time
|
||||
@@ -450,7 +450,7 @@ export class Pattern {
|
||||
* Returns a new pattern, where the given function is applied to the query
|
||||
* timespan before passing it to the original pattern.
|
||||
* @tags internals
|
||||
* @param {Function} func the function to apply
|
||||
* @param {function(TimeSpan):TimeSpan} func the function to apply
|
||||
* @returns {Pattern}
|
||||
* @noAutocomplete
|
||||
*/
|
||||
@@ -482,11 +482,11 @@ export class Pattern {
|
||||
}
|
||||
|
||||
/**
|
||||
* Similar to `withQuerySpan`, but the function is applied to the timespans
|
||||
* of all haps returned by pattern queries (both `part` timespans, and where
|
||||
* Similar to {@link Pattern#withQuerySpan}, but the function is applied to the timespans
|
||||
* of all {@link Hap}s returned by pattern queries (both `part` timespans, and where
|
||||
* present, `whole` timespans).
|
||||
* @tags internals
|
||||
* @param {Function} func
|
||||
* @param {function(TimeSpan):TimeSpan} func
|
||||
* @returns {Pattern}
|
||||
* @noAutocomplete
|
||||
*/
|
||||
@@ -495,10 +495,10 @@ export class Pattern {
|
||||
}
|
||||
|
||||
/**
|
||||
* As with `withHapSpan`, but the function is applied to both the
|
||||
* begin and end time of the hap timespans.
|
||||
* As with {@link Pattern#withHapSpan}, but the function is applied to both the
|
||||
* begin and end time of the {@link Hap} timespans.
|
||||
* @tags internals
|
||||
* @param {Function} func the function to apply
|
||||
* @param {function(TimeSpan):TimeSpan} func the function to apply
|
||||
* @returns {Pattern}
|
||||
* @noAutocomplete
|
||||
*/
|
||||
@@ -507,9 +507,9 @@ export class Pattern {
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a new pattern with the given function applied to the list of haps returned by every query.
|
||||
* Returns a new pattern with the given function applied to the list of {@link Hap}s returned by every query.
|
||||
*
|
||||
* As an end user, you will most likely not need to use this; look at `withContext`, `withHapSpan`, etc. instead.
|
||||
* As an end user, you will most likely not need to use this; look at {@link Pattern#withContext}, {@link Pattern#withHapSpan}, etc. instead.
|
||||
* @tags internals
|
||||
* @param {Function} func
|
||||
* @returns {Pattern}
|
||||
@@ -535,9 +535,9 @@ export class Pattern {
|
||||
}
|
||||
|
||||
/**
|
||||
* As with `withHaps`, but applies the function to every hap, rather than every list of haps.
|
||||
* As with {@link Pattern#withHaps}, but applies the function to every {@link Hap}, rather than every list of haps.
|
||||
*
|
||||
* As an end user, you will most likely not need to use this; look at `withContext`, `withHapSpan`, etc. instead.
|
||||
* As an end user, you will most likely not need to use this; look at {@link Pattern#withContext}, {@link Pattern#withHapSpan}, etc. instead.
|
||||
* @tags internals
|
||||
* @param {Function} func
|
||||
* @returns {Pattern}
|
||||
@@ -559,7 +559,7 @@ export class Pattern {
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a new pattern with the context field set to every hap set to the given value.
|
||||
* Returns a new pattern with the context field set to every {@link Hap} set to the given value.
|
||||
* @tags internals
|
||||
* @param {*} context
|
||||
* @returns {Pattern}
|
||||
@@ -570,7 +570,7 @@ export class Pattern {
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a new pattern with the given function applied to the context field of every hap.
|
||||
* Returns a new pattern with the given function applied to the context field of every {@link Hap}.
|
||||
* @tags internals
|
||||
* @param {Function} func
|
||||
* @returns {Pattern}
|
||||
@@ -586,7 +586,7 @@ export class Pattern {
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a new pattern with the context field of every hap set to an empty object.
|
||||
* Returns a new pattern with the `context` field of every {@link Hap} set to an empty object.
|
||||
* @tags internals
|
||||
* @returns {Pattern}
|
||||
* @noAutocomplete
|
||||
@@ -597,7 +597,7 @@ export class Pattern {
|
||||
|
||||
/**
|
||||
* Returns a new pattern with the given location information added to the
|
||||
* context of every hap.
|
||||
* context of every {@link Hap}.
|
||||
* @tags internals
|
||||
* @param {number} start start offset
|
||||
* @param {number} end end offset
|
||||
@@ -621,9 +621,9 @@ export class Pattern {
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a new Pattern, which only returns haps that meet the given test.
|
||||
* Returns a new Pattern, which only returns {@link Hap}s that meet the given test.
|
||||
* @tags internals
|
||||
* @param {Function} hap_test - a function which returns false for haps to be removed from the pattern
|
||||
* @param {function(Hap):boolean} hap_test - a function which returns false for {@link Hap}s to be removed from the pattern
|
||||
* @returns {Pattern}
|
||||
* @example
|
||||
* s("bd*8").velocity(rand).filterHaps((h) => (h.whole.begin % 1) < h.value.velocity)
|
||||
@@ -633,7 +633,7 @@ export class Pattern {
|
||||
}
|
||||
|
||||
/**
|
||||
* As with `filterHaps`, but the function is applied to values
|
||||
* As with {@link Pattern#filterHaps}, but the function is applied to values
|
||||
* inside haps.
|
||||
* @tags internals
|
||||
* @param {Function} value_test
|
||||
@@ -660,22 +660,20 @@ export class Pattern {
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a new pattern, with all haps without onsets filtered out. A hap
|
||||
* with an onset is one with a `whole` timespan that begins at the same time
|
||||
* Returns a new pattern, with all {@link Hap}s without onsets filtered out.
|
||||
*
|
||||
* A hap with an onset is one with a `whole` timespan that begins at the same time
|
||||
* as its `part` timespan.
|
||||
* @tags internals
|
||||
* @returns {Pattern}
|
||||
* @noAutocomplete
|
||||
*/
|
||||
onsetsOnly() {
|
||||
// Returns a new pattern that will only return haps where the start
|
||||
// of the 'whole' timespan matches the start of the 'part'
|
||||
// timespan, i.e. the haps that include their 'onset'.
|
||||
return this.filterHaps((hap) => hap.hasOnset());
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a new pattern, with 'continuous' haps (those without 'whole'
|
||||
* Returns a new pattern, with 'continuous' {@link Hap}s (those without 'whole'
|
||||
* timespans) removed from query results.
|
||||
* @tags internals
|
||||
* @returns {Pattern}
|
||||
@@ -687,7 +685,7 @@ export class Pattern {
|
||||
}
|
||||
|
||||
/**
|
||||
* Combines adjacent haps with the same value and whole. Only
|
||||
* Combines adjacent {@link Hap}s with the same value and whole. Only
|
||||
* intended for use in tests.
|
||||
* @tags internals
|
||||
* @noAutocomplete
|
||||
@@ -741,7 +739,7 @@ export class Pattern {
|
||||
}
|
||||
|
||||
/**
|
||||
* Queries the pattern for the first cycle, returning Haps. Mainly of use when
|
||||
* Queries the pattern for the first cycle, returning {@link Hap}s. Mainly of use when
|
||||
* debugging a pattern.
|
||||
* @tags internals
|
||||
* @param {boolean} with_context - set to true, otherwise the context field
|
||||
@@ -780,7 +778,7 @@ export class Pattern {
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a new pattern, which returns haps sorted in temporal order. Mainly
|
||||
* Returns a new pattern, which returns {@link Hap}s sorted in temporal order. Mainly
|
||||
* of use when comparing two patterns for equality, in tests.
|
||||
* @tags internals
|
||||
* @returns {Pattern}
|
||||
|
||||
+17
-23
@@ -12,13 +12,21 @@ import Fraction from './fraction.mjs';
|
||||
import { id, keyAlias, getCurrentKeyboardState } from './util.mjs';
|
||||
import TimeSpan from './timespan.mjs';
|
||||
|
||||
/**
|
||||
* A `signal` consisting of a constant value. Similar to `pure`, except that function
|
||||
* creates a pattern with one event per cycle, whereas 'steady' patterns don't have
|
||||
* an discrete structure.
|
||||
*
|
||||
* @param {*} value The constant value of the resulting pattern
|
||||
* @returns {Pattern}
|
||||
*/
|
||||
export function steady(value) {
|
||||
// A continuous value
|
||||
return new Pattern((state) => [new Hap(undefined, state.span, value)]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a signal given by the input function
|
||||
* Creates a "signal", an unstructured pattern consisting of a single value that changes over time.
|
||||
*
|
||||
* @name signal
|
||||
* @param {*} func
|
||||
@@ -628,6 +636,12 @@ export const chooseInWith = (pat, xs) => {
|
||||
*/
|
||||
export const choose = (...xs) => chooseWith(rand, xs);
|
||||
|
||||
/**
|
||||
* As with {choose}, but the structure comes from the chosen values, rather
|
||||
* than the pattern you're using to choose with.
|
||||
* @param {...any} xs
|
||||
* @returns {Pattern} - a continuous pattern.
|
||||
*/
|
||||
export const chooseIn = (...xs) => chooseInWith(rand, xs);
|
||||
|
||||
/**
|
||||
@@ -779,12 +793,10 @@ export const perlin = signal((t, controls) => _perlin(t, controls.randSeed));
|
||||
export const berlin = signal((t, controls) => _berlin(t, controls.randSeed));
|
||||
|
||||
/**
|
||||
* `degradeByWith` is like `degradeBy`, but with control over the random or other signal used to filter out the events.
|
||||
*
|
||||
* `degradeByWith` is like `degradeBy`, but with control over the signal used to degrade the pattern.
|
||||
* It removes events from a pattern given a signal of numbers and a cutoff value for interpreting that pattern as true or false.
|
||||
* `degradeBy(x)` is essentially `degradeByWith(rand, x)`
|
||||
*
|
||||
* This allows you to do things other than with `rand`, see examples below
|
||||
*
|
||||
* @name degradeByWith
|
||||
* @param {Pattern|number} test
|
||||
* @param {Pattern|number} testAgainst
|
||||
@@ -1129,24 +1141,6 @@ export const cyclesPer = new Pattern(function (state) {
|
||||
return [new Hap(undefined, state.span, state.span.duration)];
|
||||
});
|
||||
|
||||
/**
|
||||
* A pattern measuring the duration of events, in seconds per event.
|
||||
* `secondsPer` doesn't have structure itself, but takes structue, and therefore
|
||||
* event durations, from the pattern that it is combined with.
|
||||
* For example `secondsPer.struct("1 1 [1 1] 1")` with `cps = 1` would give the same as `"0.25 0.25 [0.125 0.125] 0.25"`.
|
||||
*
|
||||
* @tags temporal
|
||||
* @synonyms sper
|
||||
* @example
|
||||
* note("f a [c d] e")
|
||||
* .dec(secondsPer.mul(1))
|
||||
*/
|
||||
export const secondsPer = new Pattern(function (state) {
|
||||
return [new Hap(undefined, state.span, state.span.duration.div(state.controls?._cps ?? 0.5))];
|
||||
});
|
||||
|
||||
export const sper = secondsPer;
|
||||
|
||||
/**
|
||||
* A pattern measuring the 'shortness' of events, or in other words, the duration of pattern events,
|
||||
* in events per cycle. `per` doesn't have structure itself, but takes structure, and therefore
|
||||
|
||||
@@ -99,7 +99,7 @@ export class Orbit {
|
||||
return effectSend(node, this.delayNode, amount);
|
||||
}
|
||||
|
||||
duck(t, onsettime = 0, attacktime = 0.1, depth = 1) {
|
||||
duck(t, onsettime = 0, attacktime = 0.16, depth = 0.8) {
|
||||
const onset = onsettime;
|
||||
const attack = Math.max(attacktime, 0.002);
|
||||
const gainParam = this.output.gain;
|
||||
@@ -197,7 +197,7 @@ export class SuperdoughAudioController {
|
||||
this.output.reset();
|
||||
}
|
||||
|
||||
duck(targetOrbits, t, onsettime = 0, attacktime = 0.1, depth = 1) {
|
||||
duck(targetOrbits, t, onsettime = 0, attacktime = 0.16, depth = 0.8) {
|
||||
const targetArr = [targetOrbits].flat();
|
||||
const onsetArr = [onsettime].flat();
|
||||
const attackArr = [attacktime].flat();
|
||||
|
||||
Generated
-87
@@ -467,9 +467,6 @@ importers:
|
||||
specifier: workspace:*
|
||||
version: link:../mondo
|
||||
devDependencies:
|
||||
mondo:
|
||||
specifier: '*'
|
||||
version: 0.4.4
|
||||
vite:
|
||||
specifier: ^6.0.11
|
||||
version: 6.0.11(@types/node@22.10.10)(jiti@2.4.2)(lightningcss@1.29.1)(terser@5.37.0)(yaml@2.7.0)
|
||||
@@ -3337,10 +3334,6 @@ packages:
|
||||
resolution: {integrity: sha512-groO71Fvi5SWpxjI9Ia+chy0QBwT61mg6yxJV27f5YFf+Mw+STT75K6SHySpP8Co5LsCrtsbCH5dJZSRtkSKaQ==}
|
||||
engines: {node: '>= 14.0.0'}
|
||||
|
||||
amdefine@1.0.1:
|
||||
resolution: {integrity: sha512-S2Hw0TtNkMJhIabBwIojKL9YHO5T0n5eNqWJ7Lrlel/zDbftQpxpapi8tZs3X1HWa+u+QeydGmzzNU0m09+Rcg==}
|
||||
engines: {node: '>=0.4.2'}
|
||||
|
||||
ansi-align@3.0.1:
|
||||
resolution: {integrity: sha512-IOfwwBF5iczOjp/WeY4YxyjqAFMQoZufdQWDd19SEExbVLNXqvpzSJ/M7Za4/sCPmQ0+GRquoA7bGcINcxew6w==}
|
||||
|
||||
@@ -3473,9 +3466,6 @@ packages:
|
||||
resolution: {integrity: sha512-hsU18Ae8CDTR6Kgu9DYf0EbCr/a5iGL0rytQDobUcdpYOKokk8LEjVphnXkDkgpi0wYVsqrXuP0bZxJaTqdgoA==}
|
||||
engines: {node: '>= 0.4'}
|
||||
|
||||
async@0.2.10:
|
||||
resolution: {integrity: sha512-eAkdoKxU6/LkKDBzLpT+t6Ff5EtfSF4wx1WfJiPEEV7WNLnDaRXk0oVysiEPm262roaachGexwUv94WhSgN5TQ==}
|
||||
|
||||
async@3.2.6:
|
||||
resolution: {integrity: sha512-htCUDlxyyCLMgaM3xXg0C0LW2xqfuQ6p05pCEIsXuyQ+a1koYKTuBMzRNwmybfLgvJDMd0r1LTn4+E0Ti6C2AA==}
|
||||
|
||||
@@ -3718,9 +3708,6 @@ packages:
|
||||
claviature@0.1.0:
|
||||
resolution: {integrity: sha512-Ai12axNwQ7x/F9QAj64RYKsgvi5Y33+X3GUSKAC/9s/adEws8TSSc0efeiqhKNGKBo6rT/c+CSCwSXzXxwxZzQ==}
|
||||
|
||||
cldr-plurals@1.0.0:
|
||||
resolution: {integrity: sha512-xGkehDsjj/ng1LtYiAzdiqDgqTQ/qmWafDlB6R8CfXbpXe4Ge2Tl4l7gxiA+yaD1WCTP3EVfwerdmVwfco7vxw==}
|
||||
|
||||
clean-stack@2.2.0:
|
||||
resolution: {integrity: sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==}
|
||||
engines: {node: '>=6'}
|
||||
@@ -4826,9 +4813,6 @@ packages:
|
||||
engines: {node: '>=16 || 14 >=14.17'}
|
||||
deprecated: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me
|
||||
|
||||
globalize@0.1.1:
|
||||
resolution: {integrity: sha512-5e01v8eLGfuQSOvx2MsDMOWS0GFtCx1wPzQSmcHw4hkxFzrQDBO3Xwg/m8Hr/7qXMrHeOIE29qWVzyv06u1TZA==}
|
||||
|
||||
globals@11.12.0:
|
||||
resolution: {integrity: sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==}
|
||||
engines: {node: '>=4'}
|
||||
@@ -4890,11 +4874,6 @@ packages:
|
||||
h3@1.14.0:
|
||||
resolution: {integrity: sha512-ao22eiONdgelqcnknw0iD645qW0s9NnrJHr5OBz4WOMdBdycfSas1EQf1wXRsm+PcB2Yoj43pjBPwqIpJQTeWg==}
|
||||
|
||||
handlebars@1.1.2:
|
||||
resolution: {integrity: sha512-6lekK3aSHE7XnEqEs+JWQJRSRdCqJYHEVjEfWWZv9pjLUYZNeP26EtlgOrpDCSX+k5N1m74urTbztgBOCko1Kg==}
|
||||
engines: {node: '>=0.4.7'}
|
||||
hasBin: true
|
||||
|
||||
handlebars@4.7.8:
|
||||
resolution: {integrity: sha512-vafaFqs8MZkRrSX7sFVUdo3ap/eNiLnb4IakshzvP56X5Nr1iGKAIqdX6tMlm6HcNRIkr6AxO5jFEoJzzpT8aQ==}
|
||||
engines: {node: '>=0.4.7'}
|
||||
@@ -6053,10 +6032,6 @@ packages:
|
||||
engines: {node: '>=18'}
|
||||
hasBin: true
|
||||
|
||||
mondo@0.4.4:
|
||||
resolution: {integrity: sha512-3ot6iKwC9KZvwmyZ9dgPCnlt0O1GuBnK8QZyhnoJdtkIiRL9X/cmQuu88CbFSznQx6bq19xQdwJHpv8hggH62Q==}
|
||||
deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
|
||||
|
||||
mrmime@2.0.0:
|
||||
resolution: {integrity: sha512-eu38+hdgojoyq63s+yTpN4XMBdt5l8HhMhc4VKLO9KM5caLIBvUm4thi7fFaxyTmCKeNnXZ5pAlBwCUnhA09uw==}
|
||||
engines: {node: '>=10'}
|
||||
@@ -6312,9 +6287,6 @@ packages:
|
||||
resolution: {integrity: sha512-7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ==}
|
||||
engines: {node: '>=12'}
|
||||
|
||||
optimist@0.3.7:
|
||||
resolution: {integrity: sha512-TCx0dXQzVtSCg2OgY/bO9hjM9cV4XYx09TVK+s3+FhkjT6LovsLe+pPMzpWf+6yXK/hUizs2gUoTw3jHM0VaTQ==}
|
||||
|
||||
optionator@0.9.4:
|
||||
resolution: {integrity: sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==}
|
||||
engines: {node: '>= 0.8.0'}
|
||||
@@ -7240,10 +7212,6 @@ packages:
|
||||
source-map-support@0.5.21:
|
||||
resolution: {integrity: sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==}
|
||||
|
||||
source-map@0.1.43:
|
||||
resolution: {integrity: sha512-VtCvB9SIQhk3aF6h+N85EaqIaBFIAfZ9Cu+NJHHVvc8BbEcnvDcFw6sqQ2dQrT6SlOrZq3tIvyD9+EGq/lJryQ==}
|
||||
engines: {node: '>=0.8.0'}
|
||||
|
||||
source-map@0.5.7:
|
||||
resolution: {integrity: sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==}
|
||||
engines: {node: '>=0.10.0'}
|
||||
@@ -7690,11 +7658,6 @@ packages:
|
||||
ufo@1.5.4:
|
||||
resolution: {integrity: sha512-UsUk3byDzKd04EyoZ7U4DOlxQaD14JUKQl6/P7wiX4FNvUfm3XL246n9W5AmqwW5RSFJ27NAuM0iLscAOYUiGQ==}
|
||||
|
||||
uglify-js@2.3.6:
|
||||
resolution: {integrity: sha512-T2LWWydxf5+Btpb0S/Gg/yKFmYjnX9jtQ4mdN9YRq73BhN21EhU0Dvw3wYDLqd3TooGUJlCKf3Gfyjjy/RTcWA==}
|
||||
engines: {node: '>=0.4.0'}
|
||||
hasBin: true
|
||||
|
||||
uglify-js@3.19.3:
|
||||
resolution: {integrity: sha512-v3Xu+yuwBXisp6QYTcH4UbH+xYJXqnq2m/LtQVWKWzYc1iehYnLixoQDN9FH6/j9/oybfd6W9Ghwkl8+UMKTKQ==}
|
||||
engines: {node: '>=0.8.0'}
|
||||
@@ -7713,9 +7676,6 @@ packages:
|
||||
underscore@1.13.7:
|
||||
resolution: {integrity: sha512-GMXzWtsc57XAtguZgaQViUOzs0KTkk8ojr3/xAxXLITqf/3EMwxC0inyETfDFjH/Krbhuep0HNbbjI9i/q3F3g==}
|
||||
|
||||
underscore@1.5.2:
|
||||
resolution: {integrity: sha512-yejOFsRnTJs0N9CK5Apzf6maDO2djxGoLLrlZlvGs2o9ZQuhIhDL18rtFyy4FBIbOkzA6+4hDgXbgz5EvDQCXQ==}
|
||||
|
||||
undici-types@6.20.0:
|
||||
resolution: {integrity: sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg==}
|
||||
|
||||
@@ -8096,10 +8056,6 @@ packages:
|
||||
resolution: {integrity: sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==}
|
||||
engines: {node: '>=0.10.0'}
|
||||
|
||||
wordwrap@0.0.3:
|
||||
resolution: {integrity: sha512-1tMA907+V4QmxV7dbRvb4/8MaRALK6q9Abid3ndMYnbyo8piisCmeONVqVSXqQA3KaP4SLt5b7ud6E2sqP8TFw==}
|
||||
engines: {node: '>=0.4.0'}
|
||||
|
||||
wordwrap@1.0.0:
|
||||
resolution: {integrity: sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q==}
|
||||
|
||||
@@ -11185,9 +11141,6 @@ snapshots:
|
||||
'@algolia/requester-fetch': 5.20.0
|
||||
'@algolia/requester-node-http': 5.20.0
|
||||
|
||||
amdefine@1.0.1:
|
||||
optional: true
|
||||
|
||||
ansi-align@3.0.1:
|
||||
dependencies:
|
||||
string-width: 4.2.3
|
||||
@@ -11399,9 +11352,6 @@ snapshots:
|
||||
|
||||
async-function@1.0.0: {}
|
||||
|
||||
async@0.2.10:
|
||||
optional: true
|
||||
|
||||
async@3.2.6: {}
|
||||
|
||||
asynckit@0.4.0: {}
|
||||
@@ -11665,8 +11615,6 @@ snapshots:
|
||||
|
||||
claviature@0.1.0: {}
|
||||
|
||||
cldr-plurals@1.0.0: {}
|
||||
|
||||
clean-stack@2.2.0: {}
|
||||
|
||||
cli-boxes@3.0.0: {}
|
||||
@@ -12868,8 +12816,6 @@ snapshots:
|
||||
minipass: 4.2.8
|
||||
path-scurry: 1.11.1
|
||||
|
||||
globalize@0.1.1: {}
|
||||
|
||||
globals@11.12.0: {}
|
||||
|
||||
globals@14.0.0: {}
|
||||
@@ -12936,12 +12882,6 @@ snapshots:
|
||||
uncrypto: 0.1.3
|
||||
unenv: 1.10.0
|
||||
|
||||
handlebars@1.1.2:
|
||||
dependencies:
|
||||
optimist: 0.3.7
|
||||
optionalDependencies:
|
||||
uglify-js: 2.3.6
|
||||
|
||||
handlebars@4.7.8:
|
||||
dependencies:
|
||||
minimist: 1.2.8
|
||||
@@ -14536,13 +14476,6 @@ snapshots:
|
||||
requirejs: 2.3.7
|
||||
requirejs-config-file: 4.0.0
|
||||
|
||||
mondo@0.4.4:
|
||||
dependencies:
|
||||
cldr-plurals: 1.0.0
|
||||
globalize: 0.1.1
|
||||
handlebars: 1.1.2
|
||||
underscore: 1.5.2
|
||||
|
||||
mrmime@2.0.0: {}
|
||||
|
||||
ms@2.0.0: {}
|
||||
@@ -14846,10 +14779,6 @@ snapshots:
|
||||
is-docker: 2.2.1
|
||||
is-wsl: 2.2.0
|
||||
|
||||
optimist@0.3.7:
|
||||
dependencies:
|
||||
wordwrap: 0.0.3
|
||||
|
||||
optionator@0.9.4:
|
||||
dependencies:
|
||||
deep-is: 0.1.4
|
||||
@@ -15997,11 +15926,6 @@ snapshots:
|
||||
buffer-from: 1.1.2
|
||||
source-map: 0.6.1
|
||||
|
||||
source-map@0.1.43:
|
||||
dependencies:
|
||||
amdefine: 1.0.1
|
||||
optional: true
|
||||
|
||||
source-map@0.5.7: {}
|
||||
|
||||
source-map@0.6.1: {}
|
||||
@@ -16482,13 +16406,6 @@ snapshots:
|
||||
|
||||
ufo@1.5.4: {}
|
||||
|
||||
uglify-js@2.3.6:
|
||||
dependencies:
|
||||
async: 0.2.10
|
||||
optimist: 0.3.7
|
||||
source-map: 0.1.43
|
||||
optional: true
|
||||
|
||||
uglify-js@3.19.3:
|
||||
optional: true
|
||||
|
||||
@@ -16505,8 +16422,6 @@ snapshots:
|
||||
|
||||
underscore@1.13.7: {}
|
||||
|
||||
underscore@1.5.2: {}
|
||||
|
||||
undici-types@6.20.0: {}
|
||||
|
||||
unenv@1.10.0:
|
||||
@@ -16881,8 +16796,6 @@ snapshots:
|
||||
|
||||
word-wrap@1.2.5: {}
|
||||
|
||||
wordwrap@0.0.3: {}
|
||||
|
||||
wordwrap@1.0.0: {}
|
||||
|
||||
workbox-background-sync@7.0.0:
|
||||
|
||||
@@ -611,6 +611,15 @@ exports[`runs examples > example "FX" example index 1 1`] = `
|
||||
]
|
||||
`;
|
||||
|
||||
exports[`runs examples > example "Hap" example index 0 1`] = `[]`;
|
||||
|
||||
exports[`runs examples > example "Hap" example index 1 1`] = `
|
||||
[
|
||||
"[ 0/1 → 1/4 | note:c3 ]",
|
||||
"[ 1/4 → 1/2 | note:d3 ]",
|
||||
]
|
||||
`;
|
||||
|
||||
exports[`runs examples > example "K" example index 0 1`] = `
|
||||
[
|
||||
"[ 0/1 → 1/12 | note:Bb4 s:saw workletSrc:saw(saw(sFreq / pat[0]).mul(8).add(sFreq).lag(pat[1])).mul(0.3).mul(sGate.adsr(0 0.15 0.5 pat[2])).lpf(sGate.adsr(0 0.2 0.3 0.2).mul(1).add(0)).add(x => x.delay(pat[3]).mul(0.7)).add(x => x.delay(pat[4]).mul(0.77)).mul(0.7).add(x => x.delay(0.13).mul(0.7)).out() workletInputs:[2 0 0.1 0.3 0.03] ]",
|
||||
@@ -11792,31 +11801,6 @@ exports[`runs examples > example "scut" example index 0 1`] = `
|
||||
]
|
||||
`;
|
||||
|
||||
exports[`runs examples > example "secondsPer" example index 0 1`] = `
|
||||
[
|
||||
"[ 0/1 → 1/4 | note:f decay:0.5 ]",
|
||||
"[ 1/4 → 1/2 | note:a decay:0.5 ]",
|
||||
"[ 1/2 → 5/8 | note:c decay:0.25 ]",
|
||||
"[ 5/8 → 3/4 | note:d decay:0.25 ]",
|
||||
"[ 3/4 → 1/1 | note:e decay:0.5 ]",
|
||||
"[ 1/1 → 5/4 | note:f decay:0.5 ]",
|
||||
"[ 5/4 → 3/2 | note:a decay:0.5 ]",
|
||||
"[ 3/2 → 13/8 | note:c decay:0.25 ]",
|
||||
"[ 13/8 → 7/4 | note:d decay:0.25 ]",
|
||||
"[ 7/4 → 2/1 | note:e decay:0.5 ]",
|
||||
"[ 2/1 → 9/4 | note:f decay:0.5 ]",
|
||||
"[ 9/4 → 5/2 | note:a decay:0.5 ]",
|
||||
"[ 5/2 → 21/8 | note:c decay:0.25 ]",
|
||||
"[ 21/8 → 11/4 | note:d decay:0.25 ]",
|
||||
"[ 11/4 → 3/1 | note:e decay:0.5 ]",
|
||||
"[ 3/1 → 13/4 | note:f decay:0.5 ]",
|
||||
"[ 13/4 → 7/2 | note:a decay:0.5 ]",
|
||||
"[ 7/2 → 29/8 | note:c decay:0.25 ]",
|
||||
"[ 29/8 → 15/4 | note:d decay:0.25 ]",
|
||||
"[ 15/4 → 4/1 | note:e decay:0.5 ]",
|
||||
]
|
||||
`;
|
||||
|
||||
exports[`runs examples > example "seed" example index 0 1`] = `
|
||||
[
|
||||
"[ 0/1 → 1/4 | s:bd ]",
|
||||
|
||||
Reference in New Issue
Block a user