conductive-base-0.2: a library for livecoding and real-time musical applications

Sound.Conductive.MusicalEnvironment

Synopsis

Documentation

actions :: MVar MusicalEnvironment -> IO [String]Source

returns a list of the names of all action functions stored in a MusicalEnvironment

addAction :: MVar MusicalEnvironment -> (String, MVar MusicalEnvironment -> Player -> IO ()) -> IO MusicalEnvironmentSource

Add an action function to a MusicalEnvironment in an MVar

addDoubleGenerator :: MVar MusicalEnvironment -> (String, Generator Double) -> IO MusicalEnvironmentSource

Add a double Generator to a MusicalEnvironment in an MVar

addIOI :: MVar MusicalEnvironment -> (String, MVar MusicalEnvironment -> Player -> IO Double) -> IO MusicalEnvironmentSource

Add an IOI function to a MusicalEnvironment in an MVar

addIOIList :: MVar MusicalEnvironment -> (String, [Double]) -> IO MusicalEnvironmentSource

Add an IOI list to a MusicalEnvironment in an MVar

addInterrupt :: MVar MusicalEnvironment -> (String, [IO ()]) -> IO MusicalEnvironmentSource

Add an interrupt function to a MusicalEnvironment in an MVar

addNewGenerator :: MVar MusicalEnvironment -> (String, [Double]) -> IO MusicalEnvironmentSource

Add a double Generator to a MusicalEnvironment in an MVar

addPlayer :: MVar MusicalEnvironment -> (String, Player) -> IO MusicalEnvironmentSource

Add a Player to a MusicalEnvironment in an MVar

addTempoClock :: MVar MusicalEnvironment -> (String, TempoClock) -> IO MusicalEnvironmentSource

Add a TempoClock to a MusicalEnvironment in an MVar

changeActions :: (Map String (MVar MusicalEnvironment -> Player -> IO ()) -> Map String (MVar MusicalEnvironment -> Player -> IO ())) -> MusicalEnvironment -> MusicalEnvironmentSource

runs a pure function on the Map in a MusicalEnvironment containing the action functions

changeDoubleGenerators :: (Map String (Generator Double) -> Map String (Generator Double)) -> MusicalEnvironment -> MusicalEnvironmentSource

runs a pure function on the Map in a MusicalEnvironment containing the double Generators

changeEnvironment :: MVar a -> (a -> a) -> IO aSource

used to update a MusicalEnvironment stored in an MVar

changeIOILists :: (Map String [Double] -> Map String [Double]) -> MusicalEnvironment -> MusicalEnvironmentSource

runs a pure function on the Map in a MusicalEnvironment containing the IOI lists

changeIOIs :: (Map String (MVar MusicalEnvironment -> Player -> IO Double) -> Map String (MVar MusicalEnvironment -> Player -> IO Double)) -> MusicalEnvironment -> MusicalEnvironmentSource

runs a pure function on the Map in a MusicalEnvironment containing the IOI functions

changeInterrupts :: (Map String [IO ()] -> Map String [IO ()]) -> MusicalEnvironment -> MusicalEnvironmentSource

runs a pure function on the Map in a MusicalEnvironment containing the interrupt functions

changePlayers :: (Map String Player -> Map String Player) -> MusicalEnvironment -> MusicalEnvironmentSource

runs a pure function on the Map in a MusicalEnvironment containing the Players

changeTempoClocks :: (Map String TempoClock -> Map String TempoClock) -> MusicalEnvironment -> MusicalEnvironmentSource

runs a pure function on the Map in a MusicalEnvironment containing the TempoClocks

deleteAction :: MVar MusicalEnvironment -> String -> IO MusicalEnvironmentSource

Delete an action function from a MusicalEnvironment in an MVar

deleteDoubleGenerator :: MVar MusicalEnvironment -> String -> IO MusicalEnvironmentSource

Delete a double Generator from a MusicalEnvironment in an MVar

deleteIOI :: MVar MusicalEnvironment -> String -> IO MusicalEnvironmentSource

Delete an IOI function from a MusicalEnvironment in an MVar

deleteIOIList :: MVar MusicalEnvironment -> String -> IO MusicalEnvironmentSource

Delete an IOI list from a MusicalEnvironment in an MVar

deleteInterrupt :: MVar MusicalEnvironment -> String -> IO MusicalEnvironmentSource

Delete an interrupt function from a MusicalEnvironment in an MVar

deletePlayer :: MVar MusicalEnvironment -> String -> IO MusicalEnvironmentSource

Delete a Player to a MusicalEnvironment in an MVar

deleteTempoClock :: MVar MusicalEnvironment -> String -> IO MusicalEnvironmentSource

Delete a Tempo Clock from a MusicalEnvironment in an MVar

doubleGenerators :: MVar MusicalEnvironment -> IO [String]Source

returns a list of the names of all double Generators stored in a MusicalEnvironment

eChangeTempo :: MVar MusicalEnvironment -> String -> Double -> IO MusicalEnvironmentSource

convenience function for changing the current Tempo of a stored TempoClock

eChangeTimeSignature :: MVar MusicalEnvironment -> String -> Int -> IO MusicalEnvironmentSource

convenience function for changing the current TimeSignature of a stored TempoClock

eCurrentTempo :: MVar MusicalEnvironment -> String -> IO DoubleSource

convenience function for returning the current Tempo from a stored TempoClock

eCurrentTimeSignature :: MVar MusicalEnvironment -> String -> IO IntSource

convenience function for returning the current TimeSignature from a stored TempoClock

eElapsedBeats :: MVar MusicalEnvironment -> String -> IO DoubleSource

convenience function for returning elapsed beats from a stored TempoClock

eElapsedTime :: MVar MusicalEnvironment -> String -> IO DoubleSource

convenience function for returning elapsed time from a stored TempoClock

getAction :: MVar MusicalEnvironment -> String -> IO (MVar MusicalEnvironment -> Player -> IO ())Source

returns an action function from a MusicalEnvironment in an MVar

getCurrentTime :: MVar MusicalEnvironment -> String -> IO MusicalTimeSource

convenience function for returning elapsed MusicalTime from a stored TempoClock

getDoubleGenerator :: MVar MusicalEnvironment -> String -> IO (Generator Double)Source

returns a double Generator from a MusicalEnvironment in an MVar

getIOI :: MVar MusicalEnvironment -> String -> IO (MVar MusicalEnvironment -> Player -> IO Double)Source

returns an IOI function from a MusicalEnvironment in an MVar

getIOIList :: MVar MusicalEnvironment -> String -> IO [Double]Source

returns an IOI list from a MusicalEnvironment in an MVar

getInterrupt :: MVar MusicalEnvironment -> String -> IO [IO ()]Source

returns an interrupt function from a MusicalEnvironment in an MVar

getPlayer :: MVar MusicalEnvironment -> String -> IO PlayerSource

returns a Player from a MusicalEnvironment in an MVar

getTempoClock :: MVar MusicalEnvironment -> String -> IO TempoClockSource

returns a TempoClock from a MusicalEnvironment in an MVar

iOIs :: MVar MusicalEnvironment -> IO [String]Source

returns a list of the names of all IOI functions stored in a MusicalEnvironment

iOILists :: MVar MusicalEnvironment -> IO [String]Source

returns a list of the names of all IOI lists stored in a MusicalEnvironment

interrupts :: MVar MusicalEnvironment -> IO [String]Source

returns a list of the names of all interrupt functions stored in a MusicalEnvironment

players :: MVar MusicalEnvironment -> IO [String]Source

returns a list of the names of all Players stored in a MusicalEnvironment

showCurrentTime :: MVar MusicalEnvironment -> String -> IO [Char]Source

convenience function for returning elapsed MusicalTime as a string from a stored TempoClock

tempoClocks :: MVar MusicalEnvironment -> IO [String]Source

returns a list of the names of all TempoClocks stored in a MusicalEnvironment

withAction :: ((MVar MusicalEnvironment -> Player -> IO ()) -> IO b) -> MVar MusicalEnvironment -> String -> IO bSource

runs a pure function on a stored action function

withDoubleGenerator :: (Generator Double -> IO b) -> MVar MusicalEnvironment -> String -> IO bSource

runs a pure function on a stored double Generator

withEnvironment :: MVar a -> (a -> a1) -> IO a1Source

allows a pure function to be run on a MusicalEnvironment stored in an MVar

withIOI :: ((MVar MusicalEnvironment -> Player -> IO Double) -> IO b) -> MVar MusicalEnvironment -> String -> IO bSource

runs a pure function on a stored IOI function

withIOIList :: ([Double] -> IO b) -> MVar MusicalEnvironment -> String -> IO bSource

runs a pure function on a stored IOI List

withInterrupt :: ([IO ()] -> IO b) -> MVar MusicalEnvironment -> String -> IO bSource

runs a pure function on a stored interrupt function

withPlayer :: (Player -> IO b) -> MVar MusicalEnvironment -> String -> IO bSource

runs a pure function on a stored Player

withTempoClock :: (TempoClock -> IO b) -> MVar MusicalEnvironment -> String -> IO bSource

runs a pure function on a stored TempoClock