60 Commits

Author SHA1 Message Date
Alexandre G.-Raymond
a194180130
Fix wchooseCycles not picking the whole pattern (#1061) 2024-04-21 10:03:55 +01:00
Alexandre Gravel-Raymond
731d545a3f Fix undegrade doc naming 2024-03-24 14:15:20 +01:00
Alexandre Gravel-Raymond
fc4c70c94f Fix codestyle 2024-03-24 12:25:54 +01:00
Alexandre Gravel-Raymond
69211b8701 Document signals 2024-03-24 12:22:26 +01:00
Felix Roos
c2ef90d67c rename trig -> reset, trigzero -> restart 2024-03-23 11:22:30 +01:00
Felix Roos
c524ebc7f3 fix: add name tags 2024-02-29 15:25:31 +01:00
Felix Roos
0deb905cdf rename pick*Outer > pickOut
+ add pick*Squeeze alias to inhabit*
2024-02-29 15:21:44 +01:00
eefano
dbfdbcf2b7 typo 2024-02-25 14:39:38 +01:00
eefano
0986b14508 added pickOuter, pickmodOuter 2024-02-25 14:31:07 +01:00
eefano
d5e67fe13f Update signal.mjs
typo
2024-02-18 19:01:05 +01:00
eefano
00c7da45c0 Update signal.mjs
now pickRestart() and pickReset()
2024-02-18 18:55:05 +01:00
eefano
3347817350 Update signal.mjs
using trigZeroJoin in pickr() instead
2024-02-18 18:41:06 +01:00
eefano
88ece92a78 Update signal.mjs
Make pickr() handle dictionaries also
2024-02-18 16:40:27 +01:00
eefano
03a73fb95e Update signal.mjs
Fixed pickr() description
2024-02-18 16:21:50 +01:00
eefano
23c55c9636 Update signal.mjs
prettier fix
2024-02-18 16:03:01 +01:00
eefano
12c6f4e95f Update signal.mjs
added pickr() and pickrmod()
2024-02-18 15:30:24 +01:00
Alex McLean
6422047cff
make 0.5hz cps the default (#931)
* 0.5 default cps

* 1 -> 0.5 cps defaults

* start moving examples to 2Hz

* more 2Hz doc edits

* small tweaks

* format

* adapt cycles page

* adapt pitch page

* tonal page

* accumulation

* synth page

* adapt conditional-modifiers

* audio effects page

* adapt signals doc

* fix: errors for signals

* adapt signals page

* start time modifiers

* adapt time modifiers

* adapt factories

* hydra + pattern intro

* adapt mini notation page

* start recipes

* adapt recipes page

* use code_v1 table

* delete old dbdump + add new csv based tool

* fix: tests

* fix: cpm

* shuffle featured patterns

* fix: snapshot

---------

Co-authored-by: Felix Roos <flix91@gmail.com>
2024-01-22 19:02:34 +00:00
Renzo Torr-
68113937ff code format 2024-01-19 14:06:24 -03:00
Renzo Torr-
9ffbc06cf9 add pickF and pickmodF
allows to pick functions via a pattern of numbers, to apply to another pattern
2024-01-19 02:45:54 -03:00
Alex McLean
98b7859605
pick, pickmod, inhabit, inhabitmod (#921)
* the args for `pick` are now reversed as standard (old behaviour still supported to avoid breaking change)
* `pick` is also now a pattern method
* `pick` now also accepts a lookup table for pick-by-name as an alternative to pick-by-index from a list
* `inhabit` added with same behaviour as `pick`, except cycles from source patterns are squeezed into events of inhabited patterns
* Also some general doc tidying, sorry for the noise..
* There is also `pickmod` and `inhabitmod`, for wrapping indexes around rather than clamping them
2024-01-18 17:08:29 +00:00
Alex McLean
a8db707440
Revert "pick now accepts lookup tables, with alternate cycle squeezing behaviour as new inhabit function" (#920) 2024-01-18 17:04:26 +00:00
Alex McLean
873a412179
pick now accepts lookup tables, with alternate cycle squeezing behaviour as new inhabit function (#918)
- the args for `pick` are now reversed (breaking change!)
- `pick` is also now a method on the inhabited pattern
- `pick` now also accepts a lookup table
- `inhabit` added with same behaviour as `pick`, except cycles from source patterns are squeezed into events of inhabited patterns
- Also some general doc tidying, sorry for the noise..
- There is now also `pickmod` and `inhabitmod`, for wrapping indexes around rather than clamping them
2024-01-18 16:45:39 +00:00
Felix Roos
74b9279416 update eslint 2023-12-31 00:03:45 +01:00
Jade Rowland
fd6c713119 move to signal file with other choose functions 2023-10-31 12:18:19 -04:00
Jade Rowland
912a661c04 fixed example test failure 2023-10-17 23:03:14 -04:00
Jade Rowland
d3edc62fc7 document function 2023-10-17 21:31:11 -04:00
Jade Rowland
6b5de5fec8 fixed 2023-10-17 01:33:51 -04:00
Felix Roos
260b831815 refactor: legato -> clip 2023-06-14 00:22:55 +02:00
Felix Roos
468ccc6288 add run + test + docs 2023-01-19 11:47:11 +01:00
Felix Roos
bcac3c5b84 fix typo 2022-12-11 00:08:13 +01:00
Felix Roos
4f7c013c78 refactor most signal functions 2022-12-10 21:03:36 +01:00
Felix Roos
09b15a07c6 use register for degradeBy / undegradeBy 2022-12-10 19:25:51 +01:00
Alex McLean
e1a532500e
Tidying up core (#256)
* remove _ prefixes except for functions to be patternified
* categorise pattern methods
* experimental support for `.add.squeeze` and friends as alternative to `.addSqueeze`
* `every` is now an alias for `firstOf` with additional `lastOf` (which every will become an alias for next)
2022-11-22 08:51:25 +00:00
Felix Roos
e128b02da1 support object arithmetic 2022-11-01 21:31:39 +01:00
Felix Roos
e38513f077 more fixes 2022-10-29 17:51:46 +02:00
Felix Roos
08c4c641ec add note calls everywhere 2022-10-29 17:38:54 +02:00
Felix Roos
ecc4e1803c remove all occurrences of .out() 2022-10-27 19:47:07 +02:00
Felix Roos
19b8f073b1 dedupe most of core api doc 2022-09-17 22:46:30 +02:00
Felix Roos
dd69e4caff doc: rand irand perlin 2022-09-17 21:03:58 +02:00
Felix Roos
f0e412a443 doc: chooseCycles + mini shorthands 2022-09-14 23:40:48 +02:00
Felix Roos
ce91d36b7a doc: random functions 2022-09-14 23:16:24 +02:00
Felix Roos
8e61673bd6 doc: degradeBy 2022-09-14 21:54:42 +02:00
Felix Roos
f5efa18e96 fix: jsdoc comments 2022-08-02 22:56:04 +02:00
alex
7fbd4527e5 chooseInWith, choose2, randcat, and some reformatting 2022-07-30 22:24:26 +01:00
alex
d79716c3f8 add chooseInWith/chooseCycles 2022-07-30 09:27:43 +01:00
Felix Roos
93e565f8df document non random signal functions 2022-05-28 23:43:42 +02:00
alex
53d82e5126 Prettify 2022-05-02 21:27:02 +01:00
alex
ee514ee8ba redo headers 2022-04-28 14:38:41 +01:00
alex
28ebf6559e Fix steady() 2022-04-17 18:25:38 +01:00
alex
eccb20c3b7 Fix choose and add weighted wchoose 2022-04-16 23:23:15 +01:00