Issue reading back values with peek/data and MC inside Gen

MakePatchesNotWar's icon

I don't understand the behavior of peek in this patch. If i'm correct it should output the same value from peek specified by the 2nd inlet over all mc-channels. Anyone knows why it doesn't?

Thanks in advance

<pre><code>

----------begin_max5_patcher----------

1479.3oc2ZsraiaCEcsCP9GDzlBT3XHp2paZK55tpKCFXPKQayIRjpRTINyf

lu8xGRxRx503Xm31YQTBuT7dum6gGRQNe+96Vnugd.kqq8KZOpsXw24srP1l

nkEUMrPOAdHLFlK6ndHMIAQX5KKMxPGXRC+0dZQbD4mXZoH3SZzBVZASisGo

kCSPZXRD5fF8YTlFLNVC3p8m+wCg6gDBJN+WqGtXLAERKHxwzppURQBlDiXx

P.T0JNR5X5lu9fsU8HjBYg6wjcqyPgLUt4..qLVpYFHe.bLDOr8WYn8kFdfG

wUtvP15+b+chm7GKmM7PPuvimSQmjvU+7aZbG6Z5TaU4Q1qoHUbpmTDyvUfB

dGAFq2JDOBBl8ABFiABVd9RPv1V7vWhAllCiAfyFCRPLT1aCmkaioP1PIVuU

WvbRrxpqHm3OBbtFo1fr+LDLRww0mcZAbFKsLAxDw0Q7SOOYJZbMnrbpIen1

zrjskRX43uIKXxvn58nQnVru4vfWVUw4+BlzrvKbCgKNHCieOCK57njcwKrE

FJeg5fJBmmFCeU3TY75zCT6WOv7fREpxI.WrebLoFlgJ4jhpn7urrGtXZcMz

e3Y9aZ9qz9MARkyUfuD5P8wq8lAstZZpo+0SG5yTKdzo1dF+mUIdFo0GgN7+

yzrB5Aps9Tkr7+vTr3kRz2hfguM+ENs7GiF5BbkQa417bp94G5l8jhsfO.wV

yomQ9Iq0tCQd6LwgkuWYXvLPGW0CPvTnSsChfLXIXTgFkN.kU0dsAtB.NFw+

tmbLkzrJxs.SSaXXQ62SfvekJGP+kMZDSTM51nwLzy3SGetCx3IMimwEYJEq

Ct0R3UhiYjB7whup9eLDkkXgfWdZoHldTdpnndbbzOhoAJplZQMWixofMUaD

bocwzvmPQMkDELhTDASRyP47sXCYkoSiNDg1B4zg0CH02oGcEc6XteQbdm1k

ginDQvzoZILT41G46yT8wjsSMYeHvzdG.NijCTCZNmmzE4afYhZ4l3VqZIlS

QowsM13ciQaYkcHEymqzEaYzzwLmg2sez2eCkaNYbOHskutfnrulybXqygO2

sJvfwwk5EccxAHAm.YHFVUbLMZXFQf7DeedXFMNtS9qr8bu1h3SNBQufiX6k

NrMgg+J3zJxldCdPDdGJm0sUFbWd21xYupJHsZrXSojvZFJguZO6jtvmYgyY

46oujW10JRYaP43YzzQgnorbWSiJPunsJ8CZf1VNQbVuAIev0kVbh7amgsGQ

Xfi+Jql+CXK1ZrkTL15DI4ECtpUkzU8eTt90UBx39WyT+LvjfIgDKK4GFXCT

65xYVffwmAHjhPOo8LLt.ME8Y4DTHygfK+4BWldRfx0aVvk4mBbQeB0Gb0BI

rGBI7ldtjkYCjHv+1k3H1AkBIZrkvyk6XLDh4NIhY6olpIIM9faWpSR35xMA

+dDpGDorlDobJ2rr53HugElwj22hYChQf4hQJ4H+aZHx7p.QlyUr91GiDquC

