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
fdb76867a7
weave and weaveWith ( #465 )
...
Added weave and weaveWith from tidal
2023-02-18 00:00:18 +00: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
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
d1d9b37ec7
supper notes without octave
2022-12-23 23:01:07 +01:00
Felix Roos
c6d57f6a56
fix non note samples
2022-12-12 20:53:11 +01:00
Felix Roos
09b06da403
fix error message
2022-12-12 20:45:15 +01:00
Felix Roos
df73ce8a60
add freq support to sampler
2022-12-12 20:41:09 +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
9717c696d8
add s for sharp (fixes notes example)
2022-11-17 10:16:29 +01:00
Felix Roos
1a1363ef77
scheduler error handling
2022-11-10 22:25:58 +01:00
Felix Roos
0485632e22
Merge remote-tracking branch 'origin/main' into general-purpose-scheduler
2022-11-06 11:06:32 +01:00
Felix Roos
e128b02da1
support object arithmetic
2022-11-01 21:31:39 +01:00
Felix Roos
7e7e299bce
Merge remote-tracking branch 'origin/main' into general-purpose-scheduler
2022-10-29 17:56:30 +02:00
MysteryHouse
113adcc5cc
Core util tests ( #226 )
...
* Error message formatting, deprecate unused functions
* Add 'test-coverage' script
* Additional test coverage for core util module
* Additional tests for core util module
by @mystery-house
2022-10-20 08:26:28 +01:00
Felix Roos
1cd31cfce9
fix getFrequency for .note
2022-08-17 21:25:04 +02:00
Felix Roos
f2b2f4f226
Merge pull request #183 from tidalcycles/soundfont-file-support
...
Soundfont file support
2022-08-14 16:04:14 +02:00
Felix Roos
48526824d6
support old way of setting frequencies
2022-08-14 15:51:01 +02:00
Felix Roos
467b3db824
handle objects in getPlayableNoteValue
2022-08-07 21:21:44 +02:00
Felix Roos
8d1c98f03e
always throw error for invalid notes
2022-08-06 21:37:41 +02:00
Felix Roos
fd61001b4d
getFreq + midi2note helpers
2022-07-28 23:55:17 +02:00
Felix Roos
dd3f4e4751
support "s" as "#" alternative inside note names
2022-06-27 00:03:06 +02:00
alex
f8f744dd87
standardise on hap rather than event, especially in function names
2022-05-05 17:20:36 +01: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
3742bf384c
Remove recursion from mod
2022-04-22 17:01:28 +01:00
Felix Roos
f8739e341b
respect midi numbers
2022-04-18 18:57:28 +02:00
Felix Roos
1b35dd0c55
add preliminary getFrequency
2022-04-16 21:34:05 +02:00
alex
544e32e0f8
add 'constant'
2022-04-16 10:02:35 +01:00
alex
9eba883978
move some utilities to utils.mjs
2022-04-13 09:03:31 +01:00
Felix Roos
de3c453763
add pipe + compose
2022-04-11 22:31:02 +02:00
Felix Roos
6f60a3a1d5
start packaging
2022-03-25 14:39:25 +01:00