Recording rhythm/pattern of bangs
I have basic experience with MaxMSP but am not familiar with more complex objects and how they work. Basically, I want to "record" a sequence of bangs (the rhythm at which they are set off) and set that "recording" as a continuous loop. For example, if the space bar was arranged to set off a bang, I want to be able to tap out a pattern by pressing the space bar(particularly an uneven pattern like Morse Code) and have that pattern "recorded" and repeated continuously.
I’ve been looking at the record~, buffer~, and groove~ objects, but I believe they are strictly limited to audio signals.
This is my first time posting in the forums, so please let me know if there’s anything else I should do or am doing incorrectly!
You’ll have to somehow store the time information when a key down happened. That can be done by a lot of means, in a coll, a jitter Matrix, also in an Audiobuffer (if you produce a sound on your keypress and record that). Depends mainly on what else you want to do with that loop later (overdub, timestretch, store etc).
Here’s on quick way how to do it with a coll. Read all the help files / references to the objects included and try to figure out.
-- Pasted Max Patch, click to expand. --Copy all of the following text. Then, in Max, select New From Clipboard.----------begin_max5_patcher---------- 1539.3oc2ZksjiZCE8Y6uBEd1SGjDq4ojpxeQpo5RXTayzr3Bj6sol4aOZA7 f6FgksoENoe.ZKKf68b2N2K96KW3jT8BswA7Gf+ArXw2WtXgbIwBKZ+7BmBx KqyIMxs4rtpnfVxbVo9NF8Elb8c4jWSHqeDzPWyxpJ61P49hp8rbJSd4tsq9 PUIqI6MpXMH5ttk2USa32bh3FbeM+FojrvXe9V.XOr3ja6AvW6tJBa81rxM8 thHj7JPdxMC8kmP8unrToXWk7suDf5IrYkcxJrmrVRJjxpyeUmQxcDewOVtT bX0UhabYtpNkK8WGv8QH.6dFH.bFQ.195RPUIfTlB1lw.D.WaXT0huVsuFzr irllPpWAXaok.0E7vC.VEn44LtlK9uCNfEUozICDik3le3c97iH7Xfne7LBh q4KVSx4JUJfkUP4XUyNJ+CYM.dPUU9dguEXKs9.1jmUx881WJuA3ILbEGfT3 zvgqI6SRxo8glA.dHpGvCwxnYejFfObFA9FJCvQQt+pvIzE7mfFFolATw0SY VPOTXuH5KCVwPUlTUxAXjxP4oAWClSG5bJolir44ZfzibeQSINi8jnRH75w4 .Wk+q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RYR9NUd2ukMolIV+XTroZe85tPmtAHB9kpkRaXYkxNv6uIdRWN67tMsMKMkV 1GrSyZD8MlpuwQikmXCjG3Q64yTb7gFHNhW7lkjGQi7mTd7sH93ZB9DZM4Q7 ZzOM93ZO4I3nHmgkGwHnro7bJ7whlqPSCurS1GQ68mzbAsG9.MJ8i8B2wQ2V xiQ1KTnckmSVMM9FSdv2V9yuiRxr6OaQ4AYB6m2Izep3iwrCsD9fMPdP1K9B iMrbJxNviIkSkXncjGnwxi2sC6Yn8Buf2VM6fLgLOz+1pZAxdj4gljMDZurO glZtf2Nhi8ljfQwVWZvkZtKjc6dhV2zdOkRhSA4apo3DrR9wrR0Gk2QmZ5SY c6GuTb29wx+0o2R+X -----------end_max5_patcher-----------
I’d look at seq~. It records control-rate messages and plays them back using a phasor~. You can overdub, too.
If you just want the rhythms, try [mtr], it’s quick to set up and go. The only caveat is that you need to convert from bangs to a number or toggle or something, it won’t record bangs themselves. You can then convert back to bangs on playback. check [mtr] help file for all the details, you can convert the sliders in it to work for you (or just bang the sliders to record the numbers going in and out).
[seq] can also work if you convert the bangs to fake "midi notes" or numbers…
and yes, [seq~] gives you more control over the playback, as mentioned. note that this is different than [seq]. also there is [detonate]. Lots of options!
Thanks jko, it was just what i searched !
Forums > MaxMSP