Compare commits

..

670 Commits

Author SHA1 Message Date
Felix Roos 3e988d1125 support n / note in getPlayableNoteValue 2022-04-22 13:48:53 +02:00
alex 1029f8674c fix the fix for echo 2022-04-22 12:35:43 +01:00
alex c801660b2a use rational multiplication in echo 2022-04-22 12:30:16 +01:00
alex 48d4541ed7 build 2022-04-22 12:12:11 +01:00
Alex McLean 8007ea6a7e Merge pull request #83 from tidalcycles/pattern-composers
Add pattern composers, implements #82
2022-04-22 12:08:11 +01:00
alex 8e441ecb19 fix striate: union -> set 2022-04-22 12:07:23 +01:00
alex c305e82f5c Merge branch 'main' into pattern-composers 2022-04-22 11:52:36 +01:00
alex 87cfa30508 Extra test for ply (and prettify) 2022-04-22 11:51:41 +01:00
alex 2c224d5092 Make comparisons rational in _compress 2022-04-22 11:46:34 +01:00
Felix Roos 72eeaf446e fix: cycleArg imprecise fraction operation 2022-04-22 12:40:23 +02:00
Felix Roos 51a806b0ba Merge branch 'main' of https://github.com/tidalcycles/strudel 2022-04-22 11:49:42 +02:00
Felix Roos 52840f9141 add tune + fix another 2022-04-22 11:48:57 +02:00
alex 974503160d squeezeflip, tests for add including failing one.. 2022-04-22 09:51:44 +01:00
alex d9e3ff3256 Tests for set, setFlip and setSqueeze 2022-04-22 09:27:23 +01:00
alex b510ab0371 Make set work for primative patterns, allow ops accept sequence 2022-04-22 09:26:39 +01:00
Felix Roos 5eba78d795 Merge pull request #84 from mindofmatthew/tidying
Tidy up a couple of old files
2022-04-21 20:57:45 +02:00
Matthew Kaney 884c13a22d Remove old files 2022-04-21 13:14:37 -04:00
Alex McLean 90c5605409 Merge pull request #76 from tidalcycles/more-functions
add `striate()`
2022-04-21 14:21:29 +01:00
alex 3ae6443c59 Tidy test and console logs 2022-04-21 14:17:28 +01:00
alex b370c405da Add pattern composers, implements #82 2022-04-21 14:13:26 +01:00
Felix Roos 36d1a68b9a build 2022-04-20 20:22:50 +02:00
Felix Roos 58bbbecb2d package-lock 2022-04-20 20:19:56 +02:00
Felix Roos 1cdff32b5c Merge pull request #77 from tidalcycles/webaudio-compat
Webaudio in REPL
2022-04-20 20:17:26 +02:00
Felix Roos 7dbdb005b0 fix adsr + add example tune 2022-04-20 20:15:36 +02:00
Felix Roos e6c15dc3c5 add waa example 2022-04-19 21:46:44 +02:00
Felix Roos 1778d19bde Merge remote-tracking branch 'origin/main' into webaudio-compat 2022-04-19 21:35:08 +02:00
alex 56c3c0462c build 2022-04-19 18:16:00 +01:00
Alex McLean 80102353d6 Merge pull request #80 from tidalcycles/webserial
Basic webserial support
2022-04-19 14:31:34 +01:00
alex d7dc158861 Tidy up 2022-04-19 14:28:16 +01:00
alex b52c42c31d First go at serial output 2022-04-19 13:40:01 +01:00
Felix Roos f8739e341b respect midi numbers 2022-04-18 18:57:28 +02:00
Felix Roos 1ead12a2a3 patternify filter 2022-04-18 18:57:02 +02:00
Felix Roos c2feb6e214 remove logs 2022-04-18 18:45:18 +02:00
Felix Roos 3d74b8a2fa Merge commit '83a46c68dc6583ad36b256bc0d03e0913ecbc1f0' into webaudio-compat 2022-04-18 18:33:47 +02:00
Felix Roos 83a46c68dc webaudio@0.0.6 2022-04-18 15:03:11 +02:00
Felix Roos bcefce9df7 package-lock 2022-04-18 14:54:19 +02:00
Felix Roos dcb5af3339 fix: core imports in scheduler 2022-04-18 14:51:47 +02:00
alex 1d56d79757 add striate() 2022-04-17 23:18:01 +01:00
alex 0b370bd40d Make intersection_e actually raise an exception 2022-04-17 18:38:34 +01:00
alex 07a5ae83b5 build 2022-04-17 18:31:20 +01:00
Alex McLean cc60addbaa Merge pull request #75 from tidalcycles/more-tests
Try to fix appLeft / appRight
2022-04-17 18:29:48 +01:00
alex 30b7429169 Fix appLeft/appRight to discard nonmatching events 2022-04-17 18:28:55 +01:00
alex 28ebf6559e Fix steady() 2022-04-17 18:25:38 +01:00
alex 1c6e3dd9a6 A couple of tests for continuous haps/patterns 2022-04-17 18:23:34 +01:00
Felix Roos 6bba661e24 experiment with passing time to withAudioNode 2022-04-17 12:01:13 +02:00
alex eccb20c3b7 Fix choose and add weighted wchoose 2022-04-16 23:23:15 +01:00
Felix Roos f210c4425b make webaudio compatible with repl
+ rename osc to wave
+ migrate repl.html
2022-04-16 21:39:14 +02:00
Felix Roos e0e3ab941e remove experimental tone tutorial 2022-04-16 21:38:23 +02:00
Felix Roos 9cc568fe3e remove tonejs experimental features 2022-04-16 21:36:10 +02:00
Felix Roos a638f9505f test fromMidi + getFrequency 2022-04-16 21:34:19 +02:00
Felix Roos 1b35dd0c55 add preliminary getFrequency 2022-04-16 21:34:05 +02:00
alex d394b4939f build 2022-04-16 18:34:11 +01:00
alex c751d4eb79 Make sure random numbers are positive 2022-04-16 18:32:17 +01:00
alex bb147abb7f Merge branch 'main' of github.com:tidalcycles/strudel 2022-04-16 15:06:02 +01:00
alex 1c3793e2ef Add someCycles and someCyclesBy 2022-04-16 15:05:56 +01:00
alex 1274641f89 Tweak applicative 2022-04-16 15:05:37 +01:00
Felix Roos 803b50535f add repl link 2022-04-16 15:49:40 +02:00
Felix Roos 028af735c9 remove mini for now 2022-04-16 15:46:48 +02:00
Felix Roos d42cd6efaf Publish
- @strudel.cycles/mini@0.0.7
 - @strudel.cycles/webaudio@0.0.5
2022-04-16 15:37:05 +02:00
Felix Roos 2cf129408b use skypack in example 2022-04-16 15:36:49 +02:00
Felix Roos 0ed1c75c38 fix core dependency 2022-04-16 15:35:01 +02:00
Felix Roos 5588b62b40 Publish
- @strudel.cycles/webaudio@0.0.4
2022-04-16 15:24:40 +02:00
Felix Roos 03cb80b75b add core dependeny 2022-04-16 15:24:24 +02:00
Felix Roos 86a3fd6e22 Publish
- @strudel.cycles/webaudio@0.0.3
2022-04-16 15:17:30 +02:00
Felix Roos 27ebe7ba73 stub change 2022-04-16 15:17:02 +02:00
Felix Roos 0ce2dcacef Publish
- @strudel.cycles/core@0.0.5
 - @strudel.cycles/eval@0.0.5
 - @strudel.cycles/midi@0.0.6
 - @strudel.cycles/mini@0.0.6
 - @strudel.cycles/tonal@0.0.5
 - @strudel.cycles/tone@0.0.6
 - @strudel.cycles/xen@0.0.5
2022-04-16 15:14:29 +02:00
Felix Roos 6c8fc6bb21 core publish 2022-04-16 15:12:06 +02:00
Felix Roos 0e26d4e741 Publish
- @strudel.cycles/core@0.0.4
 - @strudel.cycles/eval@0.0.4
 - @strudel.cycles/midi@0.0.5
 - @strudel.cycles/mini@0.0.5
 - @strudel.cycles/osc@0.0.2
 - @strudel.cycles/tonal@0.0.4
 - @strudel.cycles/tone@0.0.5
 - @strudel.cycles/webaudio@0.0.2
 - @strudel.cycles/xen@0.0.4
