Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell98 |
Sequencer type diagram.
- type P2 = (R, R)
- type Grey = R
- type C_Rect = (P2, P2, Grey)
- type K_Rect = (Int, C_Rect)
- k_rect_gnuplot :: K_Rect -> String
- type Seq_Plot_Opt = ((Int, Int), (R, R), (R, R))
- default_seq_plot_opt :: (R, R) -> Seq_Plot_Opt
- to_k_rect :: [C_Rect] -> [K_Rect]
- clean_name :: String -> String
- sequencer_plot_rect :: Seq_Plot_Opt -> FilePath -> String -> [C_Rect] -> IO ()
- amp_to_grey :: R -> R -> R
- vel_to_amp :: Int -> R
- vel_to_grey :: R -> Int -> R
- type Sequencer_Midi n = Wseq R (n, n)
- sequencer_midi_to_rect :: Real n => ((R, R), (n, n)) -> C_Rect
- sequencer_plot_midi :: Real n => Seq_Plot_Opt -> FilePath -> String -> Sequencer_Midi n -> IO ()
Documentation
k_rect_gnuplot :: K_Rect -> String Source
Gnuplot string for K_Rect
.
type Seq_Plot_Opt = ((Int, Int), (R, R), (R, R)) Source
Sequencer plot options, (image-size,x-range,y-range). For standard midi data x-range is the time window and y-range is the gamut.
default_seq_plot_opt :: (R, R) -> Seq_Plot_Opt Source
Sane defaults for size and gamut.
clean_name :: String -> String Source
Names for SVG terminal have character restrictions.
sequencer_plot_rect :: Seq_Plot_Opt -> FilePath -> String -> [C_Rect] -> IO () Source
MIDI
amp_to_grey :: R -> R -> R Source
Linear amplitude to grey scale (0 = white, 1 = black).
map (floor . (* 255) . amp_to_grey (-60)) [0,0.25,0.5,0.75,1] == [255,51,25,10,0]
vel_to_amp :: Int -> R Source
Midi velocity number to linear amplitude.
vel_to_grey :: R -> Int -> R Source
Midi velocity number to grey scale.
type Sequencer_Midi n = Wseq R (n, n) Source
Midi sequence data.
sequencer_midi_to_rect :: Real n => ((R, R), (n, n)) -> C_Rect Source
Convert Sequencer_Midi
node to C_Rect
.
sequencer_plot_midi :: Real n => Seq_Plot_Opt -> FilePath -> String -> Sequencer_Midi n -> IO () Source
Plot Sequencer_Midi
.