Last active
September 25, 2021 14:12
-
-
Save mikesol/1e0dbe04c68750c7bbb580f8e000f44d to your computer and use it in GitHub Desktop.
F of Time
This file contains hidden or 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
module Main where | |
import Prelude | |
import Data.NonEmpty ((:|)) | |
import Effect (Effect) | |
import WAGS.Lib.Learn (play) | |
import WAGS.Lib.Learn.Note (accelerando, noteFromPitch_, repeat, seq) | |
import WAGS.Lib.Learn.Pitch (fot2, c4, d4, e4, fSharp4, gSharp4, bFlat4, c5) | |
import Wags.Learn.Oscillator (lfo) | |
main :: Effect Unit | |
main = | |
play | |
$ repeat | |
$ accelerando | |
$ seq | |
$ map noteFromPitch_ | |
$ c4 :| [ d4, fot2 ((+) <<< lfo { amp: 20.0, freq: 16.0, phase: 0.0 }) e4 | |
, fSharp4, gSharp4, bFlat4, c5, bFlat4, gSharp4, fSharp4, e4, d4, c4 | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment