Skip to content

Commit

Permalink
Revert "Fix overtone#163 Another case where only the first channel of…
Browse files Browse the repository at this point in the history
… a multi-channel Inst is audible."

This change caused an excessive number of id's to be allocated when
compiling some of the insts that are packaged with overtone.

This reverts commit 98cb062.

reopen overtone#163
  • Loading branch information
neatonk committed Oct 14, 2012
1 parent 98cb062 commit 12ec0a1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/overtone/studio/inst.clj
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@
*constants* #{}]
(with-overloaded-ugens
(let [form# ~@ugen-form
n-chans# (if (coll? form#) (count form#) 1)
n-chans# (if (seq? form#)
(count form#)
1)
inst-bus# (or (:bus (get (:instruments @studio*) ~sname)) (audio-bus n-chans#))
[ugens# constants#] (gather-ugens-and-constants (out inst-bus# form#))
ugens# (topological-sort-ugens ugens#)
Expand Down

0 comments on commit 12ec0a1

Please sign in to comment.