Skip to content

Commit

Permalink
sample signals at query onsets instead of midpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
yaxu committed Feb 11, 2025
1 parent 54ab34c commit 30096ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Sound/Tidal/Core.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 30096ce

Please sign in to comment.