Keep messing around with record~ and groove~, what you want to do is possible with that method.
Also, if you don’t plan to alter the speed of the playback/loops, I suggest checking out the count~ object in conjunction with poke~ and index~ for loop recording into a buffer~. It will give you the best audio quality during playback out of any method in msp, as long as you don’t want to adjust the speed (and therefore pitch) of the audio.
If you do a forum search for things like groove~ recording, loop sampling…..etc……..I’m sure you’ll find loads of things to help you out.
It wasn’t completely clear from your post, but do you mean that you’re using the internal mic of your laptop to record what is playing through your speakers – hence the noise? That’s fraught with feedback problems, and is never the best idea. If you need to be able to route audio into max from somewhere else have a look at Soundflower or Jack.
Thanks taking the time to reply and for the pointers. I am not trying to record through he speakers but seems to be the only way that it will record at the moment. I am trying to find another way of recording the built in synth into the record~ object.
I will continue experimenting and will also look at poke~ which I haven’t come across yet!