Tristan de Cacqueray
1b8998ac14
Fix shader reload
...
The attribute for the draw call is called drawFrame, not draw.
2024-10-18 18:15:15 -04:00
Tristan de Cacqueray
f0ddb2d595
Add initial shader module
...
This change adds the `loadShader` and `shader` function, to be used like this:
```strudel
await loadShader`
// The modulation targets
uniform float iColor;
void mainImage( out vec4 fragColor, in vec2 fragCoord ) {
vec2 uv = fragCoord / iResolution.xy;
vec3 col = 0.5 + 0.5*cos(iColor+uv.xyx+vec3(0,2,4));
fragColor = vec4(col, 0);
}
`
$: s("bd").shader({uniform: 'iColor'})
```
2024-10-18 11:40:09 -04:00
Felix Roos
1acb675f5a
doc: visual functions
2024-06-02 23:12:31 +02:00
Felix Roos
faba4a4e4e
implement onPaint with pattern state
2024-06-02 03:00:57 +02:00
Felix Roos
375c68775c
make sure draw logic works with multiple repls
2024-06-01 15:41:55 +02:00
Felix Roos
2aa1acfd95
Publish
...
- @strudel/codemirror@1.1.0
- @strudel/core@1.1.0
- @strudel/csound@1.1.0
- @strudel/draw@1.1.0
- @strudel/embed@1.1.0
- hs2js@0.1.0
- @strudel/hydra@1.1.0
- @strudel/midi@1.1.0
- @strudel/mini@1.1.0
- @strudel/osc@1.1.0
- @strudel/repl@1.1.0
- @strudel/sampler@0.1.0
- @strudel/serial@1.1.0
- @strudel/soundfonts@1.1.0
- superdough@1.1.0
- @strudel/tidal@0.1.0
- @strudel/tonal@1.1.0
- @strudel/transpiler@1.1.0
- @strudel/web@1.1.0
- @strudel/webaudio@1.1.0
- @strudel/xen@1.1.0
2024-05-31 23:07:26 +02:00
Felix Roos
9774e9627b
Merge branch 'main' into fix-import
2024-05-20 23:23:31 +02:00
Felix Roos
18abcaccbb
add fallback theme
2024-04-04 00:03:43 +02:00
Felix Roos
6ff7697cfd
fix: use foreground color for pianoroll playhead
2024-04-04 00:03:32 +02:00
Felix Roos
6479c60387
tweaks
2024-04-01 23:21:32 +02:00
Felix Roos
c7f811e14d
fix: ignore haps that error at getFrequency
2024-04-01 17:04:03 +02:00
Felix Roos
539160630d
more settings
2024-04-01 15:30:19 +02:00
Felix Roos
8a3e9171a4
basic pitchwheel vis
2024-04-01 15:19:50 +02:00
Felix Roos
a8c2586da6
fix: lint
2024-03-28 10:23:46 +01:00
Felix Roos
c400deac74
visuals now adhere to theme by default
2024-03-28 10:23:07 +01:00
Felix Roos
b5720355f9
fix: allow multiple visuals for the same pattern
...
+ using .tag function instead of single .id
2024-03-28 09:31:12 +01:00
Felix Roos
ab015ff48a
remove old .draw, rename .onFrame to .draw
...
+ breaking: from, to are now called lookbehind, lookahead
+ migrate .pianoroll
2024-03-28 07:35:01 +01:00
Felix Roos
eb8ac29136
add memory to onFrame
2024-03-28 07:26:32 +01:00
Felix Roos
04a0952a22
simplify draw plumbing
2024-03-28 06:25:24 +01:00
Felix Roos
0eccbae048
improve spiral colors
2024-03-23 12:17:25 +01:00
Felix Roos
f83a156317
Merge branch 'color-in-hap-value' into inline-punchcard
2024-03-23 12:07:11 +01:00
Felix Roos
2857e816d2
add Pattern.id + use it for _punchcard and _spiral
2024-03-23 12:06:31 +01:00
Felix Roos
d036635915
move color to hap value
2024-03-23 00:20:00 +01:00
Felix Roos
6b98e414c6
make onPaint work with mutiple repls on screen
...
+ add warning if stock onPaint is not overloaded
2024-03-19 08:44:05 +01:00
Felix Roos
dd78dc9606
fix: animation frame cleanup
2024-03-16 02:42:26 +01:00
Felix Roos
1043baf08a
fix: catch errors in pianoroll getValue
2024-03-15 12:24:03 +01:00
Felix Roos
6dce9d5deb
support multiple animationFrames
...
+ break out spiral draw logic
2024-03-15 09:49:00 +01:00
Felix Roos
48e0691eec
add pianoroll widget
2024-03-15 01:40:21 +01:00
Felix Roos
ae7807643b
Merge remote-tracking branch 'origin/main' into velocity-in-value
2024-03-10 00:44:02 +01:00
Felix Roos
0f07bfc9d7
rename: canvas -> draw
2024-03-07 13:24:52 +01:00