recording with [buffer~], saving to hard disk, then replaying
I’m curious if this is possible… I haven’t seen anything like it in my forum searching or the [buffer~] help file.
I’d like to record, lets say, 5 seconds of audio, then save it to a folder on my hard drive.
I’d also like to have a [buffer~] play back those files randomly from the hard disk.
My concern is that the files will continue to add to the database and I can’t automatically create a [buffer~] for each one manually. I’m assuming I will need two [buffer~]s to do what I want properly.
Anyway, any information I can gather while I work on this would be good, grand, and wonderful.
Many thanks as always,
May be [sfrecord~] is a way for you ?
Francois, how would you automate the sfrecord~ing then? i assume, there should be some automatic opening of a file save dialog, automatically put a generated sequential name in there, save and start recording for 5 secs. – and then all over. is that possible at all in max? scripting again?
i had read a thread about this a while ago, but can’t find it anymore.
----------begin_max5_patcher---------- 1044.3ocyZE0aihCD94jeEVHcubpWkswj.6a6Kmz8a3zpSjfapOQLQ.Ua2a0 1e6Gdrog1MDLgoV6CEpcMv274Y9lgg980qh1U8rrIh7IxeSVs56qWsBlxLwJ 23UQGyedeYdCrrn8UGOJ0sQ2Y+asxmag4aZyqaI0x8U0EJ8AxWUsORdPUJ04 GkjCRsrNuUUo6uvRktasOogqN1M4CU5Vy5g63mqU4k8KW+zQktT1Bff4l7Td 69G6dX+S2is0ZD7sz6o2Q3IIlSYbyQQ58TxWNeipdps+NQG7faT+G7fYlKxN sp.PR0t+8O1FYl5GqWaNb2RIK0AcdIQ8JarbCeKXvL3XJC3.JBl8lawr0xu1 cs+jU+6uPXyzf4iavLNrSK.KNleexUsX10sX6Ja+1Io8l61ghd8tMfRR5Q5o ZYS2tK3VODXrM.j.fQcGHe4WUdz53DdZTbKdVGkMM4GjWV8AQeqM.cv4VVQ. gVonwJWjO3S4VwYlMG1Fp4zh7qZqNbnTNaoUgUZ0ovRmPigMl0qLZ9Wh.nX5 QPwyaPjLzvswHezdCL9VDUd2Q33koIlZ4gMTujL3yjN1kqODcm67E8SXHxLM xRLES64lXGEMQLxsxMWlWDHxKchPmj5BRU2QzccDVwizDOkPVTjTVBhzBTwp rlPILBiNWMljqvLYVOFKAkIlfYDyjYLZtF+F2OiIAmkhHW0RTDEd9NtzO8QX XK63XnQYlrnPmn04RfehVVLl4VZdv9ReuL6bL7Io.gsNrsYHKTbkxRYhapLj N7rSVinRY1vDIITjSj371GMGKSvvrXruU8Tceu.1b+m+q+D+LtV9hQyBQs5L AGyHnS0c6GOPFxR+VYwMvSd3PYqZikrMD4dYh3agmNjqzubi8CnOOJ76oSFv LlzvUREDyClMYe27.XRTDcmKx2+B1smv8tWaDn0XKFtsen5DhI+XzAcevp8+ Qqn8l3TXAPGZeWqgAvZl+sbTSmv099auqEYjyvsP1zpz1t+ddMcgQCWziphB od3d3QUwopNOVGFFoSG9BIgOPhFTHYRxNMnLZngEUwdgJy1GKXnh6CllGOw1 Jf2gPjZNkddvBgZ2qJ3AV6pAOj6pbpGf5cH+iFSw9toFN2rXJ99YX.IFxhoY I1lXBUK6JIb3fT3Cmw3YPnAez9L6sQfOsxYY8QrzgguKEpbl2xeAL7k4gSPV 57vTLOFJrz94BiE7KLx0jWaUXucDOaq8Mur6ClQK0J8IIMOrgefl3TL+6.9z 9tarLO2xfTfAgQKN4sOZpYIgkBS8JhJr6quOA7XnhFdwdzAkSbz9+DQ+217M i5+DWBvSDFszM8jOBKwEpHbsuPbdTPpEQPmW0HtDndv7uZXKm4Me5POz.LAk w2nic2fer9+wUXFDE -----------end_max5_patcher-----------
you can specify a filename using the "open" message to [sfrecord~] so you can bypass the save as dialog completely. I’m not sure how to specify a certain path though, in the reference it says it saves to the default volume, but I’m not sure how to change this from within max. This means you can use [sprintf] and perhaps [counter] to generate unique names. You can also use the "record" message to specify an amount of time to record for.
So then according to Phijel’s patch (thank you very much by the way) I would have to run that counter out through an outlet and into an inlet to another patch to get it to play back?
I’m trying to get the files it saves to play at a random order. It doesn’t matter so much if they repeat in order, just that they are randomized.
Forums > MaxMSP