Skip to content

Commit

Permalink
[FIX] mergeCanons returns a Canon
Browse files Browse the repository at this point in the history
  • Loading branch information
diegovdc committed Jan 19, 2019
1 parent fe9f1d7 commit a371625
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Can/helpers.sc
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,9 @@
*mergeCanons {|a, b|
var canon = a.canon ++ b.canon;
var player = this.getPlayer(a.data.player, canon, a.data.instruments);
^(
^Canon(
canon: canon,
player: player,
play: {player.play},
data: (
voices: a.data.voices ++ b.data.voices,
cp: [a.data.cp, b.data.cp].minItem,//for now we keep only the first cp, for the visualizer purposes, it does not affect the cp in the canons that will sound
Expand Down

0 comments on commit a371625

Please sign in to comment.