}
 ,
                "classnamespace" : "box",
-               "rect" : [ 787.0, 161.0, 918.0, 664.0 ],
+               "rect" : [ 488.0, 161.0, 918.0, 664.0 ],
                "gridsize" : [ 15.0, 15.0 ],
                "boxes" : [                     {
+                               "box" :                                 {
+                                       "fontface" : 0,
+                                       "id" : "obj-9",
+                                       "linecount" : 7,
+                                       "maxclass" : "o.expr.codebox",
+                                       "numinlets" : 1,
+                                       "numoutlets" : 2,
+                                       "outlettype" : [ "FullPacket", "FullPacket" ],
+                                       "patching_rect" : [ 505.0, 219.0, 361.0, 108.0 ],
+                                       "text" : "/idx = aseq(0, int32(/density * (/num/voices - 1))), \nmap(\n  lambda([i], \n    assign(\"/voices/\" + i, /bndl)\n  ), /idx + 1\n), \ndelete(/bndl, /idx, /density)"
+                               }
+
+                       }
+,                      {
                                "box" :                                 {
                                        "id" : "obj-6",
                                        "maxclass" : "newobj",
                                        "numoutlets" : 2,
                                        "outlettype" : [ "FullPacket", "FullPacket" ],
                                        "patching_rect" : [ 179.0, 355.0, 361.0, 108.0 ],
-                                       "text" : "/idx = aseq(0, int32(/density * (/num/voices - 1))), \nmap(\n  lambda([i], \n    assign(\"/voices/\" + i, /bndl)\n  ), /idx + 1\n), \ndelete(/bndl, /idx, /density)"
+                                       "text" : "/idx = aseq(0, /density - 1), \nmap(\n  lambda([i], \n    assign(\"/voices/\" + i, /bndl)\n  ), /idx + 1\n), \ndelete(/bndl, /idx, /density)"
                                }
 
                        }