Karya, built on Mon Jul 24 11:39:07 PDT 2017 (patch 33511aca01257b76b88de7c7a2763b7a965c084e)

Safe HaskellNone

Derive.Call.Prelude.Random

Contents

Description

Calls for randomized scores.

Synopsis

Documentation

under_threshold :: Ord key => val -> [(key, val)] -> key -> val Source #

switch :: [Stream.Stream Score.Event] -> [(RealTime, Int)] -> Stream.Stream Score.Event Source #

Switch between note streams when the index changes. Sounding notes will be clipped, and dropped if they wind up at duration 0.

alternate_indices Source #

Arguments

:: [ScoreTime] 
-> Meter.RankName 
-> [RealTime] 
-> Deriver [Int]

time to switch to which index

select_indices :: [a] -> [Int] -> ([a], [Int]) Source #

Select the given indices from the list, and return a list with just the indexed elements, and the original indices packed so they index into the dense list.

index_under_threshold :: Ord a => [a] -> a -> Int Source #

val calls