Difference between revisions of "selectF"

From TidalCycles userbase
Jump to: navigation, search
Line 4: Line 4:
 
chooses between a list of functions, using a pattern of floats (from 0-1)
 
chooses between a list of functions, using a pattern of floats (from 0-1)
  
See also [[select]]
+
See also [[select]], [[pickF]], & [[squeeze]]
 
 
See also [[pickF]]
 
See also [[squeeze]]
 
  
 
[[Category:Functions]]
 
[[Category:Functions]]

Revision as of 20:46, 11 May 2020

selectF :: Pattern Double -> [Pattern a -> Pattern a] -> Pattern a -> Pattern a
selectF pf ps p = innerJoin $ (\f -> _selectF f ps p) <$> pf

chooses between a list of functions, using a pattern of floats (from 0-1)

See also select, pickF, & squeeze