Hey folks! I'm back in tidal land after a few years away, and I find myself struggling with plyWith
, which I previously used all the time.
No matter what I try, I'm hit with an ambiguous type variable 't0'
error.
Example
d1
$ plyWith 4 (|* gain 0.6)
$ s "ot"
# n "4"
# start 0.6 # end 0.7
# legato 1
# gain 1
Full error
• Ambiguous type variable ‘t0’ arising from a use of ‘plyWith’
prevents the constraint ‘(Ord t0)’ from being solved.
Probable fix: use a type annotation to specify what ‘t0’ should be.
Potentially matching instances:
instance Integral a => Ord (Ratio a)
-- Defined in ‘GHC.Internal.Real’
instance Ord Ordering -- Defined in ‘GHC.Classes’
...plus 31 others
...plus 41 instances involving out-of-scope types
(use -fprint-potential-instances to see them all)
• In the first argument of ‘($)’, namely ‘plyWith 4 (|* gain 0.6)’
In the second argument of ‘($)’, namely
‘plyWith 4 (|* gain 0.6)
$ s "ot" # n "4" # start 0.6 # end 0.7 # legato 1 # gain 1’
In the expression:
d1
$ plyWith 4 (|* gain 0.6)
$ s "ot" # n "4" # start 0.6 # end 0.7 # legato 1 # gain 1
Any thoughts appreciated!