2022-04-16 15:10:49 +02:00
alex 3d6f01c872 build 2022-04-16 12:39:02 +01:00
alex 4894588284 fix degrade/undegrade 2022-04-16 12:37:47 +01:00
alex 7adea0ac65 build 2022-04-16 12:29:05 +01:00
Alex McLean 138c84cd5f Merge pull request #74 from tidalcycles/more-functions
More random functions
2022-04-16 12:26:57 +01:00
alex d283791f77 Merge branch 'more-functions' of github.com:tidalcycles/strudel into more-functions 2022-04-16 12:24:27 +01:00
alex 911d9d17d6 undegrade, sometimes, sometimesBy, sometimesByPre, often, rarely, almostNever, almostAlways, never, always 2022-04-16 12:19:42 +01:00
alex 8abbaf2e56 undegrade, sometimes, sometimesBy, sometimesByPre, often, rarely, almostNever, almostAlways, never, always 2022-04-16 12:18:44 +01:00
alex dca8b46abf add degrade/degradeBy 2022-04-16 11:40:47 +01:00
Alex McLean 2b968c4387 Merge pull request #73 from tidalcycles/more-functions
Port `perlin` noise, `rangex`, and `palindrome`
2022-04-16 10:13:25 +01:00
alex c88508ace3 tidy 2022-04-16 10:12:01 +01:00
alex b4adbcd6cb Merge branch 'main' into more-functions 2022-04-16 10:10:00 +01:00
alex 031b93f062 fix palindrome 2022-04-16 10:09:47 +01:00
alex f1ac9c4443 perlin noise 2022-04-16 10:03:00 +01:00
alex 544e32e0f8 add 'constant' 2022-04-16 10:02:35 +01:00
Felix Roos f8f806e8eb Merge pull request #26 from tidalcycles/webaudio
webaudio package
2022-04-16 10:26:06 +02:00
Felix Roos 2aed40d99b add example info 2022-04-16 10:24:09 +02:00
Felix Roos d0443a7f41 Merge remote-tracking branch 'origin/HEAD' into webaudio 2022-04-16 10:21:41 +02:00
Felix Roos 1d83ad5282 add randomBells 2022-04-16 00:13:18 +02:00
alex 8fda84c15a palindrome 2022-04-15 22:42:03 +01:00
alex 939bc643be rangex 2022-04-15 22:41:39 +01:00
alex c163039c6e build 2022-04-15 22:06:02 +01:00
Felix Roos 9c6652b19d remove old imports 2022-04-15 21:45:55 +02:00
Felix Roos 2510399017 Merge remote-tracking branch 'origin/HEAD' into webaudio 2022-04-15 20:54:33 +02:00
Felix Roos 9d2cbbaa2c fix notes example 2022-04-15 20:40:58 +02:00
Alex McLean f47d4d0c9d Merge pull request #70 from tidalcycles/more-functions
More randomness, fix `rand`, and add `brand`, `irand` and `choose`
2022-04-15 19:18:06 +01:00
alex f41d89515c Merge branch 'main' into more-functions 2022-04-15 19:15:32 +01:00
alex ea16d6b050 Add choose, fix rand to be unipolar. 2022-04-15 16:05:48 +01:00
alex 19f7dc1657 add brand (boolean rand) and brandBy 2022-04-15 15:05:30 +01:00
alex b674014377 Ignore continuous haps (those without a whole) 2022-04-15 15:04:16 +01:00
Alex McLean 802ed9d481 Merge pull request #69 from tidalcycles/more-functions
First effort at rand()
2022-04-15 10:29:51 +01:00
alex 1f1b20041c Merge branch 'main' of github.com:tidalcycles/strudel into more-functions 2022-04-15 10:15:12 +01:00
alex 3ae0762f62 First effort at rand() 2022-04-15 10:14:51 +01:00
Felix Roos 233cc4bdc4 update task instructions 2022-04-15 09:33:46 +02:00
Felix Roos 8dde34565a add speakerman 2022-04-14 19:06:33 +02:00
Felix Roos 14774ae687 build 2022-04-14 18:26:53 +02:00
Felix Roos ed4156530b add build script 2022-04-14 18:18:53 +02:00
Felix Roos 45e8cd104b package-lock 2022-04-14 17:42:51 +02:00
Felix Roos fc195eae1e Merge pull request #68 from tidalcycles/osc-fixed
use new fixed version of osc-js package
2022-04-14 17:41:18 +02:00
Felix Roos 18d8049f37 use new fixed version of osc-js package 2022-04-14 17:37:44 +02:00
Felix Roos ff32485f67 fix header 2022-04-14 00:35:15 +02:00
Felix Roos d718eb0be2 add readme 2022-04-14 00:32:45 +02:00
Felix Roos 325eec2c6f refactor scheduler constructor + add onEvent 2022-04-14 00:32:41 +02:00
Felix Roos 5629c0ee72 npm i 2022-04-14 00:32:09 +02:00
Felix Roos db20ff93c7 fix lockfile 2022-04-14 00:15:27 +02:00
Felix Roos 192eb28ac7 Merge remote-tracking branch 'origin/main' into webaudio 2022-04-14 00:12:47 +02:00
Felix Roos 02738a0694 Merge pull request #67 from tidalcycles/speak
Speech output
2022-04-14 00:09:17 +02:00
Felix Roos 61892bdf3d fix minirepl import 2022-04-13 23:58:51 +02:00
Felix Roos 02ece1183e export patternify 2022-04-13 23:58:44 +02:00
Felix Roos 38fe310a7c fix import 2022-04-13 23:58:34 +02:00
Felix Roos 70fbbd65e9 Merge remote-tracking branch 'origin/main' into speak 2022-04-13 23:58:24 +02:00
Alex McLean 2973223fb1 Merge pull request #62 from tidalcycles/tidy-modules
Separate out strudel.mjs, make index.mjs aggregate module
2022-04-13 22:55:32 +01:00
Felix Roos 1dd19c0831 add speak output 2022-04-13 23:25:55 +02:00
Felix Roos 16e2c97e0c export patternify helpers 2022-04-13 23:25:18 +02:00
alex 050296d0c2 make separate signal module 2022-04-13 17:41:48 +01:00
alex f75da0e2e3 separate out strudel.mjs, make index.mjs aggregate module 2022-04-13 17:25:02 +01:00
Alex McLean 0396c3f475 Merge pull request #61 from tidalcycles/more-functions
More functions
2022-04-13 16:26:45 +01:00
alex 97044fee16 build 2022-04-13 16:25:58 +01:00
alex ca4bffe5a1 compress 2022-04-13 16:20:34 +01:00
alex 0df67fa920 patternify zoom 2022-04-13 16:04:57 +01:00
alex ec3371c4ff Allow linger to accept non-fractions 2022-04-13 15:59:36 +01:00
alex dcc5f66691 Merge branch 'main' of github.com:tidalcycles/strudel into more-functions 2022-04-13 15:51:36 +01:00
alex ec10f349bd Add _zoom and linger 2022-04-13 15:51:23 +01:00
Alex McLean 3b9e854042 Merge pull request #56 from tidalcycles/more-functions
More functions
2022-04-13 09:04:29 +01:00
alex 9eba883978 move some utilities to utils.mjs 2022-04-13 09:03:31 +01:00
alex fb826bed70 sort classes to top of export list 2022-04-13 08:44:38 +01:00
alex 2797856f50 sort exports 2022-04-13 08:40:04 +01:00
alex ad69fa19b6 Prettify 2022-04-13 08:38:08 +01:00
Felix Roos 2060e86875 add queryArc + update readme 2022-04-13 00:25:53 +02:00
Felix Roos 87605ca25e Merge branch 'main' of https://github.com/tidalcycles/strudel 2022-04-13 00:15:39 +02:00
Felix Roos 3cd10bf4b3 package-lock 2022-04-13 00:15:36 +02:00
Felix Roos 6bdb0fee55 fix server import 2022-04-13 00:15:09 +02:00
Felix Roos 42e2531e8d readme additions 2022-04-13 00:09:04 +02:00
Felix Roos 171f845069 add setup script 2022-04-12 23:54:56 +02:00
Felix Roos f9b043dc7e remove osc-js folder + remove umd stuff 2022-04-12 23:54:13 +02:00
Felix Roos e069e66952 patch osc for client 2022-04-12 23:42:46 +02:00
Felix Roos c9d7a2f313 osc instructions 2022-04-12 22:58:13 +02:00
alex c69af72060 Merge branch 'main' of github.com:tidalcycles/strudel 2022-04-12 21:49:32 +01:00
alex 4111a12cbf hard temporary fork of osc-js 2022-04-12 21:48:48 +01:00
alex 57c1c4e016 more info 2022-04-12 21:48:29 +01:00
alex 324dcd7ef8 use local osc.js 2022-04-12 21:48:11 +01:00
Felix Roos c604f920a0 add root scripts 2022-04-12 20:14:48 +02:00
Felix Roos f8cbd67557 fix: disable highlighting 2022-04-12 20:14:08 +02:00
alex 3c31891774 Add range2 2022-04-12 17:53:40 +01:00
alex 0e5dc4f368 add range 2022-04-12 17:48:09 +01:00
alex e75d8048fe rename range > listRange and remove from exports 2022-04-12 16:54:27 +01:00
alex 7c10d171f6 patternify jux, add juxBy 2022-04-12 16:49:27 +01:00
Alex McLean 5aa01ce91c Merge pull request #27 from tidalcycles/osc
OSC and SuperDirt support
2022-04-12 16:04:04 +01:00
Alex McLean 86bb92d3be Merge pull request #50 from tidalcycles/chop
Implement `chop()`
2022-04-12 12:24:14 +01:00
alex e199564415 Patternify chop() 2022-04-12 12:22:04 +01:00
alex 51db0eaf40 Test and fix chop / squeezebind 2022-04-12 12:16:02 +01:00
alex 83c9200e7d Prettify 2022-04-12 12:01:19 +01:00
alex 529d448383 squeezeBind itself + tidying 2022-04-12 12:00:39 +01:00
alex 8ea59067ce rename inner <> outer bind and join 2022-04-12 11:55:56 +01:00
Alex McLean ac5c844f0b Merge pull request #48 from tidalcycles/squeezejoin
First run at squeezeBind, ref #32
2022-04-12 11:37:32 +01:00
alex b10e0c3a15 Add ply() 2022-04-12 11:31:20 +01:00
alex c2cc6b6dc8 Working squeezeBind 2022-04-12 11:22:53 +01:00
alex 357b0ee467 First run at squeezeBind, ref #32 2022-04-12 10:53:22 +01:00
Alex McLean ac409965d5 Merge pull request #44 from tidalcycles/fix-polymeter
Fix polymeter
2022-04-11 23:03:37 +01:00
alex c596fe33a9 Fix polymeter 2022-04-11 23:01:26 +01:00
Felix Roos 4dbe366978 just a little plumber tune 2022-04-11 23:25:13 +02:00
Felix Roos 7ca8c8d298 fix "every" example 2022-04-11 23:07:53 +02:00
Felix Roos cf7b2b2acf Merge pull request #40 from tidalcycles/compose
Compose
2022-04-11 22:39:43 +02:00
Felix Roos 81598aefce remove ramda dep + update lockfiles 2022-04-11 22:37:28 +02:00
Felix Roos 9effc166bb use own compose 2022-04-11 22:32:53 +02:00
Felix Roos de3c453763 add pipe + compose 2022-04-11 22:31:02 +02:00
Alex McLean 9da114d965 Merge branch 'main' into osc 2022-04-11 21:10:37 +01:00
Felix Roos 3f603eb84f Merge pull request #38 from bwagner/patch-2
Update tutorial.mdx
2022-04-11 21:49:34 +02:00
Bernhard Wagner 3f1df8faa6 Update tutorial.mdx 2022-04-11 18:08:23 +02:00
Felix Roos 2a3af80deb Merge pull request #37 from bwagner/patch-1
Update tutorial.mdx
2022-04-11 08:43:44 +02:00
Bernhard Wagner abfff8bcf1 Update tutorial.mdx
seperating -> separating
2022-04-11 08:34:11 +02:00
Felix Roos c6d7dabada Create CONTRIBUTING.md 2022-04-10 01:01:02 +02:00
Felix Roos 0c61bb0063 Update featurelist.md
tick some boxes
2022-04-09 22:10:27 +02:00
Felix Roos 80393bf765 Publish
- @strudel.cycles/core@0.0.3
 - @strudel.cycles/eval@0.0.3
 - @strudel.cycles/midi@0.0.4
 - @strudel.cycles/mini@0.0.4
 - @strudel.cycles/tonal@0.0.3
 - @strudel.cycles/tone@0.0.4
 - @strudel.cycles/xen@0.0.3
