Cage.scale

Discussions, advice, bug reports and much more about the "cage" environment.
pedrnun
Posts: 71
Joined: Sun Jan 17, 2016 3:23 am
Contact:

Re: Cage.scale

Post by pedrnun » Wed Apr 05, 2017 3:51 pm

Hello again,
Here's the solution I've found. Maybe there's an easier way to do this, so I'd like to hear your thoughts.
One more question: is it possible to set the start pitch without triggering output?
Best, Pedro.

<pre><code>
----------begin_max5_patcher----------
1440.3ocyZksaiaCE8YmuBBgVzjod7vEs1WZ6KseDCFDPIyDyAxRBRzIY5f4
eubQRVNN1hIlRSLfsfnEkN2y8bWHs+9UK7RKeh03A9CvmAKV78qVrPOjZfEs
muvaK8orbZi9x7xJ2tkUH7VZ9NA6IgdbdCfK.UkMM7zbFPTBZXB0POxEaJ2I
.x2U6D+Y2Dy4ErrxcE5YiaGrX2VdQNSneTn1A4q0Ofxzu9Q+tY2H9VNSOr29
oJeBcyE1NZEUjsgWb+s0rLgwLCf3Uvk.THdUf7.VeFgrBB9hZN+3pqTer7Ro
ihFQ8N0W8aMf7xGYMBPQof4YokhPDGXq9AgqvIIIwwRK0GoMXRhxfwv2nAWv
dThuir2O.PP3KZb3Wx3P1ZbnyXbX+UQsFGlXbiFaCqrs1IZtWhuUwLyR5Yjy
2gVddIccJs3d68rPGX7jPnVE6GoNXN471sFitzvkQ2.t0VMLwVqFamKGEQT5
Ybh9yQc4Ku.O+VVSC8d1QL.IzZEOL1wJ9VOuMluS85rmppAWC9ENB765iDvG
0mcC3SxiXvGzedC3zYDHGyOwINfdPQA6SH.CMDi+3QFNke9zqIQXjKTEI3UD
n7EYIHIVmELZByBdpBdTPSFUV3+wMkMLv1x06xKAxlB1WGarTDQQNnhGAG2q
Ahz9dTP7TTvqplUwJVCRoMVWTOJz0pbSYu320h7PhKr53nUwspbTPzjKyOgg
+qVazP2FYij55WQ0NWZyozrMqZ1sE7Wp13E1J1CfNnf+AtcUS5xCPjEp8Iob
ODpz8xTIl2DyQakD9tH5eX9MS19tFAlfn+SQD3mQDHCYXMQD3.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DZc1FtfkI1Ua1skmBM+BGdaKkKqoXGuckMxm7Ot5+g
i.7yC
-----------end_max5_patcher-----------
</code></pre>

danieleghisi
Site Admin
Posts: 931
Joined: Fri Dec 03, 2010 1:25 pm

Re: Cage.scale

Post by danieleghisi » Wed Apr 05, 2017 4:33 pm

1. beware, you're sending the [base $1] message in third inlet, instead of first

2. in any case you're right, that didn't work yet.
You can make it work by double clicking on the [cage.scale] object, and changing the boxes
[bach.expr floor(($i1 - ($i2%1200))/1200) * 1200 + $i2%1200]
[bach.expr ceil(($i1 - ($i2%1200))/1200) * 1200 + $i2%1200]
into
[bach.expr floor(($i1 - ($i2%$i3))/$i3) * $i3 + $i2%$i3]
[bach.expr ceil(($i1 - ($i2%$i3))/$i3) * $i3 + $i2%$i3]
and by connecting their third inlet with bach.sum's left outlet.

It's updated for next release.

pedrnun
Posts: 71
Joined: Sun Jan 17, 2016 3:23 am
Contact:

Re: Cage.scale

Post by pedrnun » Wed Apr 05, 2017 4:37 pm

Great stuff!!! Thanks!

Post Reply