Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions INSTALL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# INSTALLATION

# Prérequis

elm
nix
Binary file added public/images/funky.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/sound-library/funky.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/sound-library/funky.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/sound/funky/caravan.mp3
Binary file not shown.
Binary file added public/sound/funky/cry.mp3
Binary file not shown.
Binary file added public/sound/funky/do-it.mp3
Binary file not shown.
Binary file added public/sound/funky/essence.mp3
Binary file not shown.
Binary file added public/sound/funky/feuille.mp3
Binary file not shown.
Binary file added public/sound/funky/fly.mp3
Binary file not shown.
Binary file added public/sound/funky/little.mp3
Binary file not shown.
Binary file added public/sound/funky/merci.mp3
Binary file not shown.
Binary file added public/sound/funky/rock.mp3
Binary file not shown.
Binary file added public/sound/funky/snip-snap.mp3
Binary file not shown.
Binary file added public/sound/funky/sol.mp3
Binary file not shown.
Binary file added public/sound/funky/stolen.mp3
Binary file not shown.
Binary file added public/sound/funky/synthetic.mp3
Binary file not shown.
Binary file added public/sound/funky/there.mp3
Binary file not shown.
38 changes: 38 additions & 0 deletions src/elm/Sounds.elm
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ type Profile
= ClassicWeird
| OfficeSafe
| Riot
| Funky


poster : Profile -> Image
Expand All @@ -44,6 +45,10 @@ poster profile =

OfficeSafe ->
"officesafe.jpg"

Funky ->
"funky.webp"

, alt =
case profile of
ClassicWeird ->
Expand All @@ -54,6 +59,9 @@ poster profile =

OfficeSafe ->
"An office meeting room full of multicolored plastic balls"

Funky ->
"Photography of George Clinton"
}


Expand All @@ -75,6 +83,9 @@ nextProfile list =
nextProfile (OfficeSafe :: list)

Just OfficeSafe ->
nextProfile (Funky :: list)

Just Funky ->
list


Expand All @@ -90,6 +101,9 @@ title profile =
OfficeSafe ->
"Office Safe"

Funky ->
"Funky"


code : Profile -> String
code profile =
Expand All @@ -103,6 +117,9 @@ code profile =
OfficeSafe ->
"OfficeSafe"

Funky ->
"Funky"


fromCode : String -> Profile
fromCode string =
Expand Down Expand Up @@ -142,6 +159,10 @@ soundsOf profile =
, officeSafe
)

Funky ->
( "funky/essence.mp3"
, funky
)

riot : List Sound
riot =
Expand All @@ -156,6 +177,23 @@ riot =
, "riot/eiffel_larue.wav.mp3"
]

funky : List Sound
funky =
["funky/essence.mp3"
, "funky/caravan.mp3"
, "funky/cry.mp3"
, "funky/do-it.mp3"
, "funky/feuille.mp3"
, "funky/fly.mp3"
, "funky/little.mp3"
, "funky/merci.mp3"
, "funky/rock.mp3"
, "funky/snip-snap.mp3"
, "funky/sol.mp3"
, "funky/stolen.mp3"
, "funky/there.mp3"
]


classicWeird : List Sound
classicWeird =
Expand Down