Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
alex
committed
Dec 11, 2012
1 parent
db76aaf
commit bd0b2a8
Showing
5 changed files
with
43 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,26 @@ | |||
{-# OPTIONS_GHC -XNoMonomorphismRestriction #-} | |||
|
|||
module Strategies where | |||
|
|||
import Pattern | |||
import Dirt | |||
import Data.Ratio | |||
import Control.Applicative | |||
|
|||
echo n p = combine [p, n ~> p] | |||
double f p = combine [p, f p] | |||
|
|||
-- every 4 (smash 4 [1, 2, 3]) $ sound "[odx sn/2 [~ odx] sn/3, [~ hh]*4]" | |||
|
|||
smash n xs p = cat $ map (\n -> slow n p') xs | |||
where p' = striate n p | |||
|
|||
brak = every 2 (((1%4) <~) . (\x -> cat [x, silence])) | |||
|
|||
-- samples "jvbass [~ latibro] [jvbass [latibro jvbass]]" ((1%2) <~ slow 6 "[1 6 8 7 3]") | |||
samples p p' = sample <$> p <*> p' | |||
|
|||
|
|||
|
|||
|
|||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters