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

Sound.Conductive.Table

Synopsis

Documentation

asciiTableSource

Arguments

:: [[Char]]

a list of column headers

-> [Char]

a string containing the character used to separate the data in the columns from the header

-> [[[Char]]]

a list of lists containing column data

-> [Char]

a string containing the character used to pad between columns

-> IO () 

This function creates a text table suitable for printing in ghci or the terminal.

For example:

asciiTable [this,is,a,test] = [[hi,hi,hi,hi],[a,a,a,a],[m,m,m,m],[k,k,k,k]]

 this   is   a   test
 ====   ==   =   ====
 hi     a    m   k   
 hi     a    m   k   
 hi     a    m   k   
 hi     a    m   k   

displayPlayers :: MVar MusicalEnvironment -> IO ()Source

Uses the asciiTablefunction to create a five-column table of information about players in a MusicalEnvironment. That information is the player name, its status, the clock it follows, and the action and IOI function it uses when played.