Merge pull request #1116 from giohappy/fix_codemirror_example

Fixes drawPianoroll import in codemirror example
This commit is contained in:
Felix Roos 2024-05-29 13:02:00 +02:00 committed by GitHub
commit 6325d726a5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 1 deletions

View File

@ -1,6 +1,7 @@
import { StrudelMirror } from '@strudel/codemirror';
import { funk42 } from './tunes';
import { drawPianoroll, evalScope } from '@strudel/core';
import { evalScope } from '@strudel/core';
import { drawPianoroll } from '@strudel/draw';
import './style.css';
import { initAudioOnFirstClick } from '@strudel/webaudio';
import { transpiler } from '@strudel/transpiler';
@ -26,6 +27,7 @@ const editor = new StrudelMirror({
initAudioOnFirstClick(); // needed to make the browser happy (don't await this here..)
const loadModules = evalScope(
import('@strudel/core'),
import('@strudel/draw'),
import('@strudel/mini'),
import('@strudel/tonal'),
import('@strudel/webaudio'),

View File

@ -14,6 +14,7 @@
"dependencies": {
"@strudel/codemirror": "workspace:*",
"@strudel/core": "workspace:*",
"@strudel/draw": "workspace:*",
"@strudel/mini": "workspace:*",
"@strudel/soundfonts": "workspace:*",
"@strudel/tonal": "workspace:*",

3
pnpm-lock.yaml generated
View File

@ -78,6 +78,9 @@ importers:
'@strudel/core':
specifier: workspace:*
version: link:../../packages/core
'@strudel/draw':
specifier: workspace:*
version: link:../../packages/draw
'@strudel/mini':
specifier: workspace:*
version: link:../../packages/mini