Question about buffer~
Hi I was wondering if anybody might be able to look at this patch to explain to me why when connecting these objects in this manner I get a distorted ring modulated sound instead of clean audio. This setup worked, producing clean audio and the desired effect the first time I hooked it up, but now it’s not.
adc~ to Poke~
Count~ to inlet 2(index) of Poke~
Count~ to index~ to EZDAC~
Does it have something to do with the buffer~? it seems to get distorted when I change the size to anything but 0.
I can’t seem to figure out how to save this in the other text format either, so here it is long format.
Thanks in advance for your time and attention.
----------begin_max5_patcher---------- 723.3oc2X00aaBCE8YxuBDZOMkE4Ogvda+Nlplb.mDuQLQAGsrV09aeX6PRa WvXZInk9BHaCWN2iu264ZdXRPzhxC7pnvuF98vffGlDDXlROQvwwAQaXGxJX UlGKRx+c4heFM0tjhePYlVHy4GdJbsnYksLU1Zgb0O1wyT1O.NMcFXZHddh9 F0L.AlABu636HxM1p19eABZLzxRoRx1vMK8scBVQyJx8aJ2qJ3JCxfGm0Nk5 Oa41uZTkXkr9kN8UzFrRbuYYHpFDmrlP1XLjdtGmLQeYpmLyxhxZa3v+oDpw kSgF+G3x+S6q6iZy8qgESEMMLZAStper.7ZvBDJQ63DHnaVfdqxBsjk74m5N 8ffLoGXzLZ6DS7GurCLzVcvdycbA9VMtXCuphsh+OAFUpxst3F5bCcL2RQX8 U37KyMD7fEab8iJZkOp+VgeB1cwTLxTLkj5jRP2PTxh8JUor65DnTbSJhiDE bO8uWlFbspCxxybUIDkhLNEwr2hSb4gn4CVsfikBm91JJNfzSV4doxCoBLxp X3lfRt4zJdSpm.a8.a2EtUOQweTnjsk+h2UW2VhgfhM5pwNiU5cCWfd323AT fHqfy14Rd.bLN.ctDRaxCHvMj7PKABK1ubIemNTndyE.7fYnlhq1yhz5ovhu UazheeNyoFCAXDNIwlPCayD5qWjFbG625dpwVQEB4qOhsAO54eoGTUteWVCg 0zKW3YHkyqTBISIp6O37CoKv+rGZsHOmKeN91Hx2VJjpif.W6xTci1VeFL+z nv6tHS6KZwWCz9Nwjt8fPXWXJtmLX8YTzxKI19SfjSiFBzBFZzBfWIzB7.sv 3Qc+V2p+fiIJ0vYXhUBEhOM58lw361Mb7RXh8ASzQcSk5AjFWVxGRBNpbjuH Z73nTOPzqRWu1PBB7LRZDEnR7YiC7+GlL0.5QzTSiFI1euo8mXYF8BzVO3wI +EvGj5ok -----------end_max5_patcher-----------
Edit – Copy Compressed
It’s not super obvious to me what you’re trying to do with this patch.Are you looking to just play audio through the patch and record it at the same time?
Maybe the record~ object would be a more straightforward way of achieving this.
Yes. so that I can layer loops. I know I could use record~, but I was just experimenting with these objects to try and create an overdubbing effect. It actually worked the very first time I tried it, by feeding the index~ back into the Poke~ input. But then every time after that this kind of ring mod distortion, unless I bypass poke~ completely. I can’t figure out why it’s happening.
Thanks for taking a look!!
yea, i agree with andrew, record~ or even sfrecord~ might be just as applicable… and it’s not completely obvious what this patch does since it plays and records at the same time constantly erasing what was previously recorded every time you play. Essentially, the patch just sends input straight through to the output(at least as far as the resulting sound) which makes me wonder if your particular problem might just be feedback? Because when I put my headphones on and just record normally from the computer mic, i don’t get anything sounding like ring-modulation or distortion even when resizing the buffer(i tried buffer lengths of 50, 1000, 2000, and 5000 and everything worked fine). Sorry i can’t help further but i did add separate play and record buttons so that you can hear what you just recorded before recording over it again and that might help you test whether it’s the recording or the playback on your comp(on my comp, there’s no probs whatsoever, though). also, you might want to mess with your vector sizes. sometimes i get a ring-mod type sound when i have a really small vector size and other CPU-intensive processes cause the playback to become choppy.
anyways, here’s the modded patch:
----------begin_max5_patcher---------- 920.3oc0X0ziZCCD8L7qHJpmpnqrGmO6sUs8VkZ0dqpZUUfXXSK3fHFU5tZ4 2dSFm.gtqVbH1QauDXFRBu44277j7v3QtSy2wKbcduy2cFM5gwiFgopRLpNd j6pjcyVlTfmlqf+67o+zch5mj7cRLszYpCsI67bgrH6dd0uPgqH0oEaWkIVx k3MhdLY9VYSVnN65D4r6xDK9wF9LoBdPnW4cxgRCp9fgA.4Jhys0Wi51H+yZ t5BbmlHV3NwwMSTdKtsE1DIqvyw85MYIKaPcVJlqr5dGk4Vk6wwiqNLQSpYE unHYA+IbyMe5Ce4lO1ExAdVxgdVxIFOFvPhJ5k3ltRHvkPHufVArqVgQTZE+ APqPMoV4qe95uYWkhhZTJEOpwUJQFTnrHQx22MoBzUoB0G0HPH1z3SOuToHa gnpzO7stQPlrSJSjx2s24trgPx.AQHEEqME0wFIxkvLyWlWVHV0MgEha4PCA r9Imu9KAUhrRgf1JciFhekxBPTHV3QwCAK3avtj2teHZOXDr8fAW4ak1ifWo 5BZiTfLD5BiNXVgLesUkFTUyBMToPL+bYdlkOJqem2PsJkTalBDzL0K17ThI 2fMIc1d618.JQAfzAKz9ieXxAzlkuUHGD2Ufhe3EZogOfv+e1vgxTsPLeqtg CDXPJYc9u3ccPU1yRLjyRLLBpR7CdhVQu512jdpyVxS1XWGUkN.HriVHF0QE HFTHLc6747MURgpQFH1cv8ZlgglqwT6NZB8h5W32mlbbOFMTBjWxqjpdeG3j nd9MGOTGsQaavhmf6xLw+9t.w+jp7mVAE4a2LqgyTOT6Dmi+Mo7BYlHQlkKZ cNkOeW6S5trzTtncEsJKccdlPViAZfWkyFSMXI.pZ6jHHn1ILF8.qhbt8YWD zsPnrRPROSk.cqPf3HkEcsgT8qi5jHUgTWxFqPN2RR4tdcqRhXU3iF.sncLp unUKADqansuXhZAofuZAV4UCj3VN2MQAdmHE75O4RsfTnmXJRm0a5fBIPik6 N6gEGfqhwplcpZ70SiTut9CdXrdudqSuT4PNsqVqysg5fotAoFFS8BbaXZe+ dyed1v5jp1DfF2dGKLpuTajN1TAcDs9DDe9nQOsbHhlHSfVhoQq5Yfr.ZI5X SELn1TdfEvDKB4L.BUCP5cHpmnko6x8.5EEnq+3vsn5qAjFVVRGRZX2eVWDM bbTrFHxCF1gVIZpjtTHUF733+ptlD6I -----------end_max5_patcher-----------
Ah i c, you want overdubbing, sorry, just read your message posted right around the same time i posted my last one… in that case check out the endless-resampling patch by AndrewB@C74 pasted below which was copied from this thread:
----------begin_max5_patcher---------- 1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IUbpJhkDR2pG1gN9GWctmq ZX6JFdlyQWDQz.QvFR0dYHgscVaxaVhjcq1093Qy.X6IVGIhPPMfTQpm93RK YLn7KYxAb7fYArfaOBjzOH0j+JiFmBBzUG9adC.OosohFvVCh.QVRAeHlGOZ VPq8fZtTgVHb9Q6L1dAbERXOVdhnaRv9TDAWqFhoyTUBAdUJ3guN06PHcHV3 7F.pSeXNA3WcLoU.HdVwjkNPhLqPxVCHYMqHxQmFiyaGhg5zlqPj74DS5zII 371lCpSd.37laBpUwQ7sWAaz.6f1jWczU2f+YzopEllWHocdqghI9A+7g+C. 8Xxfw -----------end_max5_patcher-----------
Thanks for the posts! The last patch is exactly what I am going for, although it seems a bit more complicated. What is the difference in using phasor~ to drive as opposed to count~?
I did get this one working. The vector size did happen to be set to the lowest setting. I also added another gain stage and that took care of the problem. Now it’s overdubbing quite well. Thanks again for your guidance on this!
By the way, how does one save compressed text?
great, glad i could help. about the phasor~ vs. count~ question: phasor~ allows you to loop the recording process more smoothly, whereas count~ will count beyond the length of the buffer~(recording nothing beyond that length) until it is manually reset again.
regarding the compressed text:
‘select all’ of your patch, then in the ‘Edit’ menu select ‘Copy Compressed’ and then paste it wherever(i think andrew was describing the same thing in his earliest post to this thread).
best of luck!
So I just found out that when count~ is stopped, it is not actually shut off. It just continually sends out the sample that it was stopped on creating the ring mod like distortion.