freesound-0.0.2: Access the Freesound Project database

Sound.Freesound

Contents

Description

This module provides access to the Freesound Project, a database of Creative Commons licensed sounds.

Synopsis

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

errorString :: Error -> StringSource

Convert an Error into a String.

Sample handles

newtype Sample Source

A handle to a sample in the database.

Constructors

Sample 

Fields

sampleId :: Int
 

API methods

search :: Query -> Freesound [Sample]Source

Search the Freesound database.

data Similarity Source

Similarity type used by searchSimilar.

Constructors

Similar 
Dissimilar 

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.