Create a Look Up Table and retrieve values quickly.
I’m confused so I apologize if anything I’m about to say is unclear.
I want to create a lookup table where the x axis represents time and I wish the resolution to be quite high, say sample rate. In total the maximum size would be 8 minutes.
The y values are determined by a function regarding some incoming values. So typically I would wish to write the same y value over a range of 5 seconds. Then a new y value over the next n seconds and so on.
If I use a buffer to do this then do I have to write the values in real time? So writing the buffer could take 8 minutes? Or is there a way of connecting the dots (two points) when writing to a buffer
Like I said I’m in a bit of a tangle so any help would be great!
It would be possible to write values into a buffer~ using peek~, typically using an uzi. This is not very efficient however. Do you want to read out values in the signal domain? The function object could be used for a non signal version, probably zigzag~ would be easiest for signal domain.
-- Pasted Max Patch, click to expand. --Copy all of the following text. Then, in Max, select New From Clipboard.----------begin_max5_patcher---------- 825.3ocyX1sbiBBEG+ZySAiydoaGwuhYeP1a1oSGhRSoiAcTR2tsS2m8ENnM XV0XZSH8FgCAgC+3OGNlWW33tt7YZiK5GnegbbdcgiCzjpAmVaG2sjmyJHMP 2b461tlV65o+IoU4NQAU.+XPaq2WxEMrWnp1v3a7aaV2Swepn5IzkwEtdH20 D9FWzss8phHxdfw2bWMMSn6XbPpbPPAoPQrOXHeZ7N0jsTAs9NJmrt.F+tYk kC9c45G+dRjqgGxkuB7S+jVmS3Di0Di2sjvp1dawB0CuYhnszlFxFZ23InOK zsWlSQ3gQG9DQ2j7JJQyKM1hCTOwoF7xjIAmLSBNiLQ4Yx8Reeafk3DfDQQp hjnIwhuUvBm9a4r8eT4kBTco.EbdNloNiMIXBhfiTs7YfyWFfIN4ppW9FFYC oRKQBSAQRX7TRkX7UVp7XIiaYkRftHZJkRT50jK0xEGEceQIQXW1Dl.EsgfG iMKulrofwo+87PkF1FNoXV2h2E9MUioUSxmXqvmlrxp8jnVtBZWWfKhM7s9T pCGYjhrrxcbgI5FeoGFAhBbn+6ECt3Ct3AMXadgrYDIPzGVBru1oHHBz2DGu 5l3wEDg1IXRSAKerrawenaRv5.A3t3A5PlQmdxq6AfJllzIp1ILcq9os1136 6exLrtw+C.D4jIG3ySrh1fwyPYzRqvvjOYB+W078yJnjZOjuLZB1SsEXVITt 75WIVknQuJK8Pq76UYE75s0.L1NopP5uGIJ7xmfDNT+UE9ZYMNQm.4vGdsym Xb+NdlfUxmNp13pxYG25fyx5BfDmp9D6N0gWRddkL0NQiwcRfBBltgMCAyvQ Li0lwCatDLW4Or4ptIxvFcqw9Dr3Ag3A+gB.BUs2eyqobWcV2tPWLdzdFlSa DLNA1R22I0kiFc5AVdNkah2bVih3.jGNh2b8G0m5bT+4.m9R5Opjh9J4OIAe w7mnuV5G0+gvw8mX6oely4qCD8WT+Q9QPH7w3i8zOpOj+36Wo8b5KNeN59E1 Z7AOmsqkVycliZ1tv4Xdi8NZEbAYi9ddRU0Sz5l1gDbDY5XOVVqLS7.SFWaB inaM8IVW+iVnFs2V7OPjM9XZ -----------end_max5_patcher-----------
Function is absolutely perfect for my needs.
I haven’t come across it before.
Thanks you just made my day a lot better!
Forums > MaxMSP