-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAllSongs.hs
More file actions
33 lines (28 loc) · 937 Bytes
/
AllSongs.hs
File metadata and controls
33 lines (28 loc) · 937 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import Wave
import Song
import Song2
import Song3
import Song4
import SongsVideoGames
songs :: [(FilePath, Signal)]
songs = [("song.wav", Song.song),
("song2.wav", Song2.song),
("song3.wav", Song3.song),
("song4.wav", Song4.song),
("songSuperMario.wav", songSuperMario),
("songLegendOfZelda.wav", songLegendOfZelda),
("songMegaMan.wav", songMegaMan),
("songTetris.wav", songTetris),
("songNecrodancerLevel4_3.wav", songNecrodancerLevel4_3),
("songNecrodancerDeathMetal.wav", songNecrodancerDeathMetal),
("songMetroidRidley.wav", songMetroidRidley),
("songUndertaleMegalovania.wav", songUndertaleMegalovania)
]
writeAllSongs :: IO ()
writeAllSongs = mapM_ writeSong songs
writeSong :: (FilePath, Signal) -> IO ()
writeSong (file, s) = do
writeWave file s
putStrLn ("Wrote " ++ file)
main :: IO ()
main = writeAllSongs