refactor: legato -> clip
This commit is contained in:
parent
5e90021698
commit
260b831815
10 changed files with 3333 additions and 3107 deletions
|
|
@ -1588,42 +1588,42 @@ exports[`runs examples > example "echo" example index 0 1`] = `
|
|||
|
||||
exports[`runs examples > example "echoWith" example index 0 1`] = `
|
||||
[
|
||||
"[ 0/1 → 1/5 | note:C3 ]",
|
||||
"[ -3/8 ⇜ (0/1 → 1/40) ⇝ -11/40 | note:Bb3 ]",
|
||||
"[ (1/8 → 3/10) ⇝ 13/40 | note:Eb3 ]",
|
||||
"[ -1/4 ⇜ (0/1 → 1/20) ⇝ -3/20 | note:D4 ]",
|
||||
"[ (1/4 → 2/5) ⇝ 9/20 | note:G3 ]",
|
||||
"[ -1/8 ⇜ (0/1 → 3/40) ⇝ -1/40 | note:F4 ]",
|
||||
"[ (3/8 → 1/2) ⇝ 23/40 | note:Bb3 ]",
|
||||
"[ 1/1 → 11/10 | note:Eb3 ]",
|
||||
"[ 3/2 → 8/5 | note:G3 ]",
|
||||
"[ 1/8 ⇜ (1/1 → 41/40) ⇝ 13/40 | note:Eb3 ]",
|
||||
"[ 9/8 → 49/40 | note:G3 ]",
|
||||
"[ (13/8 → 17/10) ⇝ 69/40 | note:Bb3 ]",
|
||||
"[ 1/4 ⇜ (1/1 → 21/20) ⇝ 9/20 | note:G3 ]",
|
||||
"[ 5/4 → 27/20 | note:Bb3 ]",
|
||||
"[ (7/4 → 9/5) ⇝ 37/20 | note:D4 ]",
|
||||
"[ 3/8 ⇜ (1/1 → 43/40) ⇝ 23/40 | note:Bb3 ]",
|
||||
"[ 11/8 → 59/40 | note:D4 ]",
|
||||
"[ (15/8 → 19/10) ⇝ 79/40 | note:F4 ]",
|
||||
"[ 2/1 → 11/5 | note:C3 ]",
|
||||
"[ 13/8 ⇜ (2/1 → 81/40) ⇝ 69/40 | note:Bb3 ]",
|
||||
"[ (17/8 → 23/10) ⇝ 93/40 | note:Eb3 ]",
|
||||
"[ 7/4 ⇜ (2/1 → 41/20) ⇝ 37/20 | note:D4 ]",
|
||||
"[ (9/4 → 12/5) ⇝ 49/20 | note:G3 ]",
|
||||
"[ 15/8 ⇜ (2/1 → 83/40) ⇝ 79/40 | note:F4 ]",
|
||||
"[ (19/8 → 5/2) ⇝ 103/40 | note:Bb3 ]",
|
||||
"[ 3/1 → 31/10 | note:Eb3 ]",
|
||||
"[ 7/2 → 18/5 | note:G3 ]",
|
||||
"[ 17/8 ⇜ (3/1 → 121/40) ⇝ 93/40 | note:Eb3 ]",
|
||||
"[ 25/8 → 129/40 | note:G3 ]",
|
||||
"[ (29/8 → 37/10) ⇝ 149/40 | note:Bb3 ]",
|
||||
"[ 9/4 ⇜ (3/1 → 61/20) ⇝ 49/20 | note:G3 ]",
|
||||
"[ 13/4 → 67/20 | note:Bb3 ]",
|
||||
"[ (15/4 → 19/5) ⇝ 77/20 | note:D4 ]",
|
||||
"[ 19/8 ⇜ (3/1 → 123/40) ⇝ 103/40 | note:Bb3 ]",
|
||||
"[ 27/8 → 139/40 | note:D4 ]",
|
||||
"[ (31/8 → 39/10) ⇝ 159/40 | note:F4 ]",
|
||||
"[ 0/1 → 1/1 | note:C3 clip:0.2 ]",
|
||||
"[ -3/8 ⇜ (0/1 → 1/8) | note:Bb3 clip:0.2 ]",
|
||||
"[ (1/8 → 1/1) ⇝ 9/8 | note:Eb3 clip:0.2 ]",
|
||||
"[ -1/4 ⇜ (0/1 → 1/4) | note:D4 clip:0.2 ]",
|
||||
"[ (1/4 → 1/1) ⇝ 5/4 | note:G3 clip:0.2 ]",
|
||||
"[ -1/8 ⇜ (0/1 → 3/8) | note:F4 clip:0.2 ]",
|
||||
"[ (3/8 → 1/1) ⇝ 11/8 | note:Bb3 clip:0.2 ]",
|
||||
"[ 1/1 → 3/2 | note:Eb3 clip:0.2 ]",
|
||||
"[ 3/2 → 2/1 | note:G3 clip:0.2 ]",
|
||||
"[ 1/8 ⇜ (1/1 → 9/8) | note:Eb3 clip:0.2 ]",
|
||||
"[ 9/8 → 13/8 | note:G3 clip:0.2 ]",
|
||||
"[ (13/8 → 2/1) ⇝ 17/8 | note:Bb3 clip:0.2 ]",
|
||||
"[ 1/4 ⇜ (1/1 → 5/4) | note:G3 clip:0.2 ]",
|
||||
"[ 5/4 → 7/4 | note:Bb3 clip:0.2 ]",
|
||||
"[ (7/4 → 2/1) ⇝ 9/4 | note:D4 clip:0.2 ]",
|
||||
"[ 3/8 ⇜ (1/1 → 11/8) | note:Bb3 clip:0.2 ]",
|
||||
"[ 11/8 → 15/8 | note:D4 clip:0.2 ]",
|
||||
"[ (15/8 → 2/1) ⇝ 19/8 | note:F4 clip:0.2 ]",
|
||||
"[ 2/1 → 3/1 | note:C3 clip:0.2 ]",
|
||||
"[ 13/8 ⇜ (2/1 → 17/8) | note:Bb3 clip:0.2 ]",
|
||||
"[ (17/8 → 3/1) ⇝ 25/8 | note:Eb3 clip:0.2 ]",
|
||||
"[ 7/4 ⇜ (2/1 → 9/4) | note:D4 clip:0.2 ]",
|
||||
"[ (9/4 → 3/1) ⇝ 13/4 | note:G3 clip:0.2 ]",
|
||||
"[ 15/8 ⇜ (2/1 → 19/8) | note:F4 clip:0.2 ]",
|
||||
"[ (19/8 → 3/1) ⇝ 27/8 | note:Bb3 clip:0.2 ]",
|
||||
"[ 3/1 → 7/2 | note:Eb3 clip:0.2 ]",
|
||||
"[ 7/2 → 4/1 | note:G3 clip:0.2 ]",
|
||||
"[ 17/8 ⇜ (3/1 → 25/8) | note:Eb3 clip:0.2 ]",
|
||||
"[ 25/8 → 29/8 | note:G3 clip:0.2 ]",
|
||||
"[ (29/8 → 4/1) ⇝ 33/8 | note:Bb3 clip:0.2 ]",
|
||||
"[ 9/4 ⇜ (3/1 → 13/4) | note:G3 clip:0.2 ]",
|
||||
"[ 13/4 → 15/4 | note:Bb3 clip:0.2 ]",
|
||||
"[ (15/4 → 4/1) ⇝ 17/4 | note:D4 clip:0.2 ]",
|
||||
"[ 19/8 ⇜ (3/1 → 27/8) | note:Bb3 clip:0.2 ]",
|
||||
"[ 27/8 → 31/8 | note:D4 clip:0.2 ]",
|
||||
"[ (31/8 → 4/1) ⇝ 35/8 | note:F4 clip:0.2 ]",
|
||||
]
|
||||
`;
|
||||
|
||||
|
|
@ -3486,30 +3486,30 @@ exports[`runs examples > example "samples" example index 1 1`] = `
|
|||
|
||||
exports[`runs examples > example "saw" example index 0 1`] = `
|
||||
[
|
||||
"[ 0/1 → 1/32 | note:c3 ]",
|
||||
"[ 1/4 → 9/32 | note:eb3 ]",
|
||||
"[ 1/4 → 9/32 | note:g3 ]",
|
||||
"[ 1/2 → 17/32 | note:g2 ]",
|
||||
"[ 3/4 → 25/32 | note:g3 ]",
|
||||
"[ 3/4 → 25/32 | note:bb3 ]",
|
||||
"[ 1/1 → 35/32 | note:c3 ]",
|
||||
"[ 5/4 → 43/32 | note:eb3 ]",
|
||||
"[ 5/4 → 43/32 | note:g3 ]",
|
||||
"[ 3/2 → 51/32 | note:g2 ]",
|
||||
"[ 7/4 → 59/32 | note:g3 ]",
|
||||
"[ 7/4 → 59/32 | note:bb3 ]",
|
||||
"[ 2/1 → 69/32 | note:c3 ]",
|
||||
"[ 9/4 → 77/32 | note:eb3 ]",
|
||||
"[ 9/4 → 77/32 | note:g3 ]",
|
||||
"[ 5/2 → 85/32 | note:g2 ]",
|
||||
"[ 11/4 → 93/32 | note:g3 ]",
|
||||
"[ 11/4 → 93/32 | note:bb3 ]",
|
||||
"[ 3/1 → 103/32 | note:c3 ]",
|
||||
"[ 13/4 → 111/32 | note:eb3 ]",
|
||||
"[ 13/4 → 111/32 | note:g3 ]",
|
||||
"[ 7/2 → 119/32 | note:g2 ]",
|
||||
"[ 15/4 → 127/32 | note:g3 ]",
|
||||
"[ 15/4 → 127/32 | note:bb3 ]",
|
||||
"[ 0/1 → 1/4 | note:c3 clip:0.03125 ]",
|
||||
"[ 1/4 → 1/2 | note:eb3 clip:0.09375 ]",
|
||||
"[ 1/4 → 1/2 | note:g3 clip:0.09375 ]",
|
||||
"[ 1/2 → 3/4 | note:g2 clip:0.15625 ]",
|
||||
"[ 3/4 → 1/1 | note:g3 clip:0.21875 ]",
|
||||
"[ 3/4 → 1/1 | note:bb3 clip:0.21875 ]",
|
||||
"[ 1/1 → 5/4 | note:c3 clip:0.28125 ]",
|
||||
"[ 5/4 → 3/2 | note:eb3 clip:0.34375 ]",
|
||||
"[ 5/4 → 3/2 | note:g3 clip:0.34375 ]",
|
||||
"[ 3/2 → 7/4 | note:g2 clip:0.40625 ]",
|
||||
"[ 7/4 → 2/1 | note:g3 clip:0.46875 ]",
|
||||
"[ 7/4 → 2/1 | note:bb3 clip:0.46875 ]",
|
||||
"[ 2/1 → 9/4 | note:c3 clip:0.53125 ]",
|
||||
"[ 9/4 → 5/2 | note:eb3 clip:0.59375 ]",
|
||||
"[ 9/4 → 5/2 | note:g3 clip:0.59375 ]",
|
||||
"[ 5/2 → 11/4 | note:g2 clip:0.65625 ]",
|
||||
"[ 11/4 → 3/1 | note:g3 clip:0.71875 ]",
|
||||
"[ 11/4 → 3/1 | note:bb3 clip:0.71875 ]",
|
||||
"[ 3/1 → 13/4 | note:c3 clip:0.78125 ]",
|
||||
"[ 13/4 → 7/2 | note:eb3 clip:0.84375 ]",
|
||||
"[ 13/4 → 7/2 | note:g3 clip:0.84375 ]",
|
||||
"[ 7/2 → 15/4 | note:g2 clip:0.90625 ]",
|
||||
"[ 15/4 → 4/1 | note:g3 clip:0.96875 ]",
|
||||
"[ 15/4 → 4/1 | note:bb3 clip:0.96875 ]",
|
||||
]
|
||||
`;
|
||||
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -221,7 +221,7 @@ export const testCycles = {
|
|||
festivalOfFingers: 16,
|
||||
festivalOfFingers2: 22,
|
||||
undergroundPlumber: 20,
|
||||
bridgeIsOver: 16,
|
||||
bridgeIsOver: 8,
|
||||
goodTimes: 16,
|
||||
echoPiano: 8,
|
||||
sml1: 48,
|
||||
|
|
|
|||
|
|
@ -364,7 +364,7 @@ export const customTrigger = `// licensed with CC BY-NC-SA 4.0 https://creativec
|
|||
// by Felix Roos
|
||||
stack(
|
||||
freq("55 [110,165] 110 [220,275]".mul("<1 <3/4 2/3>>").struct("x(3,8)").layer(x=>x.mul("1.006,.995"))),
|
||||
freq("440(5,8)".legato(.18).mul("<1 3/4 2 2/3>")).gain(perlin.range(.2,.8))
|
||||
freq("440(5,8)".clip(.18).mul("<1 3/4 2 2/3>")).gain(perlin.range(.2,.8))
|
||||
).s("<sawtooth square>/2")
|
||||
.onTrigger((t,hap,ct)=>{
|
||||
const ac = Tone.getContext().rawContext;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue