This module provides access to the Freesound Project, a database of Creative Commons licensed sounds.
- data Freesound a
- withFreesound :: String -> String -> Freesound a -> IO (Either Error a)
- data Error
- = Error String
- | CurlError CurlCode
- | LoginError
- | XMLError
- | UnknownError
- errorString :: Error -> String
- newtype Sample = Sample {}
- search :: Query -> Freesound [Sample]
- data Similarity
- = Similar
- | Dissimilar
- searchSimilar :: Similarity -> Sample -> Freesound [Sample]
- propertiesXML :: Sample -> Freesound Element
- properties :: Sample -> Freesound Properties
- download :: Sample -> Freesound String
The Freesound monad
The Freesound
monad.
withFreesound :: String -> String -> Freesound a -> IO (Either Error a)Source
Log into Freesound with and perform an action in the Freesound
monad.
Error handling
Error type.
Sample handles
A handle to a sample in the database.
API methods
data Similarity Source
Similarity type used by searchSimilar
.
searchSimilar :: Similarity -> Sample -> Freesound [Sample]Source
Search samples similar (or dissimilar) to a Sample
.
propertiesXML :: Sample -> Freesound ElementSource
Get the properties of a Sample
as an XML document.
properties :: Sample -> Freesound PropertiesSource
Get the properties of a Sample
.