This commit is contained in:
2023-08-21 12:09:14 +02:00
parent 0c42089303
commit d7bdd3508f
2 changed files with 2 additions and 2 deletions

View File

@ -1106,7 +1106,7 @@ export class UserAPI {
*/
const period = 1 / freq;
const t = (Date.now() / 1000 + offset) % period;
return t / period < dutyCycle ? 1 : -1;
return t / period < duty ? 1 : -1;
};
usquare = (

View File

@ -36,7 +36,7 @@ mod(0.25) :: sound('sawtooth')
pick(60, 67, 63) - 12 + 5, pick(60, 67, 63) - 12 + 5,
pick(60, 67, 63) - 12 + 7, pick(60, 67, 63) - 12 + 7) + (sometimes() ? 24 : 12))
.dur(0.1).fmi(8).fmh(4).room(0.9)
.gain(0.25).cutoff(500 + usine(8) * 10000)
.gain(0.75).cutoff(500 + usine(8) * 10000)
.delay(0.5).delaytime(bpm() / 60 / 4 / 3)
.delayfeedback(0.25)
.out()