Moving files around
This commit is contained in:
@ -1,16 +1,15 @@
|
||||
<script lang="ts">
|
||||
import { onMount, onDestroy } from 'svelte';
|
||||
import TopBar from './lib/TopBar.svelte';
|
||||
import EditorWithLogs from './lib/EditorWithLogs.svelte';
|
||||
import EditorSettings from './lib/EditorSettings.svelte';
|
||||
import FileBrowser from './lib/FileBrowser.svelte';
|
||||
import SidePanel from './lib/SidePanel.svelte';
|
||||
import Popup from './lib/Popup.svelte';
|
||||
import ResizablePopup from './lib/ResizablePopup.svelte';
|
||||
import AudioScope from './lib/AudioScope.svelte';
|
||||
import Spectrogram from './lib/Spectrogram.svelte';
|
||||
import ConfirmDialog from './lib/ConfirmDialog.svelte';
|
||||
import InputDialog from './lib/InputDialog.svelte';
|
||||
import TopBar from './lib/components/ui/TopBar.svelte';
|
||||
import EditorWithLogs from './lib/components/editor/EditorWithLogs.svelte';
|
||||
import EditorSettings from './lib/components/editor/EditorSettings.svelte';
|
||||
import FileBrowser from './lib/components/ui/FileBrowser.svelte';
|
||||
import SidePanel from './lib/components/ui/SidePanel.svelte';
|
||||
import ResizablePopup from './lib/components/ui/ResizablePopup.svelte';
|
||||
import AudioScope from './lib/components/audio/AudioScope.svelte';
|
||||
import Spectrogram from './lib/components/audio/Spectrogram.svelte';
|
||||
import ConfirmDialog from './lib/components/ui/ConfirmDialog.svelte';
|
||||
import InputDialog from './lib/components/ui/InputDialog.svelte';
|
||||
import { createCsoundDerivedStores, type LogEntry } from './lib/csound';
|
||||
import { type CsoundProject } from './lib/project-system';
|
||||
import { DEFAULT_CSOUND_TEMPLATE } from './lib/config/templates';
|
||||
@ -37,6 +36,8 @@
|
||||
let analyserNode = $state<AnalyserNode | null>(null);
|
||||
let interpreterLogs = $state<LogEntry[]>([]);
|
||||
|
||||
let logsUnsubscribe: (() => void) | undefined;
|
||||
|
||||
onMount(async () => {
|
||||
await projectManager.init();
|
||||
|
||||
@ -50,16 +51,13 @@
|
||||
});
|
||||
}
|
||||
|
||||
const unsubscribe = csoundDerived.logs.subscribe(logs => {
|
||||
logsUnsubscribe = csoundDerived.logs.subscribe(logs => {
|
||||
interpreterLogs = logs;
|
||||
});
|
||||
|
||||
return () => {
|
||||
unsubscribe();
|
||||
};
|
||||
});
|
||||
|
||||
onDestroy(async () => {
|
||||
logsUnsubscribe?.();
|
||||
await csound.destroy();
|
||||
});
|
||||
|
||||
@ -334,11 +332,11 @@
|
||||
visible={uiState.audioPermissionPopupVisible}
|
||||
title="Audio Permission Required"
|
||||
x={(typeof window !== 'undefined' ? window.innerWidth / 2 - 250 : 250)}
|
||||
y={(typeof window !== 'undefined' ? window.innerHeight / 2 - 125 : 200)}
|
||||
y={(typeof window !== 'undefined' ? window.innerHeight / 2 - 175 : 200)}
|
||||
width={500}
|
||||
height={250}
|
||||
height={350}
|
||||
minWidth={400}
|
||||
minHeight={200}
|
||||
minHeight={300}
|
||||
closable={false}
|
||||
>
|
||||
{#snippet children()}
|
||||
|
||||
Reference in New Issue
Block a user