Fix main-theme file naming

soundtrack
Ensar Sarajčić 2021-11-12 13:10:07 +01:00
parent 8e70093fe6
commit bea1d43a15
7 changed files with 17 additions and 21 deletions

Binary file not shown.

Binary file not shown.

View File

@ -18,4 +18,4 @@
(reset! state (edna/play! (read-music song))))
(defmacro build-for-cljs []
(edna/edna->data-uri (read-music "main-theme")))
(edna/edna->data-uri (read-music "main_theme")))

View File

@ -1,10 +0,0 @@
(ns music.music)
[:piano {:octave 4
:tempo 74}
1/8 #{:-d :-a :e :f#} :a 1/2 #{:f# :+d}
1/8 #{:-e :e :+c} :a 1/2 #{:c :e :f}
1/8 #{:-d :-a :e :f#} :a :+d :+c# :+e :+d :b :+c#
1/2 #{:-e :c :a} 1/2 #{:c :e}]

View File

@ -1,10 +0,0 @@
(ns music.songs.main-theme)
[:piano {:octave 4
:tempo 60}
1/8 #{:-d :-a :e :f#} :a 1/2 #{:f# :+d}
1/8 #{:-e :e :+c} :a 1/2 #{:c :e :f}
1/8 #{:-d :-a :e :f#} :a :+d :+c# :+e :+d :b :+c#
1/2 #{:-e :c :a} 1/2 #{:c :e}]

View File

@ -0,0 +1,10 @@
(ns music.songs.main-theme)
[:piano {:octave 4
:tempo 60}
#{:-d :-a :e :f#} :a #{:f# :+d}
#{:-e :e :+c} :a #{:c :e :f}
#{:-d :-a :e :f#} :a :+d :+c# :+e :+d :b :+c#
#{:-e :c :a} #{:c :e}]

View File

@ -10,9 +10,15 @@ MUSIC_SOURCE_DIR="$ASSETS_DIR/source/music"
MUSIC_OUTPUT_DIR="$MUSIC_SOURCE_DIR/target"
MUSIC_ASSETS_DIR="$ASSETS_DIR/music"
echo "Removing all wav files from $MUSIC_OUTPUT_DIR"
rm -f "$MUSIC_OUTPUT_DIR/"*.wav
cd $MUSIC_SOURCE_DIR
echo "Building songs"
clj -M prod.clj soundtrack
cd $OLDWD
echo "Removing all wav files from $MUSIC_ASSETS_DIR"
rm -f "$MUSIC_ASSETS_DIR/"*.wav
mv "$MUSIC_OUTPUT_DIR/"*.wav "$MUSIC_ASSETS_DIR/"
echo "Moved all songs to $MUSIC_ASSETS_DIR"