484 Commits

Author SHA1 Message Date
Felix Roos
5f4d8f6862 add tailwind 2022-08-18 16:15:23 +02:00
Felix Roos
9c7d0951b7 pause action + started flag 2022-08-18 16:13:50 +02:00
Felix Roos
75e57c75cf add master gain + panic 2022-08-18 16:13:27 +02:00
Felix Roos
04502b05d4 better default tune + fix dirty state 2022-08-18 15:16:29 +02:00
Felix Roos
e3e3a8404a nano-repl add modules + proper eval 2022-08-18 00:27:16 +02:00
Felix Roos
48bf17614f fix: runtime error reify undefined 2022-08-18 00:26:57 +02:00
Felix Roos
1941b1ff65 add react nano-repl example 2022-08-17 23:59:40 +02:00
Felix Roos
d667e790b9 export new hooks 2022-08-17 23:58:34 +02:00
Felix Roos
bc345b569b add hooks for scheduler and evaluator 2022-08-17 23:57:49 +02:00
Felix Roos
ee84b4e013 export webaudio out as separate function 2022-08-17 23:56:36 +02:00
Felix Roos
e77129fa51 scheduler error callback 2022-08-17 23:55:06 +02:00
Felix Roos
591855919e working default tune 2022-08-17 21:29:57 +02:00
Felix Roos
7af6188a8a move scheduler to core + move audioctx to userland 2022-08-17 21:26:00 +02:00
Felix Roos
1cd31cfce9 fix getFrequency for .note 2022-08-17 21:25:04 +02:00
Felix Roos
0522996b7f bump soundfont package for rerelease 2022-08-14 18:02:06 +02:00
Felix Roos
e9e25ef8d8 Publish
- @strudel.cycles/core@0.2.0
 - @strudel.cycles/eval@0.2.0
 - @strudel.cycles/midi@0.2.0
 - @strudel.cycles/mini@0.2.0
 - @strudel.cycles/react@0.2.0
 - @strudel.cycles/soundfonts@0.2.0
 - @strudel.cycles/tonal@0.2.0
 - @strudel.cycles/tone@0.2.0
 - @strudel.cycles/webaudio@0.2.0
 - @strudel.cycles/webdirt@0.2.0
 - @strudel.cycles/xen@0.2.0
2022-08-14 17:56:28 +02:00
Felix Roos
a08325c975 add soundfont2 dependency 2022-08-14 17:51:07 +02:00
Felix Roos
4d8adde9d5
Merge pull request #185 from bpow/mini-notation-random-offsets
change "stride"/"offset" of successive degradeBy/chooseIn
2022-08-14 17:40:41 +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
596ae696f9 Merge branch 'main' into soundfont-file-support 2022-08-14 14:53:53 +02:00
Felix Roos
4e09cc14b6 fix #178 2022-08-14 11:27:13 +02:00
Bradford Powell
58dc46b445 change "stride"/"offset" of successive degradeBy/chooseIn
This avoids (without fixing) #184).

Note that the offset in tidal is currently 0.0001, but using this
would result in excess correlation between sequential uses of
random, which would manifest in failure of the 'supports the randome
choice operator with nesting' test. So I just used 0.0002 instead
2022-08-13 21:55:17 -04:00
Felix Roos
f34d0a29e8 memo all things codemirror 2022-08-13 18:39:38 +02:00
Felix Roos
365a90e72e Merge remote-tracking branch 'origin/main' into soundfont-file-support 2022-08-13 16:31:50 +02:00
Felix Roos
98f4d4de8b remove cps-sketch build 2022-08-13 16:28:31 +02:00
Felix Roos
57f84748ec Merge remote-tracking branch 'origin/HEAD' into optimize-scheduler 2022-08-13 16:26:39 +02:00
Felix Roos
aff819069f relative script src 2022-08-12 22:32:37 +02:00
Felix Roos
af585588af rebuild example for cps control 2022-08-12 22:30:32 +02:00
Felix Roos
eaf6617a43 allow changing cps from a hap 2022-08-12 22:28:19 +02:00
Felix Roos
4b294c4aff build example 2022-08-12 22:03:35 +02:00
Felix Roos
c2354bffa2 use phase to allow smooth tempo changes 2022-08-12 22:01:09 +02:00
Felix Roos
ea1ffca4ae remove lastEnd 2022-08-12 01:27:01 +02:00
Felix Roos
86a68d78c1 test build 2022-08-12 00:57:36 +02:00
Felix Roos
2e4a3516c8 example: import from modules 2022-08-12 00:53:40 +02:00
Felix Roos
e71fec0e95 change theme 2022-08-11 23:15:27 +02:00
Felix Roos
9478915cf4 work on scheduler:
- simplify clockworker (no audioContext)
- tick based scheduler with cps
- support cps in .out
2022-08-11 22:58:37 +02:00
Felix Roos
2f1d963126 dont use beforeAll 2022-08-09 23:45:19 +02:00
Felix Roos
17d0b7d291 bump vitest + remove mocha 2022-08-09 23:09:02 +02:00
Felix Roos
543d5f0619 test with evalScope instead of extend 2022-08-09 23:07:24 +02:00
Felix Roos
8b088ab6c2 migrate mini test 2022-08-09 23:06:16 +02:00
Felix Roos
29009e14f4 Merge remote-tracking branch 'origin/HEAD' into vitest 2022-08-09 22:08:45 +02:00
Felix Roos
3986c407ff cache loaded soundfonts 2022-08-07 23:53:14 +02:00
Felix Roos
8bd56d29d6 add sfumato soundfont player 2022-08-07 21:30:02 +02:00
Felix Roos
467b3db824 handle objects in getPlayableNoteValue 2022-08-07 21:21:44 +02:00
Bradford Powell
0a558b963d add probabilistic tests for the ? and | mini-notation operators
The tests are probabilistic, so it is possible that if the
pseudo-random number generator changes in the future, we might
get results that fail. They work for the current PRNG, though,
and use boundaries for the number of values of different types
such that there should only be about a 1% probability that the
tests would fail by chance assuming that the PRNG returns
evenly distributed values.
2022-08-06 18:22:03 -04:00
Bradford Powell
1227d98904 add a non-probabilistic test for the ? operator
This really just tests that the ? operator faithfully gets represented
as degradeBy(0.5)
2022-08-06 18:22:03 -04:00
Bradford Powell
f533e4a5d0 Change offset for "stateful random" streams
This would no longer match with Tidal (which uses
0.0001), but reduces the correlation among the
the different random streams in the mini-notation's
parsing of ? and |
2022-08-06 18:22:03 -04:00
Bradford Powell
8988408d18 update krill-parser for the changes to .pegjs file 2022-08-06 18:22:02 -04:00
Bradford Powell
f858d89f7b implement random choice in mini notation
this will require update to krill-parser.js (aggregated
in later commit) to work properly
2022-08-06 18:22:02 -04:00