Skip to content

Commit 428f58b

Browse files
committed
Update webpage
1 parent af60efc commit 428f58b

1 file changed

Lines changed: 15 additions & 7 deletions

File tree

doc/src/index.js

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ import { html, render } from 'lit';
44
import '@ircam/sc-components';
55
import resumeAudioContext from './resume-audio-context.js';
66

7+
// Import audio assets so esbuild copies them to the build output
8+
import kc0 from '../assets/KC_sr44100_lambda0.mp3';
9+
import kc1000 from '../assets/KC_sr44100_lambda1000.mp3';
10+
import ge0 from '../assets/GE_sr44100_lambda0.mp3';
11+
import ge1000 from '../assets/GE_sr44100_lambda1000.mp3';
12+
import ge40 from '../assets/GE4_sr44100_lambda0.mp3';
13+
import ge41000 from '../assets/GE4_sr44100_lambda1000.mp3';
14+
715

816
const audioContext = new AudioContext({ sampleRate: 44100 });
917
await resumeAudioContext(audioContext);
@@ -14,16 +22,16 @@ let impulseWidth = 1 / 1000;
1422
// Grid of audio files to display
1523
const audioGrid = [
1624
[
17-
{ label: 'KC, Ⲗ = 0', src: './assets/KC_sr44100_lambda1000.mp3' },
18-
{ label: 'KC, Ⲗ = 1000', src: './assets/KC_sr44100_lambda1000.mp3' },
25+
{ label: 'KC, Ⲗ = 0', src: kc0 },
26+
{ label: 'KC, Ⲗ = 1000', src: kc1000 },
1927
],
2028
[
21-
{ label: 'GE, Ⲗ = 0', src: './assets/GE_sr44100_lambda0.mp3' },
22-
{ label: 'GE, Ⲗ = 1000', src: './assets/GE_sr44100_lambda1000.mp3' },
29+
{ label: 'GE, Ⲗ = 0', src: ge0 },
30+
{ label: 'GE, Ⲗ = 1000', src: ge1000 },
2331
],
2432
[
25-
{ label: 'GE4, Ⲗ = 0', src: './assets/GE4_sr44100_lambda0.mp3' },
26-
{ label: 'GE4, Ⲗ = 1000', src: './assets/GE4_sr44100_lambda1000.mp3' },
33+
{ label: 'GE4, Ⲗ = 0', src: ge40 },
34+
{ label: 'GE4, Ⲗ = 1000', src: ge41000 },
2735
]
2836
];
2937

@@ -86,7 +94,7 @@ render(html`
8694
</div>
8795
<h1>Interactive simulation</h1>
8896
<p>
89-
You can intercat with an Interactive simulation running in the browser using the
97+
You can interact with an Interactive simulation running in the browser using the
9098
simple interface below.
9199
</p>
92100
<div style="position: absolute; top: 20px; right: 20px;">

0 commit comments

Comments
 (0)