Recording lin~ possiblities.
I was wondering if it’s possible to record line~ as a series of numbers. I’ve tried recording into a buffer to no avail and the only solution I can think of is to snapshot~ the audio data to record as numbers. I get the feeling that there should be better solutions to recording audio data as simple numbers but nothing seems to work quite how I need. The purpose is to record the audio streams and then play the data back as a series of numbers again. I get the feeling I’m missing a big trick but can’t for the life of me work out what it is.
I think the peek~ object may be what you are looking for.
Yes, peek~ is probably what you want for storing an array floats to be accessed as Max messages.
Or, if you want to capture all of a line~ object’s output to replay it, you can just use record~ and play~. (See example below.)
-- Pasted Max Patch, click to expand. --Copy all of the following text. Then, in Max, select New From Clipboard.----------begin_max5_patcher---------- 634.3ocyWssiaBCD8Y3qvhmSi7ELP5a86nppx.NY8Jvf.y1jtZy2dw1PtnFH jcSX2W.OClgy4XOyXd00wKtXKu1C7cvOANNu553Xboc3zY63ky1ljwpMSyKo HOmKUdKrOSw2pL9KyX65cttPppE+kqe.BuD14V1jKjYbkIPniNKZT8d6mZIS k7jPt42U7DkEdqBZCD.Cg5aDh0XID7qtWQjZvQQ7yeCEdJRjrbCR79Qkfk4o evatt5KK9fbtEbEUoOTVSzABDou3SGkyz6Kmy400rM7+iy0JV0AkvxA0tRtE sddGf1TTC7EUCzvpAxrG.EZtQ7MFQCnGj6qdH4+oMrWba+dP9tLgrMOZHYoV rQ19YW.7hYxM2lHc4sL3qIRcIJQ9itoAceEo3FkpPNnLbN4m.Ku5Vgnd1MBG g2wk6TVxduO7Nb3XzxPFjkSjvwXVz7jwi97x1MhfuUJvKoCmsGNSRwR.E.Wh vTvJ8f16HJrcPHEfMCzdf5Avf1gX8P809HoKSjTzHMgi7oVE0JqHBxXDbYck NKEQ0px9GRwS76q3YjotBIXrru4o+h8HFStCyMINj2Y6WasoUipN3YQchaVu lWcPczodvAkn0YEL0r1CF4aOhBFOZCpoIUlW0ytK3ryqa97Z+mqe0EMUI8bu +DQfiHHkWqDRlRz1v9jIgNaROIRS4xS6YkJpYwYbC7gWbkbx3ANA7DdE3jKR KKDRUmlfo5tD1+N.Erp233GYdQOc1DyvIflnuTnAeaqrcqlHj8O+nGLd.qsz I.exrIlj6fXNDZrEUXkkuvqp6BoAHskeetnRaFrvXJjVSSDaaK8hne99t5n8 l6+.4i3tY. -----------end_max5_patcher-----------
Christopher, thank you for the patch, it made me realise that I hadn’t put in an initial time for my buffer and that’s what was causing my record~ not to function correctly. I knew that line~ should be able to be recorded and played back!
Moral of the story: Sunday is for resting, not programming on a broken brain!
Forums > MaxMSP