Commit Graph

1480 Commits

Author SHA1 Message Date
Felix Roos 126e45af9a move onTriggerTime back to pattern.mjs 2026-10-11 21:59:07 +02:00
Felix Roos a6943f1eeb minor renames 2026-10-11 21:23:01 +02:00
Felix Roos 4a0d9de664 rename repl defaultOutput to onSchedule, error when defaultOutput is
passed. also rename xScheduler to xOutput, to be consistent with
webaudioOutput and friends
2026-10-11 20:54:50 +02:00
Felix Roos 7f486556c6 add getClockTime to get current seconds on scheduler clock 2026-10-11 18:36:06 +02:00
Felix Roos 9eebf0ad21 Merge remote-tracking branch 'origin/main' into trigger-refactor 2026-10-11 15:23:01 +02:00
froos d97e91e928 Merge pull request 'Add cyclestruct function' (#2107) from tzwaan/cyclestruct into main
Reviewed-on: https://codeberg.org/uzu/strudel/pulls/2107
2026-10-11 13:44:26 +02:00
froos e78cc85ad7 Merge pull request 'document undocumented things' (#1996) from tyow/localstrudel:jsdocs into main
Reviewed-on: https://codeberg.org/uzu/strudel/pulls/1996
2026-10-11 13:26:54 +02:00
froos 2b5f31f605 Merge pull request 'Negative steps change euclid into euclidLegato and vice versa' (#2099) from tzwaan/euclid-legato-notation into main
Reviewed-on: https://codeberg.org/uzu/strudel/pulls/2099
2026-10-11 11:20:54 +02:00
Tijmen Zwaan c7d0f15826 Rename cyclestruct to isobite with synonyms and add some examples 2026-10-09 22:17:10 +02:00
Tijmen Zwaan 60ac02905d Add cyclestruct function 2026-10-09 21:13:23 +02:00
tyow 5148066b01 stackCenter/Centre changes, fix from merge, snapshot 2026-10-07 16:44:43 -04:00
tyow 29a4e30042 Merge main into jsdocs 2026-10-07 16:30:41 -04:00
Tijmen Zwaan a1be663b15 Add error handling to stack so non-broken patterns continue playing 2026-09-28 23:44:34 +02:00
Tijmen Zwaan ecc7bc078c Fix formatting 2026-08-22 00:12:13 +02:00
Tijmen Zwaan 078aa60779 Allow euclid pulses > steps to stretch the rhythm over multiple cycles
Also fix a bug in euclidLegato where the rotation offset would be
applied to the whole source pattern, instead of the euclid structure.
2026-08-21 23:58:47 +02:00
Tijmen Zwaan d7384dfc3d Negative steps change euclid into euclidLegato and vice versa
Also fix that euclidLegato did not support negative pulses for inversion
2026-08-21 23:58:46 +02:00
Felix Roos d7fb9fe992 add onSchedule with simpler args to replace onTrigger 2026-08-19 18:07:55 +02:00
froos 5cf7571b77 Merge branch 'main' into mode-above-fix 2026-08-13 22:37:20 +02:00
froos b2aeaa56c1 Merge pull request 'Fix falsy value check in getFreqeuncy' (#2054) from jouae/strudel:fix-falsy-check into main
Reviewed-on: https://codeberg.org/uzu/strudel/pulls/2054
2026-08-13 21:54:47 +02:00
Tijmen Zwaan 20d925c10c Add tests for randrun and negative time test for run 2026-08-13 04:13:28 +02:00
Tijmen Zwaan 07f01c237f Add tests for slowcat, slowcatPrime and arp 2026-08-13 01:04:48 +02:00
Tijmen Zwaan 76fa8264cd Remove old check in slowcat and add empty check at the start 2026-08-13 01:04:25 +02:00
Tijmen Zwaan 08dc5e2c5c Add tests for all signals using modulo, including negative time 2026-08-13 01:03:14 +02:00
Tijmen Zwaan bd54c8003a Introduce isquare and isquare2 for signal parity 2026-08-13 01:00:56 +02:00
Tijmen Zwaan 9bf3249e82 slowcatPrime pat can no longer be undefined 2026-08-05 00:25:08 +02:00
Tijmen Zwaan eafa2f17ec Fix the same modulo bug in arp and slowcatPrime 2026-08-04 18:03:12 +02:00
Tijmen Zwaan 429682735d Formatting 2026-08-04 17:25:45 +02:00
Tijmen Zwaan 04232370c2 Apply the same fix to square and randrun 2026-08-04 17:11:52 +02:00
Tijmen Zwaan 4484ee4e80 Fix saw and isaw returning negative numbers on negative t 2026-08-04 16:52:47 +02:00
tyow 704018f774 preform/perform, mod 2026-07-21 22:48:28 -04:00
Martyn Eggleton 6870b04fb2 Pretty code now 2026-06-21 13:49:11 +01:00
Alex McLean 2b2646a768 Merge branch 'main' into base-function 2026-06-21 14:34:18 +02:00
alex 813cc6c190 format 2026-06-18 12:04:03 +01:00
alex 62d4f84e69 add growlist 2026-06-18 10:55:34 +01:00
eefano e38811d325 oldabove and oldroot, documentation 2026-06-08 21:09:23 +02:00
Martyn Eggleton 475f17ddfd base now accepts Arrays which improve compatibility with rockstar-strudel 2026-06-03 21:56:26 +01:00
Martyn Eggleton bd68c6a0a7 Documentation tweak 2026-06-03 12:36:41 +01:00
Martyn Eggleton f21aeb55bd The base param can be a pattern. We also add a max number of digits to produce for each n 2026-06-01 14:02:20 +01:00
Martyn Eggleton d83139980b Creates a pattern of numbers in base x from a number or pattern of numbers 2026-05-27 21:23:55 +01:00
jouae fe0be6bc53 Fix falsy value check in getFreqeuncy
|| operator, which causes 0 to be treated as falsy and thus not passed
to getFreq, resulting in incorrect frequency calculation for MIDI note
0.

Replace || with ?? to allow 0 to be correctly passed to getFreq.
2026-05-17 11:49:09 +08:00
froos f73b395648 Merge pull request 'Add error for when name arg in register is a pattern' (#2020) from tyow/localstrudel:registerErrorFix into main
Reviewed-on: https://codeberg.org/uzu/strudel/pulls/2020
2026-05-07 11:46:59 +02:00
froos 9c47efd3cf Merge pull request 'docs: note that all/each require labeled patterns' (#2015) from bwagner/strudel:fix/all-unlabeled-pattern-docs into main
Reviewed-on: https://codeberg.org/uzu/strudel/pulls/2015
2026-05-07 11:28:31 +02:00
Felix Roos 0e81987c4e Merge remote-tracking branch 'origin/main' into lu/flux 2026-05-07 10:36:11 +02:00
tyow d5171e2ab7 named things 2026-04-29 15:35:05 -04:00
tyow 81257b5f06 lt,gt,lte,etc. 2026-04-29 15:30:32 -04:00
tyow 0d73c02314 format 2026-03-26 01:10:42 -04:00
tyow 3dff15eab0 readded chooseIn due to mondough using it 2026-03-25 15:36:26 -04:00
tyow 8f1a0840c0 edit dry tags to add to reference 2026-03-25 14:07:10 -04:00
tyow ae32743f12 format 2026-03-13 14:11:38 -04:00
tyow 7294cd5443 Add error for when name arg in register is a pattern 2026-03-13 14:11:19 -04:00