Fork me on GitHub
#overtone
<
2015-11-30
>
srihari03:11:07

@coledubs: Agree. What you write inside defsynth for example, mostly isn’t clojure.

srihari03:11:17

I was trying to dynamically/programmatically create synths, and ran into this.

srihari03:11:25

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.

srihari03:11:10

I ended up building a macro that does mathematical operations outside of defsynth, and then passes only necessary args to create instruments.

srihari03:11:57

I wonder if I’m doing something utterly wrong though.

srihari03:11:39

I’d love suggestions simple_smile