50 Commits

Author SHA1 Message Date
Felix Roos
961bbf6f55 Revert "Another attempt at composable functions - WIP (#390)"
This reverts commit cbae3558969ec85c003c90a076ffeff6fa254bd4.
2023-02-27 15:20:49 +01:00
Alex McLean
cbae355896
Another attempt at composable functions - WIP (#390)
Summary of changes:

- Made unary functions composable, including controls. So e.g. s("bd sd").every(3,fast(2).iter(4).n(4)) works the same as s("bd sd").every(3,x => x.fast(2).iter(4).n(4))
- Made operators/alignments composable too, so s("bd sd").every(3, set.squeeze.n(3, 4)) works
- Patterns are not treated as functions, so s("bd sd").every(3, n(5)) is an annoying runtime error. s("bd sd").every(3, set.n(5)) does work though.

Other minor changes:

- standardised alignment 'squeezeOut' as lowercase 'squeezeout'
- made firstCycleValues turn haps sorted in order of 'part'
2023-02-16 23:15:21 +00:00
Felix Roos
8da81104aa doc: note 2023-02-09 12:42:37 +01:00
Felix Roos
97cbdc6b0f use jsdoc in autocomplete, still not context aware
+ add noAutocomplete flags
+ add superdirtOnly flags
2023-02-09 12:19:38 +01:00
Felix Roos
0fdae70461 improve samples doc 2023-02-05 16:28:43 +01:00
Felix Roos
0ec65c85d3 fix examples + snapshots 2023-02-05 14:52:01 +01:00
Felix Roos
1b99ac92dd categorize effects + add envelope doc
+ use short, more logical filter params as default
2023-02-05 14:34:59 +01:00
Felix Roos
ee9b89b6d5 add more synonyms 2023-01-12 17:40:58 +01:00
Felix Roos
8781fa2e33 add filter synonyms 2023-01-06 21:37:31 +01:00
Felix Roos
ebb1bbc966 improve effects doc 2023-01-06 21:14:19 +01:00
Felix Roos
63fffd7493 docs: envelope functions 2022-12-23 17:57:01 +01:00
Alex McLean
4340f024d3
Reorganise pattern.mjs with a 'toplevel first' regime (#286)
'toplevel first' regime
* loopAt has its optional cps parameter removed, with loopAtCps added for supporting that usage.
* rename bitlevel operations e.g. _and -> band

Co-authored-by: Felix Roos <flix91@gmail.com>
2022-12-10 14:39:03 +00:00
Alex McLean
f827201ee0
Switch 'operators' from .whatHow to .what.how, and make sure there are toplevel curried functions for all of them. Rename util.mod to util._mod, to make room for toplevel 'operator' of that name. (#285) 2022-12-07 19:07:55 +00:00
Felix Roos
e2898ee5bf add eslint + fix lint errors 2022-11-24 15:30:11 +01:00
Felix Roos
4fc7ef698a code format 2022-11-04 20:14:57 +01:00
Felix Roos
240a8930ef
Merge pull request #238 from tidalcycles/object-arithmetic
Object arithmetic
2022-11-02 11:42:32 +01:00
Felix Roos
e3bc63e4fa fix: osc notes 2022-11-01 21:45:25 +01:00
Felix Roos
0c5bdd0205 make bank a normal param 2022-10-31 23:30:50 +01:00
Felix Roos
e38513f077 more fixes 2022-10-29 17:51:46 +02:00
Felix Roos
dac906a79d fix sample name 2022-10-27 21:20:09 +02:00
Felix Roos
ecc4e1803c remove all occurrences of .out() 2022-10-27 19:47:07 +02:00
Felix Roos
c4b482634f doc: begin end 2022-09-25 23:35:30 +02:00
Felix Roos
04973d153b doc: legato gain velocity 2022-09-25 22:39:16 +02:00
Felix Roos
5018669ded roomsize 2022-09-25 20:08:02 +02:00
Felix Roos
cafcead62e doc: web audio effects 2022-09-17 15:18:57 +02:00
Felix Roos
e58aff41f9 begin webaudio tutorial 2022-09-16 23:25:42 +02:00
Felix Roos
55f91143d9 rename choke -> clip 2022-06-28 21:50:08 +02:00
Felix Roos
c1ce72469c webaudio optimizations
- samples with obejct format for pitch declaration
- support note to repitch samples
- support choke to fit samples to hap duration
- support "legacy" context.velocity in .out
- support ":" inside s or note to set n
- fix sample fadeout for soundfonts and choke
- move gain before filters
2022-06-27 00:01:28 +02:00
alex
f6c04f9e74 no need to involve controls[name] 2022-06-21 12:53:00 +01:00
alex
e167300194 add created param to controls 2022-06-21 12:15:35 +01:00
Felix Roos
4c05876066 rewrite webaudio + migrate tunes + empty setters 2022-06-17 23:23:51 +02:00
Felix Roos
d10b6f04cf
Merge pull request #110 from tidalcycles/create-param
add createParam + createParams
2022-06-13 21:28:27 +02:00
Felix Roos
b5b0fbbd38 small fixes 2022-05-24 00:03:50 +02:00
Felix Roos
1b8a12dd2a doc 2022-05-22 21:52:46 +02:00
Felix Roos
b0c6236c24 even more doc 2022-05-22 21:42:30 +02:00
Felix Roos
8646410e6f add n + todos 2022-05-22 16:23:51 +02:00
Felix Roos
b2743108f1 dont render attack yet 2022-05-22 16:01:17 +02:00
Felix Roos
4be798d15a more doc 2022-05-22 15:59:56 +02:00
Felix Roos
4c4d0b426e even more control doc + more logical grouping 2022-05-22 12:26:45 +02:00
Felix Roos
58104b5a3a document more controls 2022-05-22 11:53:29 +02:00
Felix Roos
68a3842c8c document more controls 2022-05-22 08:35:45 +02:00
Felix Roos
987cc63764 test control doc 2022-05-21 22:51:56 +02:00
Felix Roos
e7def57c5b add createParam + createParams 2022-05-05 20:54:49 +02:00
alex
ee514ee8ba redo headers 2022-04-28 14:38:41 +01:00
alex
b370c405da Add pattern composers, implements #82 2022-04-21 14:13:26 +01:00
alex
f75da0e2e3 separate out strudel.mjs, make index.mjs aggregate module 2022-04-13 17:25:02 +01: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