Karya, built on 2022-03-21T01:30:44 (patch 89d1651424c35e564138d93424a157ff87457245)
Safe HaskellSafe-Inferred

Derive.C.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.Rank 
-> [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