Skip to content
This repository was archived by the owner on Jun 13, 2025. It is now read-only.

Commit 30096ce

Browse files
committed
sample signals at query onsets instead of midpoint
1 parent 54ab34c commit 30096ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Sound/Tidal/Core.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ sig f = pattern q
4040
where
4141
q (State (Arc s e) _)
4242
| s > e = []
43-
| otherwise = [Event (Context []) Nothing (Arc s e) (f (s + ((e - s) / 2)))]
43+
| otherwise = [Event (Context []) Nothing (Arc s e) (f s)]
4444

4545
-- | @sine@ - unipolar sinewave. A pattern of continuous values following a
4646
-- sinewave with frequency of one cycle, and amplitude from 0 to 1.

0 commit comments

Comments
 (0)