From 30096ce873558ce00bc16fea5d866dd2b1df6652 Mon Sep 17 00:00:00 2001 From: Alex McLean Date: Tue, 11 Feb 2025 14:07:14 +0000 Subject: [PATCH] sample signals at query onsets instead of midpoint --- src/Sound/Tidal/Core.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Sound/Tidal/Core.hs b/src/Sound/Tidal/Core.hs index 93de7da0..11805826 100644 --- a/src/Sound/Tidal/Core.hs +++ b/src/Sound/Tidal/Core.hs @@ -40,7 +40,7 @@ sig f = pattern q where q (State (Arc s e) _) | s > e = [] - | otherwise = [Event (Context []) Nothing (Arc s e) (f (s + ((e - s) / 2)))] + | otherwise = [Event (Context []) Nothing (Arc s e) (f s)] -- | @sine@ - unipolar sinewave. A pattern of continuous values following a -- sinewave with frequency of one cycle, and amplitude from 0 to 1.