mirror of
https://codeberg.org/uzu/strudel
synced 2026-08-10 08:03:37 -04:00
pianoroll improvements:
- add label / activeLabel controls - add new pianoroll options: - fill - fillActive - strokeActive - stroke - hideInactive - colorizeInactive - fontFamily - add wordfall method - fix: some haps were drawn with wrong length - pianoroll labels now use set fontFamily - hide fold gutter
This commit is contained in:
@@ -53,3 +53,7 @@
|
||||
#code .cm-cursor {
|
||||
border-left: 2px solid currentcolor !important;
|
||||
}
|
||||
|
||||
#code .cm-foldGutter {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
@@ -50,6 +50,7 @@ const modules = [
|
||||
import('@strudel.cycles/serial'),
|
||||
import('@strudel.cycles/soundfonts'),
|
||||
import('@strudel.cycles/csound'),
|
||||
import('@strudel.cycles/emoji'),
|
||||
];
|
||||
|
||||
const modulesLoading = evalScope(
|
||||
@@ -125,6 +126,8 @@ export function Repl({ embedded = false }) {
|
||||
panelPosition,
|
||||
} = useSettings();
|
||||
|
||||
const paintOptions = useMemo(() => ({ fontFamily }), [fontFamily]);
|
||||
|
||||
const { code, setCode, scheduler, evaluate, activateCode, isDirty, activeCode, pattern, started, stop, error } =
|
||||
useStrudel({
|
||||
initialCode: '// LOADING...',
|
||||
@@ -147,6 +150,8 @@ export function Repl({ embedded = false }) {
|
||||
},
|
||||
onToggle: (play) => !play && cleanupDraw(false),
|
||||
drawContext,
|
||||
// drawTime: [0, 6],
|
||||
paintOptions,
|
||||
});
|
||||
|
||||
// init code
|
||||
|
||||
Reference in New Issue
Block a user