2022-04-05 23:44:40 +02:00
Felix Roos f43ecf1a85 fix readme instructions 2022-04-05 23:41:10 +02:00
Felix Roos a242c0654b dont create defaultSynth on start 2022-04-05 23:40:21 +02:00
Felix Roos c8e9fe519f osc timing now hopefully works everywhere 2022-04-02 22:41:04 +02:00
Felix Roos 0c726d835d fix keybindings on safari 2022-04-02 22:40:35 +02:00
Felix Roos 86b1e992a1 fix absolute time 2022-04-02 21:46:56 +02:00
alex c3b15fffa4 remove duplication 2022-04-02 18:48:30 +01:00
alex 7bbac0ed23 newline 2022-04-02 18:40:27 +01:00
alex 1fb1d15d4c add all the superdirt controls 2022-04-02 18:38:20 +01:00
alex 64ea9b7c8b controls (renamed from packages/osc/superdirt.mjs 2022-04-02 17:32:36 +01:00
Felix Roos 5a03386ad5 package-lock 2022-04-02 18:14:10 +02:00
alex acca363a4e move osc/superdirt to core/controls 2022-04-02 16:06:42 +01:00
alex e28a411408 Make param args a sequence, remove some redundancy 2022-04-02 16:03:50 +01:00
alex 89a7bd4e7d superdirt parameters 2022-04-01 23:17:52 +01:00
alex 46b2e82b43 formatting 2022-04-01 23:15:54 +01:00
alex 723b239fda formatting 2022-04-01 23:15:39 +01:00
Felix Roos bfb757b3b1 remove logs 2022-04-01 21:02:11 +02:00
Felix Roos 7fb9c3bf1e move core repl + add package 2022-04-01 20:54:54 +02:00
alex bf7c8cebc4 tidy 2022-04-01 15:38:06 +01:00
alex ac01a621be workaround for osc-js timestamp bug, reduce latency 2022-04-01 15:37:50 +01:00
Felix Roos 47a046ca1d begin webaudio package 2022-04-01 15:44:17 +02:00
Felix Roos 4ef70d2a15 Merge branch 'osc' of https://github.com/tidalcycles/strudel into osc 2022-03-29 22:17:46 +02:00
Felix Roos ee0d835cd8 add core examples 2022-03-29 22:16:36 +02:00
alex 330263028e it seems the custom handler wasn't being used 2022-03-29 17:04:00 +01:00
alex d0d19778a4 try sending osc in timestamped bundle with added latency 2022-03-29 17:03:30 +01:00
alex 0bfbd87bbf try to send osc as timestamped bundle 2022-03-29 16:39:52 +01:00
alex ba095d8e7f Stop failing on no tests 2022-03-29 15:36:56 +01:00
alex fb52227a92 prettify 2022-03-29 15:29:19 +01:00
alex 0b8919de61 send actual osc parameters 2022-03-29 08:12:34 +01:00
alex 7fca7e6bd9 attempt to send an OSC message 2022-03-28 22:10:20 +01:00
alex 69884c61b4 first (broken) attempt 2022-03-28 21:41:49 +01:00
Felix Roos ed6cf2ecf1 enlarge button 2022-03-28 21:24:44 +02:00
Felix Roos 0be0347f8b basic communication with superdirt 2022-03-28 21:22:24 +02:00
Alex McLean e376f25d92 Merge pull request #25 from tidalcycles/Add-chunk-and-chunkBack
Add chunk, chunkBack and iterBack
2022-03-28 16:27:21 +01:00
alex d2a715af0f Add chunk, chunkBack and iterBack 2022-03-28 14:51:13 +01:00
alex 3c230986e7 Expain style and community a little bit. 2022-03-28 13:54:38 +01:00
alex f529d09227 prettify strudel.mjs, plus add top level echo function 2022-03-28 13:37:13 +01:00
Alex McLean b7988f2158 Merge pull request #24 from tidalcycles/packages
packaging
2022-03-28 10:48:21 +01:00
Felix Roos 2a0d8c3f77 remove codesandbox specific line 2022-03-28 00:31:56 +02:00
Felix Roos 429fcaf05a Publish
- @strudel.cycles/midi@0.0.3
 - @strudel.cycles/mini@0.0.3
 - @strudel.cycles/tone@0.0.3
2022-03-28 00:04:23 +02:00
Felix Roos 4603d16162 add midi note 2022-03-27 23:53:31 +02:00
Felix Roos 6d4a7f96eb add tone example 2022-03-27 23:49:56 +02:00
Felix Roos 4c277afea9 add publishing info 2022-03-27 23:45:46 +02:00
Felix Roos 11be5db628 Publish
- @strudel.cycles/core@0.0.2
 - @strudel.cycles/eval@0.0.2
 - @strudel.cycles/midi@0.0.2
 - @strudel.cycles/mini@0.0.2
 - @strudel.cycles/tonal@0.0.2
 - @strudel.cycles/tone@0.0.2
 - @strudel.cycles/xen@0.0.2
2022-03-27 23:44:26 +02:00
Felix Roos 779d303572 simplify import 2022-03-27 23:43:30 +02:00
Felix Roos 788f344012 simplify onEvent call 2022-03-27 23:43:20 +02:00
Felix Roos 33c9326427 add missing dependency 2022-03-27 23:43:06 +02:00
Felix Roos 9ef57152e4 add duration getter 2022-03-27 23:42:47 +02:00
Felix Roos f8f2fb608d add tonal example 2022-03-27 22:49:06 +02:00
Felix Roos 1cf6b37ee4 add mini example 2022-03-27 22:41:37 +02:00
Felix Roos 76822717f4 add eval example 2022-03-27 22:35:55 +02:00
Felix Roos 4142b113e9 add core example 2022-03-27 22:25:48 +02:00
Felix Roos 3c123538e9 repl readme 2022-03-27 22:21:51 +02:00
Felix Roos 73996997e5 add install commands 2022-03-27 22:17:07 +02:00
Felix Roos c4d14594ce remove node 14 test 2022-03-27 22:12:05 +02:00
Felix Roos 657960024d independent mode 2022-03-27 21:52:26 +02:00
Felix Roos e05842cbef v0.0.1 2022-03-27 21:48:51 +02:00
Felix Roos bac1a289e3 rename main package json 2022-03-27 21:47:18 +02:00
Felix Roos 75097594b2 rename org to strudel.cycles 2022-03-27 21:42:54 +02:00
Felix Roos ff4beaeb2c test mini 2022-03-27 21:29:59 +02:00
Felix Roos 9120affd7f test: evaluate 2022-03-27 20:11:55 +02:00
Felix Roos 81b6dede03 add lerna bootstrap command 2022-03-26 16:49:58 +01:00
Felix Roos 74e49aba79 build 2022-03-26 16:38:18 +01:00
Felix Roos 8911326a95 manifest 2022-03-26 16:36:34 +01:00
Felix Roos 1812300fd6 remove .nojekyll from root dir 2022-03-26 15:49:59 +01:00
Felix Roos 55ff571da6 use public dir 2022-03-26 15:49:43 +01:00
Felix Roos 5481919f5c add nojekyll + clear tutorial on rebuild 2022-03-26 15:47:14 +01:00
Felix Roos df99669340 fix build path 2022-03-26 15:40:33 +01:00
Felix Roos 93db3cd935 fix tutorial 2022-03-26 14:52:58 +01:00
Felix Roos a9c95bbbfb fix cra lint errors 2022-03-26 14:15:38 +01:00
Felix Roos 2c636dfd3b remove old file 2022-03-26 00:04:13 +01:00
Felix Roos 6f838c555c add cross dependencies 2022-03-25 23:52:06 +01:00
Felix Roos 134d29d82c update setup instructions 2022-03-25 23:35:00 +01:00
Felix Roos 5dbe550c5f metadata 2022-03-25 23:28:36 +01:00
Felix Roos 2f13e425c6 add extend to eval to control scope 2022-03-25 23:28:30 +01:00
Felix Roos 54d41410fb basic readmes 2022-03-25 22:53:16 +01:00
Felix Roos 0a8397b3dc replace relative imports with package imports 2022-03-25 22:43:55 +01:00
Felix Roos e1bb58fb06 add xen package 2022-03-25 22:39:03 +01:00
Felix Roos 9458faf5b0 fix pattern checks for minified code 2022-03-25 22:32:42 +01:00
Felix Roos ef75590853 remove peer deps notes 2022-03-25 22:09:36 +01:00
Felix Roos 43d8f46eab remove hooks package for now 2022-03-25 22:04:43 +01:00
Felix Roos 65deb7df1d import tone always from @strudel/tone 2022-03-25 21:35:41 +01:00
Felix Roos edba815b0b fix more deps 2022-03-25 21:29:09 +01:00
Felix Roos e2eea91261 rename repl + fix eval for spread op 2022-03-25 20:48:27 +01:00
Felix Roos 2338a1ee7d fix more deps 2022-03-25 18:51:20 +01:00
Felix Roos 6430f6207d add repl-react + fix deps 2022-03-25 18:46:45 +01:00
Felix Roos 6f60a3a1d5 start packaging 2022-03-25 14:39:25 +01:00
Felix Roos a19d789145 build 2022-03-24 23:57:32 +01:00
Felix Roos b1cde584bf patternify echo + echoWith 2022-03-24 23:55:07 +01:00
Felix Roos ca318375a4 fix: overwrite Tone.Pattern 2022-03-24 23:26:20 +01:00
Felix Roos d417d5b314 fix firefox keypress 2022-03-24 22:51:19 +01:00
Felix Roos b3c853ee26 build 2022-03-24 19:46:38 +01:00
Felix Roos 6d02f4c264 add tune 2022-03-24 19:45:58 +01:00
Felix Roos 10bb347ddf added .color 2022-03-24 19:45:38 +01:00
Felix Roos cfe9cfd03c Merge branch 'main' of https://github.com/tidalcycles/strudel 2022-03-24 18:47:24 +01:00
Felix Roos 4b124e3493 began value api 2022-03-24 18:47:21 +01:00
alex 92a7d81063 Merge branch 'main' of github.com:yaxu/strudel into main 2022-03-24 12:31:04 +00:00
alex 45a0f340b6 tidy up, get citations by URL 2022-03-24 12:30:54 +00:00
Felix Roos c0bd0966a8 build 2022-03-23 20:12:35 +01:00
Felix Roos c71be675aa add cpm 2022-03-23 20:09:49 +01:00
Felix Roos 8ebe44405e map pianoroll alpha to velocity 2022-03-23 20:09:32 +01:00
Felix Roos 2441e70153 build 2022-03-23 18:18:20 +01:00
Felix Roos 68b5fc40f6 add stut + stutWith + iter 2022-03-23 18:17:30 +01:00
alex f0eba54ace Merge branch 'main' of github.com:yaxu/strudel into main 2022-03-23 09:05:10 +00:00
Felix Roos f83aba0d2e fixes minirepl 2022-03-23 09:14:09 +01:00
alex e8f6825b64 integrate with WAC latex template 2022-03-22 15:56:26 +00:00
alex f522812336 integrate with WAC latex template 2022-03-22 15:56:19 +00:00
alex 876e8be54e initial 2022-03-22 15:12:50 +00:00
Felix Roos c22eab7406 Merge pull request #23 from ChiakiUehira/patch-1
Update package.json
2022-03-22 12:06:48 +01:00
Felix Roos 4487834591 build 2022-03-21 19:50:47 +01:00
Felix Roos 98f91607cd allow await + refactor locations 2022-03-21 19:47:58 +01:00
Felix Roos a02a48ac82 allow pianoroll bg to be transparent 2022-03-21 19:46:45 +01:00
Felix Roos 72b963fb21 fix: sometimes wouldnt start the first time 2022-03-21 19:46:09 +01:00
Felix Roos 2efbb68627 draw above background 2022-03-21 19:44:48 +01:00
Felix Roos 9af6a779f2 ignore mytunes 2022-03-20 01:24:47 +01:00
Felix Roos 07aca218cb can now reference midi output by index 2022-03-20 01:24:07 +01:00
Felix Roos 3c56f24eed build 2022-03-19 19:30:29 +01:00
Felix Roos aec5b3bb2b fix euclid import 2022-03-19 19:29:53 +01:00
Felix Roos 67c54c07c2 always stringify fraction param 2022-03-19 19:27:26 +01:00
Felix Roos a3166dfbae build 2022-03-19 14:06:28 +01:00
Felix Roos 3e33427bcf revert un-memoization 2022-03-19 14:05:43 +01:00
Felix Roos 73738acf91 fix: replications 2022-03-19 14:05:22 +01:00
Felix Roos 77fd516b15 build 2022-03-19 12:05:27 +01:00
Felix Roos 61e81a4e60 now running smooth without memoization 2022-03-19 12:03:26 +01:00
Felix Roos 77fafd40fb build 2022-03-19 00:54:17 +01:00
Felix Roos d13bfa9220 add memoized version of fraction.js 2022-03-19 00:19:34 +01:00
Felix Roos 682462ca07 fix: slow fractions 2022-03-19 00:18:04 +01:00
Felix Roos 5c0d9f6f15 remove duplicate block 2022-03-19 00:17:25 +01:00
Felix Roos bbc8ef009d proper reset 2022-03-18 22:12:31 +01:00
Felix Roos 1e57526d7e build 2022-03-18 22:01:21 +01:00
Felix Roos d973d56ef6 fix tests (always bootstrap on define) 2022-03-18 22:00:43 +01:00
Felix Roos b7a61cbd99 fixes mini repl 2022-03-18 21:55:51 +01:00
Felix Roos aef7f7bbc2 build 2022-03-18 19:58:05 +01:00
Felix Roos 9e8f911f02 remove pushLog + add more logging 2022-03-18 19:55:35 +01:00
Felix Roos c263eac7fd build 2022-03-18 19:53:52 +01:00
Felix Roos 88bcfc5e48 add static playback button 2022-03-18 19:48:12 +01:00
Felix Roos 8af4a92fc0 build 2022-03-18 17:39:14 +01:00
Felix Roos 6691afb9b9 can now disable highlighting via comment 2022-03-18 17:37:28 +01:00
Felix Roos 679f30abe3 hidden 100s button 2022-03-18 17:37:18 +01:00
Felix Roos 733994f9b5 cleanup constructor 2022-03-18 17:36:56 +01:00
Felix Roos 1182d0e45d build 2022-03-17 22:19:37 +01:00
Felix Roos e694475556 patternified rootNotes 2022-03-17 22:17:31 +01:00
Felix Roos 6c6a7cf136 add euclidLegato 2022-03-17 22:11:56 +01:00
Felix Roos c1a0f11c39 build 2022-03-17 16:12:42 +01:00
Felix Roos a3fa476c7f add floor ceil and segment 2022-03-17 16:12:15 +01:00
Felix Roos 15e49952f9 build 2022-03-17 15:05:01 +01:00
Felix Roos 91c0a46ba9 add euclid 2022-03-17 15:03:57 +01:00
Felix Roos eaa250a962 fix rootNotes with accidentals 2022-03-17 15:02:58 +01:00
Felix Roos d87049c7f8 build 2022-03-16 23:37:12 +01:00
Felix Roos 947aecdd33 small style fixes 2022-03-16 23:36:38 +01:00
Felix Roos 6fa78f83ba remove functions 2022-03-16 23:36:21 +01:00
Felix Roos fe604ca2b1 build 2022-03-16 23:13:33 +01:00
Felix Roos 305b4e1258 fix: empty options 2022-03-16 23:12:54 +01:00
Felix Roos 4128213acb build 2022-03-16 23:04:25 +01:00
Felix Roos d8d460f175 fix piano velocity 2022-03-16 23:02:54 +01:00
Felix Roos 963cfe052a add ui helpers 2022-03-16 23:02:49 +01:00
Felix Roos 252b7037bd remove functions 2022-03-15 21:23:10 +01:00
Felix Roos e5f462814e paren marking 2022-03-15 21:22:57 +01:00
Felix Roos 82b75e2690 build tutorial 2022-03-13 22:07:37 +01:00
Felix Roos 9644a54f67 write more tutorial 2022-03-13 22:06:59 +01:00
Felix Roos 225f6c7785 build 2022-03-13 11:48:08 +01:00
Felix Roos 5d8ccdff25 add silent flag to asNumber 2022-03-13 11:41:39 +01:00
Felix Roos b5bd9260ef ignore sample names in draw 2022-03-13 11:41:18 +01:00
Felix Roos d5a928e6f7 filter out event parts from draw 2022-03-13 11:20:57 +01:00
Felix Roos 04d14dea90 build 2022-03-12 21:58:47 +01:00
Felix Roos 92937fa72e add lookaheadCycles to fix pianoroll 2022-03-12 21:58:17 +01:00
Felix Roos ffd6ab2cc9 build 2022-03-12 21:44:07 +01:00
Felix Roos 78a2a47fbf fix draw 2022-03-12 21:04:50 +01:00
Felix Roos 1558fd9519 fix draw return + optional querying 2022-03-12 20:38:06 +01:00
Felix Roos 984bd95cc0 style repl 2022-03-12 20:30:15 +01:00
Felix Roos 2295ba7554 optimize draw logic 2022-03-12 20:30:07 +01:00
Felix Roos abb698281c comment out tunejs logs 2022-03-12 20:29:35 +01:00
Felix Roos cbd1bde7e6 build 2022-03-11 22:03:58 +01:00
Felix Roos 1d1d29a163 add draw cleanup 2022-03-11 21:59:24 +01:00
Felix Roos 0b206a4d50 ignore oldtunes 2022-03-11 21:52:54 +01:00
Felix Roos ffeaf7e050 add draw helpers + pianoroll 2022-03-11 21:51:30 +01:00
Chiaki Uehira ab37b80f8b Update package.json 2022-03-10 12:11:17 +09:00
Chiaki Uehira 29b3965e74 Update package.json
Information was outdated and has been updated.
2022-03-10 12:09:42 +09:00
Felix Roos a2ab2b9da5 build 2022-03-06 21:39:10 +01:00
Felix Roos ad42e5eb61 Merge pull request #21 from tidalcycles/notes-and-numbers
added _asNumber + interprete numbers as midi
2022-03-06 20:35:20 +01:00
Felix Roos 830f0a1026 Merge remote-tracking branch 'origin/HEAD' into notes-and-numbers 2022-03-06 20:33:41 +01:00
Felix Roos 76760fc85f build 2022-03-06 20:04:55 +01:00
Felix Roos 1dda16c010 add gist helper 2022-03-06 20:03:28 +01:00
Felix Roos af81626f43 Merge remote-tracking branch 'origin/main' into notes-and-numbers 2022-03-06 19:23:24 +01:00
Felix Roos 1d4129e84d build 2022-03-06 14:44:56 +01:00
Felix Roos 68b481af6e add kalimba to example 2022-03-06 14:43:49 +01:00
Felix Roos 0a7b8317d3 add velocity to example 2022-03-06 14:39:53 +01:00
Felix Roos 58e8e311a3 use velocity in tone + midi + defaultSynth 2022-03-06 14:39:33 +01:00
Felix Roos fbc629c6da add Pattern.velocity 2022-03-06 14:38:49 +01:00
Felix Roos 629d36c63c build 2022-03-06 10:40:07 +01:00
Felix Roos d5c79f697a add tunes with sampler + players 2022-03-06 10:37:15 +01:00
Felix Roos 7e0b6d7f2a add duration + legato 2022-03-06 10:35:23 +01:00
Felix Roos 05804262f0 add sampler + players + switchify onTrigger 2022-03-06 10:34:09 +01:00
Felix Roos 14ab6c5960 fix formatting 2022-03-04 09:59:25 +01:00
Felix Roos 0792ef7288 add Pattern.tune with tunejs + example tune 2022-03-04 00:10:57 +01:00
Felix Roos a1fa306cae highlighting ideas 2022-03-04 00:10:09 +01:00
Felix Roos 43f861e219 xen fixes 2022-03-04 00:09:53 +01:00
Felix Roos 29802b0f4d remove scaleOffset nonsense 2022-03-04 00:08:39 +01:00
Felix Roos 0ef62708ab add Pattern.round 2022-03-04 00:07:00 +01:00
Felix Roos 52da8552ef add Pattern.len 2022-03-04 00:06:26 +01:00
Felix Roos e78b3a88d7 add .tuning + 12ji preset 2022-02-28 23:42:04 +01:00
Felix Roos 85f0886886 add xen! 2022-02-28 23:33:57 +01:00
Felix Roos ffe258a9fb add getPlayableNoteValue helper 2022-02-28 23:32:22 +01:00
Felix Roos 1242b1738a add tonal dev dep to root package 2022-02-28 23:02:49 +01:00
Felix Roos 9b3f77f4f5 Merge commit '63eb9124340ee1a650b5bf695493d025e4069a97' into notes-and-numbers 2022-02-28 22:56:25 +01:00
Felix Roos c4f31cb929 Merge commit 'df0650e48d9aad4e72f501e6f480480c31a4aac0' into notes-and-numbers 2022-02-28 22:55:37 +01:00
Felix Roos 71952ca8fd fix scales without c 2022-02-28 22:55:03 +01:00
Felix Roos df21c81bfa test tonal methods + move mod to util 2022-02-28 22:52:09 +01:00
Felix Roos 020c1d5589 test util 2022-02-28 22:08:30 +01:00
Felix Roos 63eb912434 comment out todos in tutorial 2022-02-28 21:40:24 +01:00
Felix Roos 125d190ff1 fix: scaleTranspose for scales without C in it 2022-02-28 21:39:53 +01:00
Alex McLean 349aa45f54 Merge pull request #22 from tidalcycles/stateful-events
Fix resolveState
2022-02-27 23:32:29 +00:00
alex 921b23e9f0 Fix resolveState 2022-02-27 23:30:00 +00:00
Felix Roos 827c983175 build 2022-02-27 22:11:34 +01:00
Felix Roos df0650e48d install events 2022-02-27 22:09:43 +01:00
Felix Roos ee2d32339f fix uppercase notes 2022-02-27 21:52:19 +01:00
Felix Roos 420a955314 fix tests 2022-02-27 21:36:35 +01:00
Felix Roos 8a7e49780a added _asNumber + interprete numbers as midi 2022-02-27 21:24:23 +01:00
Felix Roos 190729df73 Merge pull request #14 from tidalcycles/stateful-events
Stateful queries and events (WIP)
2022-02-27 20:52:51 +01:00
Felix Roos f209841e06 simplify 2022-02-27 20:51:43 +01:00
Felix Roos 5f424e7113 add pending flag 2022-02-27 20:24:03 +01:00
Felix Roos f361b50f7f "add" example 2022-02-27 20:16:29 +01:00
Felix Roos 31319b4045 piano 2022-02-27 20:09:07 +01:00
Felix Roos 4f2f00ee62 patterns can now be async 2022-02-27 20:08:56 +01:00
Felix Roos bab2df3442 Merge pull request #19 from puria/main
fix: 💄 Enhance visualisation of the Tutorial on mobile
2022-02-27 18:04:06 +01:00
Puria Nafisi Azizi 4b778e444d fix: 💄 Enhance visualisation of the Tutorial on mobile 2022-02-27 16:29:23 +01:00
Felix Roos 634d4f1099 Merge commit '1375932c05cea422500a9328fec3207ac4e1a64c' into stateful-events 2022-02-27 15:05:17 +01:00
Felix Roos 4da1fa4832 lookAhead 1 2022-02-27 12:53:16 +01:00
Felix Roos 70472f11cc build with setContext (highlighting broken..) 2022-02-27 12:48:15 +01:00
Felix Roos 9442b5c66b build 2022-02-27 12:08:23 +01:00
Felix Roos ef3ab6161f use default context for now 2022-02-27 12:07:56 +01:00
Felix Roos e719cea0de fix mini repl draw + tutorial 2022-02-27 11:57:30 +01:00
Felix Roos 1375932c05 sync highlighting with tone draw 2022-02-27 11:52:34 +01:00
alex 0969f47404 fix tests 2022-02-26 23:46:04 +00:00
alex 34872b3a02 Add stateful flag to hap, add sketch of resolveState to hap. Also firstCycle now strips the context by default. 2022-02-26 23:45:53 +00:00
Alex McLean cad81acc44 Update README.md 2022-02-26 20:29:16 +00:00
Alex McLean 54f052d661 Update README.md 2022-02-26 20:26:36 +00:00
Alex McLean c3ad7a032f Update README.md 2022-02-26 20:26:02 +00:00
Alex McLean 62fd2f599b Update README.md 2022-02-26 20:25:12 +00:00
Alex McLean 1dd4c7ea11 Update README.md 2022-02-26 20:23:58 +00:00
Alex McLean cefe9f76fd Update README.md 2022-02-26 20:23:16 +00:00
Alex McLean 0d78f3695a Update README.md 2022-02-26 20:22:53 +00:00
Alex McLean 6091f7499a Update test.yml 2022-02-26 20:21:50 +00:00
Alex McLean ce8d22c29b Merge pull request #17 from puria/main
test: 📦 Add missing dependency and a CI check, to prevent oversights ;p
2022-02-26 20:16:34 +00:00
Puria Nafisi Azizi 1217dea5fc test: 📦 Add missing dependency and a CI check, to prevent oversights ;p 2022-02-26 20:46:13 +01:00
Felix Roos c6cfa34997 Merge pull request #16 from charlieroberts/performance_experiments
higher latencyHint
2022-02-26 13:29:19 +01:00
charlieroberts 83d0644fd9 higher latencyHint 2022-02-25 21:08:56 -08:00
Felix Roos aeb51a157f fix transpose number bug 2022-02-25 21:55:47 +01:00
Felix Roos 867dbf33dc dont log 2022-02-25 21:51:15 +01:00
Felix Roos 508767278f merge contexts 2022-02-25 21:41:33 +01:00
Felix Roos 4bea071071 mini: parse numbers 2022-02-25 21:41:10 +01:00
Felix Roos dcebdd6dbc fix numbers 2022-02-25 21:40:48 +01:00
Felix Roos 8b0e036ed5 highlight voicings 2022-02-25 21:40:30 +01:00
Felix Roos 067c0bfe70 simplify 2022-02-25 20:47:44 +01:00
Felix Roos 08ab06c9cc use context for tone 2022-02-25 20:43:38 +01:00
Felix Roos a3971f793c use context for scale 2022-02-25 20:31:08 +01:00
Felix Roos f1362b1c94 use state query in repl
+ move locations to context
2022-02-25 20:10:49 +01:00
Felix Roos 9ccc78a929 build 2022-02-25 16:28:22 +01:00
Felix Roos 5fb31c2a9f Merge branch 'main' of https://github.com/tidalcycles/strudel 2022-02-25 16:26:56 +01:00
Felix Roos 755e2dcbd2 comment out logging + add pipe for legacy... 2022-02-25 16:26:47 +01:00
alex 29bdfb2d90 _withContext() 2022-02-25 11:19:12 +00:00
alex fc739d1283 fix new things up to use state 2022-02-25 11:07:45 +00:00
alex 1b6d3734cf Merge branch 'main' into stateful-events 2022-02-25 10:59:41 +00:00
alex 912c36d590 Add event/hap context 2022-02-25 10:59:33 +00:00
alex b323855b69 fix off() 2022-02-24 22:53:13 +00:00
alex 1b748648e0 Merge branch 'main' of github.com:yaxu/strudel into main 2022-02-24 22:35:55 +00:00
Felix Roos 8bf7a6ba6e fix pure with number arg in shapeshifter 2022-02-24 23:20:02 +01:00
Felix Roos 56069a2d38 add featurelist 2022-02-24 20:19:02 +01:00
Felix Roos c246bec753 shorten 2022-02-24 20:18:02 +01:00
Felix Roos 914d12115c remove pipe + fix examples + add new tunes 2022-02-24 20:17:32 +01:00
Felix Roos 62bb91ab14 Merge branch 'main' of https://github.com/tidalcycles/strudel 2022-02-24 20:16:46 +01:00
Felix Roos 9f2bc146c0 fix: webmidi hints 2022-02-24 20:16:21 +01:00
alex 1b5046da69 repl build 2022-02-24 12:29:25 +00:00
alex 164d007f95 repl build 2022-02-24 12:29:07 +00:00
alex 37a240ee2d Fix show() to show sign, fix off() 2022-02-24 11:48:08 +00:00
alex fb149808ee test div and mul 2022-02-23 22:46:01 +00:00
Alex McLean ef877a40ca Merge pull request #15 from tidalcycles/apply-an--layer
add apply and layer, and missing div/mul methods
2022-02-23 21:15:11 +00:00
alex 14a4a4492b add apply and layer, and missing div/mul methods 2022-02-23 21:13:29 +00:00
alex db22653124 Merge branch 'stateful-events' of github.com:yaxu/strudel into stateful-events 2022-02-23 20:24:12 +00:00
alex becc73e58a Merge branch 'main' into stateful-events 2022-02-23 20:24:05 +00:00
Alex McLean 0418517c3e Merge branch 'main' into stateful-events 2022-02-23 20:20:35 +00:00
alex a9a4cd2f5c Make pattern a function of state, not just time. 2022-02-23 20:18:03 +00:00
Felix Roos b4b38f1dc9 build 2022-02-22 20:49:05 +01:00
Felix Roos 9170eadbb0 replace groove with struct
+ delete groove
2022-02-22 20:47:55 +01:00
Felix Roos 413d401567 build 2022-02-22 00:48:00 +01:00
Felix Roos f6be175af0 refactor tunes to double quotes 2022-02-22 00:44:39 +01:00
Felix Roos 522005a7ab patterns with double quotes and backticks
+ improved highlighting
+ many shapeshifter fixes
+ add highlighting to minirepl
+ add error handling to minirepl
2022-02-22 00:27:38 +01:00
Felix Roos 9a480344de Merge branch 'main' of https://github.com/tidalcycles/strudel 2022-02-21 01:20:51 +01:00
Felix Roos 8ce9986479 build 2022-02-21 01:20:44 +01:00
Felix Roos fd5ac5898c make offset pure 2022-02-21 01:19:57 +01:00
Alex McLean 6bbe759f74 Merge pull request #13 from tidalcycles/continuous-functions
Add continuous signals (sine, cosine, saw, etc)
2022-02-21 00:02:06 +00:00
Felix Roos 966de74d5b build 2022-02-21 01:00:12 +01:00
alex fd8f70d914 Tweaks and a couple of tests for signals 2022-02-20 23:59:16 +00:00
Felix Roos 3b248ae94c fix mini notation multiline highlight
+ started operator overloading
2022-02-21 00:57:17 +01:00
Felix Roos 26fe6c8f61 add location for replicated synthetic child 2022-02-21 00:36:15 +01:00
alex b4b303a2d9 Add continuous signals (sine, cosine, saw, etc) 2022-02-20 22:47:00 +00:00
Felix Roos acd07c31ff started mini notation highlighting
currently deactivated by addMiniLocations flag
2022-02-20 23:46:45 +01:00
Felix Roos 358ba0101e specify error source 2022-02-20 23:37:29 +01:00
Felix Roos bc790d8cd5 fix: voicings wouldn't work with objects 2022-02-20 23:37:17 +01:00
Felix Roos 74040e52b4 better number support in tonal functions 2022-02-20 20:47:59 +01:00
Felix Roos f8df4b485d build 2022-02-20 20:31:55 +01:00
Felix Roos 1de371e944 replace m with cat in tunes 2022-02-20 20:31:00 +01:00
Felix Roos 8d872ccee9 highlight active events, js only 2022-02-20 20:30:40 +01:00
Felix Roos cf5ae93638 add withLocation 2022-02-20 20:29:20 +01:00
Felix Roos ed50da52f7 add locations to primitive pattern args 2022-02-20 20:29:07 +01:00
Felix Roos 292f171f28 add editorDidMount 2022-02-20 20:20:02 +01:00
Felix Roos 72835c80ed add onEvent to useRepl 2022-02-20 20:19:19 +01:00
Felix Roos d3dce4c662 build 2022-02-19 21:51:58 +01:00
Felix Roos ecec96c943 Merge branch 'main' of https://github.com/tidalcycles/strudel 2022-02-19 21:48:26 +01:00
Felix Roos b2646dbd65 midi doc 2022-02-19 21:47:59 +01:00
Alex McLean d941cb79ce Merge pull request #11 from tidalcycles/more-functions
More tidal functions incoming (WIP)
2022-02-19 20:30:04 +00:00
Felix Roos 8339d18e0a build tutorial 2022-02-19 21:20:36 +01:00
Felix Roos f0a96ba75d basi tonal api doc 2022-02-19 21:17:21 +01:00
Felix Roos 1380babcf2 rename chordBass > rootNotes 2022-02-19 21:16:58 +01:00
Felix Roos c5089d8c58 scale now turns numbers into notes 2022-02-19 21:16:49 +01:00
Felix Roos ce78e0d88d build tutorial 2022-02-19 19:50:56 +01:00
Felix Roos b497967647 Merge branch 'main' of https://github.com/tidalcycles/strudel 2022-02-19 19:46:23 +01:00
Felix Roos 4614b6b6bd tone api doc 2022-02-19 19:45:26 +01:00
Felix Roos c548b61fa4 add synth helpers 2022-02-19 19:45:19 +01:00
alex ca9fef50d9 More struct tests 2022-02-19 17:20:02 +00:00
alex 0039b60020 Fix struct() and add mask() 2022-02-19 17:14:11 +00:00
alex 7b34f3f524 struct() and invert()/inv() 2022-02-19 16:54:44 +00:00
Alex McLean 7456810517 Merge pull request #10 from tidalcycles/bug-when
Failing test for `when` WIP
2022-02-19 15:07:07 +00:00
alex f3a3376e24 It was the test that was wrong all along 2022-02-19 15:06:35 +00:00
alex 9e05da552f Merge branch 'main' into bug-when 2022-02-19 15:00:28 +00:00
Felix Roos c427b1594d build 2022-02-18 22:36:02 +01:00
Felix Roos d58a706b9b simplify querying
+ hopefully fix mini repl switching bug
2022-02-18 22:34:42 +01:00
Felix Roos d26467d0de build 2022-02-18 21:58:15 +01:00
Felix Roos 57bddf9189 disable parcel cache to fix build 2022-02-18 21:58:06 +01:00
Felix Roos cd815d064d dont autolink minirepl 2022-02-18 21:56:11 +01:00
Felix Roos da2c5c738b fixes 2022-02-18 21:46:07 +01:00
Felix Roos 5d649a516f docs docs docs 2022-02-18 21:39:37 +01:00
Felix Roos a05757f8d6 support multiple repls on same page 2022-02-18 15:01:01 +01:00
Felix Roos 3f051cdd8d tutorial layout 2022-02-18 14:00:35 +01:00
Felix Roos 7b28a620a9 build tutorial after repl 2022-02-18 13:45:15 +01:00
Felix Roos aa850918ad boilerplate for tutorial + minirepl 2022-02-18 12:44:18 +01:00
Felix Roos bad6cf0ed7 encapsulate repl logic into hook 2022-02-18 11:55:31 +01:00
Felix Roos 873ca66d55 remove hot mode + cleanup 2022-02-18 11:47:11 +01:00
Felix Roos 57d85ee7de build 2022-02-18 11:13:19 +01:00
Felix Roos f95f181301 fix could not play after pressing pause
+ some notes
2022-02-18 11:12:08 +01:00
Felix Roos f97837d15a build 2022-02-16 20:13:40 +01:00
Felix Roos b8d3fe6f1a add tone songs 2022-02-16 20:12:47 +01:00
Felix Roos 47d29bc654 eval only on ctrl+enter, not on every keystroke 2022-02-16 20:12:22 +01:00
Felix Roos 70f858361f add .tone + helpers 2022-02-16 20:11:21 +01:00
Felix Roos 71023fc09c support "!" in mini notation 2022-02-16 20:10:58 +01:00
Felix Roos 6babfa3435 add Tone namespace + allow functions 2022-02-16 20:10:35 +01:00
Felix Roos ef9527d691 add "!" and "_" to mini notation 2022-02-16 20:10:00 +01:00
Felix Roos 9ac7212f9c add bypass + hush 2022-02-16 20:09:23 +01:00
Felix Roos 3c614e6e16 simplify scheduler 2022-02-16 20:08:58 +01:00
Felix Roos b64ccb4522 build 2022-02-15 23:05:38 +01:00
Felix Roos c11c217baf Pattern .define + .bootstrap
+ seperate parse / evaluate
+ add Pattern.edit
+ move string hacks to evaluate
+ automate eval scoping with globalThis
+ add random tune button
+ mini: handle angle brackets
+ add chordBass
+ fix old tunes
2022-02-15 23:05:14 +01:00
Felix Roos c225c058bc build 2022-02-15 08:20:12 +01:00
Felix Roos 2f164649b9 add makeComposable for chainable composition
- only used with transpose so far
2022-02-15 08:19:48 +01:00
Felix Roos 22baae10dd build 2022-02-14 19:57:24 +01:00
Felix Roos 240ebede6f automated patternify, pseudo getters, string hacks 2022-02-14 19:56:37 +01:00
Felix Roos f2acc12174 build 2022-02-13 21:48:51 +01:00
Felix Roos 3fb4582d61 add groove 2022-02-13 21:48:30 +01:00
Felix Roos 69d802a060 build 2022-02-13 21:29:40 +01:00
Felix Roos 0c8d4a9671 add scaleTranspose 2022-02-13 21:27:20 +01:00
Felix Roos b29857e81f build 2022-02-13 12:11:46 +01:00
Felix Roos 3d0d526051 add tranpose method 2022-02-13 12:10:38 +01:00
Felix Roos 016d5c5ef4 build 2022-02-13 00:14:45 +01:00
Felix Roos 67c8ac7d9d make strudel classes available to eval 2022-02-13 00:13:15 +01:00
Felix Roos b95daf7874 build 2022-02-12 23:58:19 +01:00
Felix Roos 8d81458b7f fix appWhole / appBoth 2022-02-12 23:54:45 +01:00
Felix Roos a0c09f7575 build 2022-02-12 22:56:41 +01:00
Felix Roos ffffca8cdc allow "^" in mini notation step 2022-02-12 22:56:03 +01:00
Felix Roos 2069b02ba7 add giant steps 2022-02-12 22:44:06 +01:00
Felix Roos c20d5e5be9 fmapNested prototype 2022-02-12 22:05:49 +01:00
Felix Roos 64e24e5fc1 build 2022-02-12 22:00:30 +01:00
Felix Roos 70dea049ae add chord voicings 2022-02-12 21:59:45 +01:00
Felix Roos f15686ba0f build 2022-02-11 01:10:44 +01:00
Felix Roos f8a178c282 Merge branch 'main' of https://github.com/tidalcycles/strudel 2022-02-11 01:10:02 +01:00
Felix Roos 1e7cbf235f add swimming 2022-02-11 01:09:51 +01:00
Felix Roos 4c15cab048 style fixes 2022-02-11 01:09:46 +01:00
alex a074c146ec fix wrong values in test 2022-02-10 17:43:16 +00:00
alex fff10f43bd Failing test for when 2022-02-10 17:40:59 +00:00
Alex McLean 063289b435 Merge pull request #9 from tidalcycles/More-functions
Bugfix every, and create more top level functions
2022-02-10 16:21:31 +00:00
alex abe6509ba8 Bugfix every, and create more top level functions 2022-02-10 15:49:01 +00:00
Felix Roos 8986399736 build 2022-02-10 14:53:25 +01:00
Felix Roos cff3da3fd0 save code as base64 in url 2022-02-10 14:50:51 +01:00
Felix Roos ea7c079e30 build 2022-02-10 09:09:43 +01:00
Felix Roos a977a9b444 tune 2022-02-10 09:09:08 +01:00
Felix Roos 8fa9fda9b4 timecat mini notation 2022-02-10 09:08:40 +01:00
Felix Roos fabfee5976 build 2022-02-10 08:30:38 +01:00
Felix Roos ad777ed183 add timecat to parser 2022-02-10 08:30:18 +01:00
Alex McLean 40d4e138b7 Merge pull request #8 from tidalcycles/timeCat
timeCat
2022-02-09 23:51:21 +00:00
alex 5b8c34e504 timeCat seems to work 2022-02-09 23:50:06 +00:00
alex f5fb5857df fix _fastGap, add compressSpan 2022-02-09 22:41:44 +00:00
Alex McLean 295e910cc7 Create FUNDING.yml 2022-02-09 21:21:42 +00:00
alex ab2cfdeeec attempt at fastGap, with failing test 2022-02-09 21:18:53 +00:00
Felix Roos c891dda8eb build 2022-02-09 22:11:25 +01:00
Felix Roos f6c4bdb8a6 added midi support 2022-02-09 22:10:11 +01:00
Felix Roos b0e50db4f6 build 2022-02-09 20:21:58 +01:00
Felix Roos e783de3453 add m for mini 2022-02-09 20:19:05 +01:00
Felix Roos 9ed198db28 ast shape shifting pseudo note variables 2022-02-09 20:11:16 +01:00
Felix Roos ce579e48a6 remove line 2022-02-08 23:28:39 +01:00
Felix Roos 03d3f1d426 Merge branch 'main' of https://github.com/tidalcycles/strudel 2022-02-08 23:01:03 +01:00
Felix Roos 20cbaf913a hot mode + tone synth experiments 2022-02-08 23:01:01 +01:00
alex fa59334a46 add some module level curried aliases 2022-02-08 17:08:11 +00:00
alex d6c22d516b pass all the args through patternify, to properly support sequences as args 2022-02-08 16:15:43 +00:00
alex 89ee94e953 tidy 2022-02-08 12:41:01 +00:00
alex 44336efb8d tidy - use const or let for declarations 2022-02-08 12:36:48 +00:00
alex c4a8180592 another test for fast 2022-02-08 09:27:18 +00:00
alex 9d809be775 deps 2022-02-08 08:59:52 +00:00
Alex McLean 5ecbcfffcb Merge pull request #7 from felixroos/main
fixed editor crash
2022-02-07 22:07:58 +00:00
Felix Roos 4dadcbcb49 fix typo 2022-02-07 22:38:10 +01:00
Felix Roos 92103dbb06 build for root dir 2022-02-07 22:28:25 +01:00
Felix Roos e9b2bb6169 fix input error handling 2022-02-07 22:24:16 +01:00
alex 6f9c51db9e fix tests for sequence() and polyrhythm() 2022-02-07 19:02:27 +00:00
alex d3f4dcacff actually apply the function in every 2022-02-07 19:00:43 +00:00
alex e12bcea613 fix _slow test 2022-02-07 18:57:34 +00:00
alex 3e989f4bb0 rebuild with / docroot 2022-02-07 18:34:26 +00:00
Alex McLean 7415737cf1 Merge pull request #6 from felixroos/main
krill parser + improved repl
2022-02-07 18:08:40 +00:00
Felix Roos cf7a158944 build 2022-02-07 18:41:04 +01:00
Felix Roos d1befc29cb fix duration 2022-02-07 18:40:37 +01:00
Felix Roos 45ff4444b3 build 2022-02-07 18:32:26 +01:00
Felix Roos 8663f7f102 clean up 2022-02-07 18:31:33 +01:00
Felix Roos 76153c5791 filter out events that dont have onset 2022-02-07 18:29:59 +01:00
Felix Roos 651f6d1462 Merge commit '4cdcfd24fa68ca37255ed391144c3ceeea5de976' 2022-02-07 18:06:25 +01:00
alex 4cdcfd24fa Fix slowcat for proper interleaving behaviour 2022-02-07 16:50:41 +00:00
Felix Roos 8b17437e4a build 2022-02-06 23:04:18 +01:00
Felix Roos bc79986dd2 now supporting tidal syntax directly 2022-02-06 23:02:43 +01:00
Felix Roos a00f00a7fe build 2022-02-06 22:44:33 +01:00
Felix Roos 557f3b77bd slow bug as test 2022-02-06 22:43:47 +01:00
Felix Roos ffe0556c90 add codemirror 2022-02-06 22:13:46 +01:00
Felix Roos 36db844155 add some todos 2022-02-06 21:15:03 +01:00
Felix Roos b91eeb72f0 build 2022-02-06 21:00:29 +01:00
Felix Roos 27be90358f add many more krill operators 2022-02-06 20:59:41 +01:00
Felix Roos c8bf4331c8 build 2022-02-06 14:24:30 +01:00
Felix Roos 5b7054b0be add linebreaks 2022-02-06 14:24:06 +01:00
Felix Roos bc4893b4ba build 2022-02-06 14:19:49 +01:00
Felix Roos 3919a21650 mini: support stack with "," 2022-02-06 14:19:15 +01:00
Felix Roos f56d40ac8d build with /strudel 2022-02-06 13:03:23 +01:00
Felix Roos 174c0135ac build 2022-02-06 13:01:43 +01:00
Felix Roos 06ebcfff89 tetris in mini notation 2022-02-06 13:01:18 +01:00
Felix Roos 4437f7c89e Merge remote-tracking branch 'upstream/main' 2022-02-06 12:41:40 +01:00
Felix Roos 2062e4233e add poc for krill parsing 2022-02-06 12:41:20 +01:00
Alex McLean d00cdcf126 Merge pull request #5 from tidalcycles/patternify
Patternify all the things
2022-02-05 23:59:16 +00:00
alex 988e81670d patternify slow, early and late 2022-02-06 23:27:37 +00:00
alex de7b67f085 failed attempt at getting better test of fast() 2022-02-06 23:23:43 +00:00
alex e98e8ea13f Patternify fast and fix tests 2022-02-06 23:15:55 +00:00
alex 47f051b73a CNAME 2022-02-06 21:35:18 +00:00
alex cf9d6fb699 rebuild 2022-02-06 21:34:57 +00:00
alex 7812eb49f2 Fix base url to / 2022-02-06 21:30:48 +00:00
Alex McLean ac574f7b36 Merge pull request #4 from kindohm/readme-local-dev
update readme for local dev
2022-02-05 22:31:37 +00:00
Mike Hodnick 68c3450a44 update readme for local dev 2022-02-05 15:44:47 -06:00
Alex McLean 7c9219d294 Merge pull request #3 from tidalcycles/fix-path
Fix path
2022-02-05 21:36:05 +00:00
Alex McLean 0d266413c7 Create CNAME 2022-02-05 21:23:04 +00:00
Alex McLean 78f080c31b Merge pull request #2 from felixroos/main
repl + reify functions
2022-02-05 20:52:50 +00:00
alex 38994c233f Merge branch 'main' of github.com:yaxu/strudel into main 2022-02-06 19:04:10 +00:00
alex 868a7b9795 General fixes, breakages and WIP 2022-02-06 19:03:59 +00:00
Felix Roos 74355e86da Merge remote-tracking branch 'upstream/main' 2022-02-05 21:36:36 +01:00
Felix Roos 01af71cd1c build 2022-02-05 21:04:06 +01:00
Felix Roos 1a56c63658 cooler example 2022-02-05 21:03:45 +01:00
Felix Roos 7fc10552f6 build 2022-02-05 20:38:24 +01:00
Felix Roos 9d20c62106 add slowcat + stack example 2022-02-05 20:36:03 +01:00
Felix Roos 96bac589cb reify all the things 2022-02-05 20:35:49 +01:00
Felix Roos e9e76f7259 fix schedule dropout 2022-02-05 20:30:20 +01:00
Felix Roos e024c091b7 add nojekyll 2022-02-05 13:16:46 +01:00
Felix Roos 07d534b43c fix build 2022-02-05 13:12:05 +01:00
Felix Roos 6eae714d1d build 2022-02-05 13:05:08 +01:00
Felix Roos df865e323d basic scheduling 2022-02-05 13:02:26 +01:00
Felix Roos 71a3bdfeac add basic repl 2022-02-04 13:32:42 +01:00
alex 83d06ec2af code stuff 2022-02-02 13:48:15 +00:00
alex 3a8c1d103c Merge branch 'main' of github.com:yaxu/strudel into main 2022-02-02 13:47:42 +00:00
alex fa7796ea59 js path 2022-02-02 13:46:11 +00:00
alex caa28ce01e fix strudel location 2022-01-27 20:44:47 +00:00
alex e31fa95c23 mix strudel location 2022-01-27 20:33:15 +00:00
alex d911e1f51a 1.0.3 already 2022-01-27 14:07:52 +00:00
alex c496002ca5 prepare for npm 2022-01-27 14:01:37 +00:00
alex b0979ba153 sequencing 2022-01-27 13:29:57 +00:00
alex eb6f685f66 jux 2022-01-27 08:40:09 +00:00
alex 2756155b7c fix and test rev 2022-01-27 08:28:13 +00:00
alex cba0084e3d Merge branch 'main' of github.com:yaxu/strudel into main 2022-01-27 07:52:39 +00:00
alex b62571f9aa more 2022-01-26 23:47:39 +00:00
alex e53ec44d98 off 2022-01-26 12:48:32 +00:00
alex c924057c56 slowcat test 2022-01-26 12:44:15 +00:00
alex fc542861e8 fix fastcat 2022-01-26 12:39:12 +00:00
alex 38cae8c905 more 2022-01-26 08:15:46 +00:00
alex f696cd554f shenanigans 2022-01-25 17:03:22 +00:00
alex d15ac42969 more blind porting 2022-01-25 13:51:53 +00:00
alex 780a6482e5 twiddles 2022-01-25 10:19:27 +00:00
alex e0023a722b more tests 2022-01-24 22:57:52 +00:00
alex 30b7eb7c73 init 2022-01-24 22:57:21 +00:00
alex b5bafc8f60 start porting pattern 2022-01-24 17:04:23 +00:00
alex 615d441381 get tests working 2022-01-23 16:41:37 +00:00
alex 40f2355fbf first 2022-01-22 20:27:37 +00:00
alex fb72bb2290 ignore node_modules 2022-01-22 20:27:31 +00:00
Alex McLean 38b5a0d5cd Initial commit 2022-01-22 20:24:36 +00:00
279 changed files with 74477 additions and 1800 deletions
+3
View File
@@ -0,0 +1,3 @@
# These are supported funding model platforms
open_collective: tidalcycles
+19
View File
@@ -0,0 +1,19 @@
name: Strudel tests
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16, 17]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm install
- run: npm test
+30
View File
@@ -0,0 +1,30 @@
dist
!docs/dist
dist-*
cabal-dev
*.o
*.hi
*.hie
*.chi
*.chs.h
*.dyn_o
*.dyn_hi
.hpc
.hsenv
.cabal-sandbox/
cabal.sandbox.config
*.prof
*.aux
*.hp
*.eventlog
.stack-work/
cabal.project.local
cabal.project.local~
.HTF/
.ghc.environment.*
node_modules/
.DS_Store
repl-parcel
mytunes.ts
doc
.parcel-cache
+16
View File
@@ -0,0 +1,16 @@
{
"printWidth": 120,
"useTabs": false,
"tabWidth": 2,
"semi": true,
"singleQuote": true,
"jsxSingleQuote": false,
"trailingComma": "all",
"bracketSpacing": true,
"jsxBracketSameLine": false,
"arrowParens": "always",
"proseWrap": "preserve",
"htmlWhitespaceSensitivity": "css",
"endOfLine": "lf"
}
+6
View File
@@ -0,0 +1,6 @@
{
"cSpell.words": [
"subspan",
"vals"
]
}
+111
View File
@@ -0,0 +1,111 @@
# 🌀 Contributing to Strudel 🌀
Thanks for wanting to contribute!!! There are many ways you can add value to this project
## Communication Channels
To get in touch with the contributors, either
- open a [github discussion](https://github.com/tidalcycles/strudel/discussions) or
- [join the Tidal Discord Channel](https://discord.gg/remJ6gQA) and go to the #strudel channel
- Find related discussions on the [tidal club forum](https://club.tidalcycles.org/)
## Ask a Question
If you have any questions about strudel, make sure you've read the
[tutorial](https://strudel.tidalcycles.org/tutorial/) to find out if it answers your question.
If not, use one of the Communication Channels above!
Don't be afraid to ask! Your question might be of great value for other people too.
## Give Feedback
No matter if you've used the Strudel REPL or if you are using the strudel packages, we are happy to hear some feedback.
Use one of the Communication Channels listed above and drop us a line or two!
## Share Music
If you made some music with strudel, you can give back some love and share what you've done!
Your creation could also be part of the random selection in the REPL if you want.
Use one of the Communication Channels listed above.
## Improve the Tutorial
If you find some weak spots in the [tutorial](https://strudel.tidalcycles.org/),
you are welcome to improve them by editing [this file](https://github.com/tidalcycles/strudel/blob/main/repl/src/tutorial/tutorial.mdx).
This will even work without setting up a development environment, only a github account is required.
## Propose a Feature
If you want a specific feature that is not part of strudel yet, feel free to use one of the communication channels above.
Maybe you even want to help with the implementation of that feature!
## Report a Bug
If you've found a bug, or some behaviour that does not seem right, you are welcome to file an [issue](https://github.com/tidalcycles/strudel/issues).
Please check that it has not been reported before.
## Fix a Bug
To fix a bug that has been reported,
1. check that nobody else is already fixing it and respond to the issue to let people know you're on it
3. fork the repository
4. make sure you've setup the project (see below)
5. hopefully fix the bug
6. make sure the tests pass
7. send a pull request
## Write Tests
There are still many tests that have not been written yet! Reading and writing tests is a great opportunity to get familiar with the codebase.
You can find the tests in each package in the `test` folder. To run all tests, run `npm test` from the root folder.
## Project Setup
To get the project up and running for development, make sure you have installed:
- git
- node, preferably v16
then, do the following:
```sh
git clone https://github.com/tidalcycles/strudel.git && cd strudel
npm i # install at root to symlink packages
npx lerna bootstrap # install all dependencies in packages
cd repl && npm i # install repl dependencies
npm run start # start repl
```
Those commands might look slightly different for your OS.
Please report any problems you've had with the setup instructions!
## Code Style
To make sure the code changes only where it should, we are using prettier to unify the code style.
If you use VSCode, you can
1. install [the prettier extension](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode)
2. open command palette and run "Format Document With..."
3. Choose "Configure Default Formatter..."
4. Select prettier
## Package Workflow
The project is split into multiple [packages](https://github.com/tidalcycles/strudel/tree/main/packages) with independent versioning.
When you run `npm i` on the root folder, [npm workspaces](https://docs.npmjs.com/cli/v7/using-npm/workspaces) will symlink all packages
in the `node_modules` folder. This will allow any js file to import `@strudel.cycles/<package-name>` to get the local version,
which allows developing multiple packages at the same time
## Package Publishing
To publish all packages that have been changed since the last release, run:
```sh
npx lerna publish
```
## Have Fun
Remember to have fun, and that this project is driven by the passion of volunteers!
-16
View File
@@ -1,16 +0,0 @@
{
"bd": ["bd/Bassdrum-01.wav","bd/Bassdrum-02.wav","bd/Bassdrum-03.wav","bd/Bassdrum-04.wav","bd/Bassdrum-05.wav","bd/Bassdrum-06.wav","bd/Bassdrum-07.wav","bd/Bassdrum-08.wav","bd/Bassdrum-09.wav","bd/Bassdrum-10.wav","bd/Bassdrum-11.wav","bd/Bassdrum-12.wav","bd/Bassdrum-13.wav","bd/Bassdrum-14.wav"],
"cb": ["cb/Cowbell.wav"],
"cp": ["cp/Clap.wav"],
"cr": ["cr/Crash.wav"],
"hh": ["hh/Hat Closed-01.wav","hh/Hat Closed-02.wav"],
"ht": ["ht/Tom H-01.wav","ht/Tom H-02.wav","ht/Tom H-03.wav","ht/Tom H-04.wav","ht/Tom H-05.wav","ht/Tom H-06.wav"],
"lt": ["lt/Tom L-01.wav","lt/Tom L-02.wav","lt/Tom L-03.wav","lt/Tom L-04.wav","lt/Tom L-05.wav","lt/Tom L-06.wav"],
"misc": ["misc/Metal-01.wav","misc/Metal-02.wav","misc/Metal-03.wav","misc/Scratch.wav","misc/Shot-01.wav","misc/Shot-02.wav","misc/Shot-03.wav"],
"mt": ["mt/Tom M-01.wav","mt/Tom M-02.wav","mt/Tom M-03.wav","mt/Tom M-05.wav"],
"oh": ["oh/Hhopen1.wav"],
"perc": ["perc/Blow1.wav"],
"rd": ["rd/Ride.wav"],
"rim": ["rim/zRim Shot-01.wav","rim/zRim Shot-02.wav"],
"sd": ["sd/Snaredrum-01.wav","sd/Snaredrum-02.wav","sd/Snaredrum-03.wav","sd/Snaredrum-04.wav","sd/Snaredrum-05.wav","sd/Snaredrum-06.wav","sd/Snaredrum-07.wav","sd/Snaredrum-08.wav","sd/Snaredrum-09.wav","sd/Snaredrum-10.wav","sd/Snaredrum-11.wav","sd/Snaredrum-12.wav","sd/Snaredrum-13.wav","sd/Snaredrum-14.wav","sd/Snaredrum-15.wav","sd/Snaredrum-16.wav","sd/Snaredrum-17.wav","sd/Snaredrum-18.wav","sd/Snaredrum-19.wav","sd/Snaredrum-20.wav","sd/Snaredrum-21.wav"]
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+674
View File
@@ -0,0 +1,674 @@
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
<program> Copyright (C) <year> <name of author>
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<https://www.gnu.org/licenses/>.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
<https://www.gnu.org/licenses/why-not-lgpl.html>.
+45
View File
@@ -0,0 +1,45 @@
# strudel
[![Strudel test status](https://github.com/tidalcycles/strudel/actions/workflows/test.yml/badge.svg)](https://github.com/tidalcycles/strudel/actions)
An experiment in making a [Tidal](https://github.com/tidalcycles/tidal/) using web technologies. This is unstable software, please tread carefully.
- Try it here: <https://strudel.tidalcycles.org/>
- Tutorial: <https://strudel.tidalcycles.org/tutorial/>
- Technical Blog Post: <https://loophole-letters.vercel.app/strudel>
## Running Locally
After cloning the project, you can run the REPL locally:
```bash
npm run setup
npm run repl
```
## Using Strudel In Your Project
There are multiple npm packages you can use to use strudel, or only parts of it, in your project:
- [`core`](./packages/core/): tidal pattern engine
- [`mini`](./packages/mini): mini notation parser + core binding
- [`eval`](./packages/eval): user code evaluator. syntax sugar + highlighting
- [`tone`](./packages/tone): bindings for Tone.js instruments and effects
- [`osc`](./packages/osc): bindings to communicate via OSC
- [`midi`](./packages/midi): webmidi bindings
- [`tonal`](./packages/tonal): tonal functions
- [`xen`](./packages/xen): microtonal / xenharmonic functions
Click on the package names to find out more about each one.
## Contributing
There are many ways to contribute to this project! See [contribution guide](./CONTRIBUTING.md).
## Community
There is a #strudel channel on the TidalCycles discord: <https://discord.com/invite/HGEdXmRkzT>
You can also ask questions and find related discussions on the tidal club forum: <https://club.tidalcycles.org/>
The discord and forum is shared with the haskell (tidal) and python (vortex) siblings of this project.
-1
View File
@@ -1 +0,0 @@
import{W as a,J as b}from"./index.deca0c1f.js";export{a as WebMidi,b as enableWebMidi};
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
-1
View File
@@ -1 +0,0 @@
var d=Object.defineProperty;var g=(s,t,e)=>t in s?d(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e;var i=(s,t,e)=>(g(s,typeof t!="symbol"?t+"":t,e),e);import{K as S,L as y,N as T,S as B,M as I,O as R,R as W,Q as j}from"./index.deca0c1f.js";const k=s=>"("+s+")();",w=s=>URL.createObjectURL(new Blob([k(s)],{type:"text/javascript"})),m=s=>new Worker(w(s));class x{constructor(t,e=this.interval){i(this,"worker");i(this,"interval",.1);i(this,"tick",0);this.interval=e,this.worker=m(()=>{let r,o=null;const h=()=>{o&&(clearInterval(o),o=null)},c=()=>{if(h(),!r)throw new Error("no interval set! call worker.postMessage({interval}) before starting.");postMessage("tick"),o=setInterval(()=>postMessage("tick"),r*1e3)};self.onmessage=function(n){n.data=="start"?c():n.data.interval?(r=n.data.interval,o&&c()):n.data=="stop"&&h()}}),this.worker.postMessage({interval:e}),this.worker.onmessage=r=>{r.data==="tick"&&t(this.tick++,this.interval)}}start(){this.worker.postMessage("start")}stop(){this.worker.postMessage("stop"),this.tick=0}setInterval(t){this.worker.postMessage({interval:t})}}class v{constructor({audioContext:t,interval:e=.1,onEvent:r,latency:o=.1}){i(this,"worker");i(this,"pattern");i(this,"phase");i(this,"audioContext");i(this,"cps",1);this.audioContext=t,this.worker=new x((h,c)=>{const n=this.phase,l=this.phase+c*this.cps;this.phase=l,this.pattern.queryArc(n,l).forEach(a=>{var p,u;if(typeof((p=a.value)==null?void 0:p.cps)=="number"&&this.setCps((u=a.value)==null?void 0:u.cps),!!a.part.begin.equals(a.whole.begin)){if(a.context.onTrigger){const f=(a.whole.begin-n)/this.cps+this.audioContext.currentTime+o;a.context.onTrigger(f,a,this.audioContext.currentTime,this.cps)}r&&(r==null||r(a))}})},e)}start(){if(!this.pattern)throw new Error("Scheduler: no pattern set! call .setPattern first.");this.audioContext.resume(),this.phase=0,this.worker.start()}stop(){this.worker.stop()}setPattern(t){this.pattern=t}setCps(t=1){this.cps=t}}export{x as ClockWorker,v as Scheduler,S as getAudioContext,y as getCachedBuffer,T as getLoadedBuffer,B as getLoadedSamples,I as loadBuffer,R as loadGithubSamples,W as resetLoadedSamples,j as samples};
File diff suppressed because one or more lines are too long
-1
View File
@@ -1 +0,0 @@
import{U as a}from"./index.deca0c1f.js";export{a as loadWebDirt};
-1
View File
@@ -1 +0,0 @@
import{T as e,o as n,a as o,x as t,u as h,y as l,d as p,f as r,g as m,t as y,w as u,k as c,l as d,m as g,b as i,c as f,n as w,q as b,r as k,j as x,h as D,p as v,e as T,s as j,i as q,v as C}from"./index.deca0c1f.js";export{e as Tone,n as adsr,o as amsynth,t as backgroundImage,h as cleanupDraw,l as cleanupUi,p as duosynth,r as fmsynth,m as getDefaultSynth,y as getDrawContext,u as hideHeader,c as highpass,d as lowpass,g as membrane,i as metal,f as monosynth,w as noise,b as osc,k as out,x as piano,D as players,v as pluck,T as polysynth,j as sampler,q as synth,C as vol};
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
-1
View File
@@ -1 +0,0 @@
var d=Object.defineProperty,m=Object.defineProperties;var x=Object.getOwnPropertyDescriptors;var f=Object.getOwnPropertySymbols;var p=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable;var u=(r,e,t)=>e in r?d(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,v=(r,e)=>{for(var t in e||(e={}))p.call(e,t)&&u(r,t,e[t]);if(f)for(var t of f(e))T.call(e,t)&&u(r,t,e[t]);return r},w=(r,e)=>m(r,x(e));import{P as W}from"./index.deca0c1f.js";var n,b=!1;async function $(r=38400){if(!b){if(b=!0,n)return n;if("serial"in navigator){const e=await navigator.serial.requestPort();await e.open({baudRate:r});const t=new TextEncoderStream;t.readable.pipeTo(e.writable);const s=t.writable.getWriter();n=function(i){s.write(i)}}else throw"Webserial is not available in this browser."}}const j=.1;W.prototype.serial=function(...r){return this._withHap(e=>{n||$(...r);const t=(s,i,g)=>{var o="";if(typeof i.value=="object")if("action"in i.value){o+=i.value.action+"(";var c=!0;for(const[a,l]of Object.entries(i.value))a!=="action"&&(c?c=!1:o+=",",o+=`${a}:${l}`);o+=")"}else for(const[a,l]of Object.entries(i.value))o+=`${a}:${l};`;else o=i.value;const y=(s-g+j)*1e3;window.setTimeout(n,y,o)};return e.setContext(w(v({},e.context),{onTrigger:t}))})};export{$ as getWriter};
View File
View File
+16
View File
@@ -0,0 +1,16 @@
{
"files": {
"main.css": "/static/css/main.0d689283.css",
"main.js": "/static/js/main.7e790d7f.js",
"static/js/787.1c52cb78.chunk.js": "/static/js/787.1c52cb78.chunk.js",
"static/media/logo.svg": "/static/media/logo.ac95051720b3dccfe511e0e02d8e1029.svg",
"index.html": "/index.html",
"main.0d689283.css.map": "/static/css/main.0d689283.css.map",
"main.7e790d7f.js.map": "/static/js/main.7e790d7f.js.map",
"787.1c52cb78.chunk.js.map": "/static/js/787.1c52cb78.chunk.js.map"
},
"entrypoints": [
"static/css/main.0d689283.css",
"static/js/main.7e790d7f.js"
]
}
View File

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

+1
View File
@@ -0,0 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Strudel REPL"/><title>Strudel REPL</title><script defer="defer" src="/static/js/main.7e790d7f.js"></script><link href="/static/css/main.0d689283.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
View File
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+2
View File
@@ -0,0 +1,2 @@
"use strict";(self.webpackChunk_strudel_cycles_repl=self.webpackChunk_strudel_cycles_repl||[]).push([[787],{787:function(e,t,n){n.r(t),n.d(t,{getCLS:function(){return y},getFCP:function(){return g},getFID:function(){return C},getLCP:function(){return P},getTTFB:function(){return D}});var i,r,a,o,u=function(e,t){return{name:e,value:void 0===t?-1:t,delta:0,entries:[],id:"v2-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12)}},c=function(e,t){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){if("first-input"===e&&!("PerformanceEventTiming"in self))return;var n=new PerformanceObserver((function(e){return e.getEntries().map(t)}));return n.observe({type:e,buffered:!0}),n}}catch(e){}},f=function(e,t){var n=function n(i){"pagehide"!==i.type&&"hidden"!==document.visibilityState||(e(i),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},s=function(e){addEventListener("pageshow",(function(t){t.persisted&&e(t)}),!0)},m=function(e,t,n){var i;return function(r){t.value>=0&&(r||n)&&(t.delta=t.value-(i||0),(t.delta||void 0===i)&&(i=t.value,e(t)))}},v=-1,p=function(){return"hidden"===document.visibilityState?0:1/0},d=function(){f((function(e){var t=e.timeStamp;v=t}),!0)},l=function(){return v<0&&(v=p(),d(),s((function(){setTimeout((function(){v=p(),d()}),0)}))),{get firstHiddenTime(){return v}}},g=function(e,t){var n,i=l(),r=u("FCP"),a=function(e){"first-contentful-paint"===e.name&&(f&&f.disconnect(),e.startTime<i.firstHiddenTime&&(r.value=e.startTime,r.entries.push(e),n(!0)))},o=window.performance&&performance.getEntriesByName&&performance.getEntriesByName("first-contentful-paint")[0],f=o?null:c("paint",a);(o||f)&&(n=m(e,r,t),o&&a(o),s((function(i){r=u("FCP"),n=m(e,r,t),requestAnimationFrame((function(){requestAnimationFrame((function(){r.value=performance.now()-i.timeStamp,n(!0)}))}))})))},h=!1,T=-1,y=function(e,t){h||(g((function(e){T=e.value})),h=!0);var n,i=function(t){T>-1&&e(t)},r=u("CLS",0),a=0,o=[],v=function(e){if(!e.hadRecentInput){var t=o[0],i=o[o.length-1];a&&e.startTime-i.startTime<1e3&&e.startTime-t.startTime<5e3?(a+=e.value,o.push(e)):(a=e.value,o=[e]),a>r.value&&(r.value=a,r.entries=o,n())}},p=c("layout-shift",v);p&&(n=m(i,r,t),f((function(){p.takeRecords().map(v),n(!0)})),s((function(){a=0,T=-1,r=u("CLS",0),n=m(i,r,t)})))},E={passive:!0,capture:!0},w=new Date,L=function(e,t){i||(i=t,r=e,a=new Date,F(removeEventListener),S())},S=function(){if(r>=0&&r<a-w){var e={entryType:"first-input",name:i.type,target:i.target,cancelable:i.cancelable,startTime:i.timeStamp,processingStart:i.timeStamp+r};o.forEach((function(t){t(e)})),o=[]}},b=function(e){if(e.cancelable){var t=(e.timeStamp>1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?function(e,t){var n=function(){L(e,t),r()},i=function(){r()},r=function(){removeEventListener("pointerup",n,E),removeEventListener("pointercancel",i,E)};addEventListener("pointerup",n,E),addEventListener("pointercancel",i,E)}(t,e):L(t,e)}},F=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,b,E)}))},C=function(e,t){var n,a=l(),v=u("FID"),p=function(e){e.startTime<a.firstHiddenTime&&(v.value=e.processingStart-e.startTime,v.entries.push(e),n(!0))},d=c("first-input",p);n=m(e,v,t),d&&f((function(){d.takeRecords().map(p),d.disconnect()}),!0),d&&s((function(){var a;v=u("FID"),n=m(e,v,t),o=[],r=-1,i=null,F(addEventListener),a=p,o.push(a),S()}))},k={},P=function(e,t){var n,i=l(),r=u("LCP"),a=function(e){var t=e.startTime;t<i.firstHiddenTime&&(r.value=t,r.entries.push(e),n())},o=c("largest-contentful-paint",a);if(o){n=m(e,r,t);var v=function(){k[r.id]||(o.takeRecords().map(a),o.disconnect(),k[r.id]=!0,n(!0))};["keydown","click"].forEach((function(e){addEventListener(e,v,{once:!0,capture:!0})})),f(v,!0),s((function(i){r=u("LCP"),n=m(e,r,t),requestAnimationFrame((function(){requestAnimationFrame((function(){r.value=performance.now()-i.timeStamp,k[r.id]=!0,n(!0)}))}))}))}},D=function(e){var t,n=u("TTFB");t=function(){try{var t=performance.getEntriesByType("navigation")[0]||function(){var e=performance.timing,t={entryType:"navigation",startTime:0};for(var n in e)"navigationStart"!==n&&"toJSON"!==n&&(t[n]=Math.max(e[n]-e.navigationStart,0));return t}();if(n.value=n.delta=t.responseStart,n.value<0||n.value>performance.now())return;n.entries=[t],e(n)}catch(e){}},"complete"===document.readyState?setTimeout(t,0):addEventListener("load",(function(){return setTimeout(t,0)}))}}}]);
//# sourceMappingURL=787.1c52cb78.chunk.js.map
File diff suppressed because one or more lines are too long

Some files were not shown because too many files have changed in this diff Show More