-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Description
while following the guides, to get to know the environment I came accross the need of a saw_c unit generator. I couldn't find it anywhere, so I took it as an exercise to write my own. I came up with:
(bind-func saw_c
(lambda (phase)
(lambda (amp freq:SAMPLE)
(let ((incr (/ freq 44100.0)))
(set! phase (% (+ phase incr) 1.0))
(* amp (- (* 2 phase) 1))))))
however, on compilation I get a type error:
Type Error conflicting i64 with float in (+ phase incr)
I don't understand why extempore thinks phase should be an i64?
Up to this point all examples in philosphy and the guide have worked.
Any ideas?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels