Skip to content

Commit

Permalink
tweaks to preview audio; also another wrong audio expr!?
Browse files Browse the repository at this point in the history
maybe 2 different versions of FII
[ci skip]
  • Loading branch information
mtolly committed Feb 15, 2015
1 parent b8de21a commit 52cdad1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion preview/src/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ main = do

artist <- fmap (fromMaybe "dream-theater") $ lookupGET "artist"
title <- fmap (fromMaybe "6-00" ) $ lookupGET "title"
let root = printf "data/%s/%s/" artist title
let root = printf "songs/%s/%s/" artist title
logLine $ "Loading song from " ++ root
howlSong <- Audio.load [root ++ "/audio-crap.ogg", root ++ "/audio-crap.mp3"]
logLine "Loaded audio."
Expand Down
2 changes: 1 addition & 1 deletion preview/www/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ rts.js
runmain.js
app.js
app.min.js
data/
songs/
4 changes: 2 additions & 2 deletions scripts/preview-audio
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ for readme in songs/*/*/README.md
onyxbuild gen/album/2p/notes.mid gen/album/2p/song-countin.wav
sox gen/album/2p/song-countin.wav audio-crap.wav remix 1,2
lame audio-crap.wav -b 16
oggenc -b 16 --downmix --resample 16000 audio-crap.wav
oggenc -b 16 --resample 16000 audio-crap.wav
cd ../../..
end

# low-quality audio and mids will be copied to here
set dest_dir "$HOME/Desktop/music/crap/"
set dest_dir "preview/www/"

for crap in songs/*/*/audio-crap.{mp3,ogg}
set dir (dirname $crap)
Expand Down
2 changes: 1 addition & 1 deletion songs/dream-theater/trial-of-tears/song.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ file-include: ../../../albums/falling-into-infinity.yml
track-number: 11
audio:
jammit: File ()
album: Unary [Pad Begin 0.645] (File ())
album: Unary [Trim Begin 0.072] (File ())
config: [drums]

0 comments on commit 52cdad1

Please sign in to comment.