Karya, built on 2023-08-29T07:47:28 (patch 7a412d5d6ba4968ca4155ef276a062ccdeb9109a)
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