Nm02smIM4Rs7dyu9Pb6YCuWQYnH5xfvSNsHKrhBTsANstQFeOyLLo9Czdrd4

IMf1W9wpUmQHYM6Hp2fOAGkRwDVIL4DrxQrQyR0MuU9mrWTKiSpMzrH0W5ab

Cktd8zy5.Eb0CT+YGnApddCAc1iAclW8.0b1Ap+DPWso51OdXN5ujASS4eNZ

AA+2EnmPuJ0rJBbsMLrM770O+S+SdV7CezdhsvsAR1o27LmyfxqmXs5S2ac7

3bcVbRQR61fGpZ63U7M4wiFLi6hRclUNSdOLlmM9rMlxGpeH7YKMKAxZdNei

CYSeayFSeVnmKRn5W6keJQltSGpvmIlDLjjdC9euEhY6NvbbWaEjtx9e.Afy

.A.3BE.foB.+O6.P7epkqVMvatbNvEgyELG24cwn3cgtA.3K3bpY4PyKl+bl

U90q6JUr5bALRO08ZW5diK8bYKibOKmbEKkKH22EqHVE4963c3egXKCTt

-----------end_max5_patcher-----------

</code></pre>

👽'tW∆s ∆lienz👽's icon

hard to get my semantics straight today(sunny outside, i'm very distracted :D), i'll try to explain it with this screenshot:

[Edit: ooof! semantics: i meant^ "(leaving all the other indexes of 'data value', for that particular mc_channel, blank...)..."]

hope it can help!

MakePatchesNotWar's icon

Thanks! Yeah, the weather is lovely here as well. I'd say winter is finally coming to an end again but can we really speak of "winter" anymore? smh....( That depends on where you're located ofcourse but winter has been very mild here). There's just so much existential dread to pick from nowadays it's hard to make a choice :D

That makes sense, i think i was under the misconception that [data] would be shared amongst all instances of Gen . An outsidebuffer solved that but i ran into another issue which needs some investigating. I'll probably get back to this later

MakePatchesNotWar's icon

Solved by not actually making use of MC and doing it all in regular msp

<pre><code>
----------begin_max5_patcher----------
2246.3oc6bssiihCD84LRy+.hGmMSDl6rZdX1uf8CXzpHGvIgoIFVvzWlQa+
su9BP3Nt6j.sT2uzoiKCt7oJW35Tl76O+oUp6heDkop7mJ+PY0peSaYEuMVK
qJaXk5I3i9QvLdGU8iOcBgIpqKDRPOR3B9lRLV4dXTNx+HDe.o7PZHAoDhIw
JXZmn+W.5Qk38J6x2uGktQ4uwHExwP7AEZWtCgRncQ4DsaJgYTAP5kPxTvwD
kL3ojHDz2OOERumvLtjcnirNCJDWoRQgXjebNlqWFksljhxnJNjDFi21nK1U
cAR7Y5y1TjOQ.KlNlazVq.7bXen6Xv9vzcilx+TdU3bpNGgHb7ATq03bRYyZ
kMGFvAq3c+7qF5p7F+uO+I1mzOVeMrB+LOin3mhnSTJxBwLK.5.JU4HJEozO
HoKABnK9vRi8gg4UAA.udD3j+F5.rCk9r5HJutlPcM31Mfq9DJeEPbJN.0ng
rvChaI+Fd09yY8HHLKIB9DawCGFq7J2GiIYg+hqN.1DnW7sxOWzF4oDjPeUO
kGQBY2VLJhNKvvH00Jp6ihgD1+DxbA9m5CFFdhesp+UZHqy0DsG5iFxZp685
slXzCzaQW2YpU9.B+rx2Y5eFETjvXq64xM1.O92zm1XeYHozsdVMpiZlUSo.
HAV.RknTw7DkV1d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