145 Commits

Author SHA1 Message Date
Felix Roos
34176ab5f8 refactor:
- dedupe flash / highlighting logic
- codemirror logic now lives only in codemirror package
- remove old highlighting logic
- use codemirror package in react package
- cleanup CodeMirror6.jsx
- pull setMiniLocations into useHighlighting
- migrate MiniRepl, nano-repl + Repl to new highlighting
2023-07-04 21:49:39 +02:00
Felix Roos
7f12ce9b45 fix: format 2023-07-04 18:47:44 +02:00
Felix Roos
dacd9afac0 comment out opacity logic for now 2023-07-04 18:34:22 +02:00
Felix Roos
3fc5bb31d0 fix: do not recreate haps mapping on update 2023-07-04 18:22:22 +02:00
Matthew Kaney
f5b092acf2 Split up highlighting logic and add progress flash 2023-07-03 17:06:39 -04:00
Matthew Kaney
ba9562f000 Remove highlights when code stops 2023-07-03 10:52:06 -04:00
Matthew Kaney
aded178ab7 Pass mininotation locations into highlight state 2023-07-03 03:55:49 -04:00
Felix Roos
0b5d905120 fix: adaptive highlighting
- transpiler now uses m function with globalOffset
- patternifyAST now accepts global offset
- patternifyAST now calls .withLoc with global leaf location
- .withLoc replaces .withLocation + .withMiniLocation
- simple locs (offsets) are now used everywhere
- some tests fail, seems some haps have reordered...
- wip: Repl still uses hardcoded updateMiniLocations
- todo: find way to call updateMiniLocations dynamically
2023-07-03 05:15:32 +02:00
Felix Roos
63c23736ad wip: adaptive highlighting 2023-07-02 18:33:44 +02:00
Felix Roos
bd8ad1ed1b fix: out of range error due to rerender 2023-06-30 22:40:02 +02:00
Felix Roos
7cfed80443
Merge pull request #598 from tidalcycles/clip-support-floats
clip now works like legato in tidal
2023-06-23 09:55:18 +02:00
Roipoussiere
f37a220a05 add checkbox in settings to enable line wrapping 2023-06-15 11:52:29 +02:00
Felix Roos
aa51c2b6dd Merge remote-tracking branch 'upstream/main' into line_wrap 2023-06-15 10:59:52 +02:00
Felix Roos
92da70a7ae Merge remote-tracking branch 'origin/main' into clip-support-floats 2023-06-15 10:46:10 +02:00
Felix Roos
665cf6ac65
Merge pull request #588 from roipoussiere/enable_autocomplete
enable auto-completion
2023-06-12 23:24:28 +02:00
Felix Roos
8c9e06c329 - clip now works like legato in tidal
- supports floats
- hap.duration now respects clip value
- hap.endClipped is now end*clip
- visualizations show clipped length
- clip(0) will now be silence
2023-06-12 22:39:32 +02:00
Roipoussiere
5e09c3c318 add autocompletion extension from useMemo 2023-06-09 18:28:16 +02:00
Roipoussiere
8e6909478c autocompletion: lint 2023-06-09 16:42:31 +02:00
Roipoussiere
2d2d0cabb3 Add option in settings to enable autocompletion 2023-06-09 16:38:48 +02:00
Roipoussiere
6f04a1b8fa autocomplete: add vanilla js completion 2023-06-09 14:52:07 +02:00
Roipoussiere
a9ad3a56ad autocomplete: avoid tabs overlapping 2023-06-09 14:30:20 +02:00
Roipoussiere
3069b14e9c enable autocompletion 2023-06-09 13:41:40 +02:00
Felix Roos
3ccbd35fad add label support to pianoroll 2023-06-09 00:25:54 +02:00
Felix Roos
02d793e9e0 Merge remote-tracking branch 'origin/main' into workshop-new 2023-06-07 20:19:34 +02:00
Roipoussiere
0c2147d9c5 repl: add option to display line numbers 2023-06-07 15:34:57 +02:00
Roipoussiere
b6d1f96930 editor: enable line wrapping 2023-06-06 13:29:55 +02:00
Felix Roos
d2dffe3186 MiniRepl: consume font settings 2023-05-28 12:42:15 +02:00
Felix Roos
fc06181217 - add claviature flag to minirepl
- bring back option+dot on macos
- consume more editor settings in minirepl
2023-05-27 13:30:57 +02:00
Felix Roos
0d6fcf78d8 hide mini repl headers + improve workshop 2023-05-26 16:05:53 +02:00
Felix Roos
82225f0b81 started workshop pages 2023-05-26 14:12:53 +02:00
Felix Roos
d3240a75d0 fix: dupe style.css to Repl.css
for some reason they were missing after update
+ darken line backgrounds
+ change preview port to keep workbox out of dev server
2023-05-12 11:56:50 +02:00
Felix Roos
d74cc234c4 fix: thinner outline for highlights with .color 2023-05-12 10:06:55 +02:00
Felix Roos
b88e0ecb78 fix: colorable highlighting 2023-04-22 15:25:00 +02:00
Felix Roos
55c533c947 improve initial loading + wait before eval 2023-03-23 21:56:20 +01:00
Felix Roos
73169563c4 fix period key for dvorak + remove duplicated code 2023-03-23 21:37:38 +01:00
Felix Roos
81ab5c78e2 update react to 18 2023-03-03 20:38:20 +01:00
Felix Roos
3cfb0f4c76
Merge pull request #493 from tidalcycles/cps
implement cps in scheduler
2023-03-01 09:27:26 +01:00
Felix Roos
1f7e293204 add setcps to global scope 2023-02-28 23:56:11 +01:00
Felix Roos
5de40b6bf5 fix disabled button take 2 2023-02-28 23:02:28 +01:00
Felix Roos
e9d577496b fix disabled button 2023-02-28 22:48:06 +01:00
Felix Roos
18c7e02609 fix: minirepl styles for package 2023-02-28 22:40:18 +01:00
Felix Roos
7e1351507a add variables to react tailwind config 2023-02-28 22:17:24 +01:00
Felix Roos
032acbd27c comment out autocomplete 2023-02-28 22:11:17 +01:00
Felix Roos
ead5942ef0 implement cps + add baasic tempo control ui 2023-02-28 13:00:35 +01:00
Felix Roos
0006d57a4a move isZen to nanostore
+ correctly parse non strings in store
2023-02-22 22:47:33 +01:00
Felix Roos
70f7e73b9a store footer tab + latest code in nanostore 2023-02-22 22:23:54 +01:00
Felix Roos
b67b049802 refactor settings to nanostores 2023-02-22 22:04:39 +01:00
Felix Roos
ff99dbcd22 customizable font family 2023-02-22 20:28:22 +01:00
Felix Roos
8f6c1531fa more contrast for blackscreen theme 2023-02-22 19:45:06 +01:00
Felix Roos
89cd0c769b fix bluescreen line bg 2023-02-19 23:27:56 +01:00