/ tutorials / wave-acoustics
Sign in
tutorials / wave-acoustics
wave-acoustics / src / engine / lib.ts
13 lines · 411 BCodeBlameHistory
d8098edAn interactive tutorial on the wave equation in acoustics: strings, drums and rooms, measured by earJeremy Magland 1// Shared .m function files, put into every session as ordinary function files.
2import type { BootFile } from 'numbl/browser'
4const libRaw = import.meta.glob('../matlab/*.m', {
5 query: '?raw',
6 import: 'default',
7 eager: true,
8}) as Record<string, string>
10export const LIB_FILES: BootFile[] = Object.entries(libRaw).map(([path, content]) => ({
11 path: path.slice(path.lastIndexOf('/') + 1),
12 content,
13}))
↑↓ move↵openescclose