@coledubs: Agree. What you write inside defsynth
for example, mostly isn’t clojure.
I was trying to dynamically/programmatically create synths, and ran into this.
It’s been a while since I did this though, so I might be wrong. Synths can take in only a list of doubles, and has a limit of 10 arguments or so. If I want to programmatically pass in more arguments, I can’t. Can’t pass in a map, or a function.
I ended up building a macro that does mathematical operations outside of defsynth, and then passes only necessary args to create instruments.
Like so: https://github.com/ssrihari/ragavardhini/blob/master/src/movertone/beep.clj
I wonder if I’m doing something utterly wrong though.
I’d love suggestions :simple_smile: