diff --git a/demo/audio-beats-with-event-propagators.html b/demo/audio-beats-with-event-propagators.html
index 7839514..a46f2a3 100644
--- a/demo/audio-beats-with-event-propagators.html
+++ b/demo/audio-beats-with-event-propagators.html
@@ -26,18 +26,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/demo/music-crossfader.html b/demo/music-crossfader.html
new file mode 100644
index 0000000..fbdcc6a
--- /dev/null
+++ b/demo/music-crossfader.html
@@ -0,0 +1,85 @@
+
+
+
+
+
+ Beats
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/demo/public/Comanche (Heyoka Remix).wav b/demo/public/Comanche (Heyoka Remix).wav
new file mode 100644
index 0000000..4251926
Binary files /dev/null and b/demo/public/Comanche (Heyoka Remix).wav differ
diff --git a/demo/src/record-player.ts b/demo/src/record-player.ts
index 64fe9df..db3bd57 100644
--- a/demo/src/record-player.ts
+++ b/demo/src/record-player.ts
@@ -8,16 +8,13 @@ const styles = css`
:host {
display: block;
+ position: relative;
}
.player {
background-color: #d52831;
width: 330px;
height: 190px;
- position: absolute;
- transform: translate(-50%, -50%);
- left: 50%;
- top: 50%;
border-radius: 10px;
box-shadow: 0 8px 0 0 #be2728;
margin-top: -4px;
@@ -244,7 +241,7 @@ export class RecordPlayer extends HTMLElement {
-
+
`);
@@ -260,6 +257,11 @@ export class RecordPlayer extends HTMLElement {
return this.#audio.volume;
}
+ set volume(volume) {
+ this.#audio.volume = volume;
+ this.#volumeInput.valueAsNumber = volume;
+ }
+
#playTimeout: number = -1;
play() {