Created
June 28, 2016 02:29
-
-
Save kindohm/db90af5d41ba58661fa203f87b541d9f to your computer and use it in GitHub Desktop.
custom tidal-midi module
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 Sound.Tidal.MidiRack3 where | |
import Sound.Tidal.Params | |
import Sound.Tidal.MIDI.Control | |
rackController :: ControllerShape | |
rackController = ControllerShape { params = [ | |
mCC kvoice_p 40, | |
mCC kdetune_p 42 | |
], | |
latency = 0.1 | |
} | |
rack = toShape rackController | |
(kvoice, kvoice_p) = pF "kvoice" (Just 0) | |
(kdetune, kdetune_p) = pF "kdetune" (Just 0) |
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
import Sound.Tidal.Context | |
import Sound.Tidal.MIDI.Stream | |
import Sound.Tidal.MIDI.Synth | |
import Sound.Tidal.MidiRack3 | |
(cps, getNow) <- cpsUtils | |
devs <- midiDevices | |
(k16,kt16) <- midiSetters devs "Scarlett 18i8 USB" 16 synthController getNow | |
k16 $ n "0*4" |=| kvoice "1 0.25 0.75 0 0.5" |=| kdetune "0 0.5 1" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment