Looping with metronome.
Hey what’s up. I’m brand new to Max, but have slowly figured out the basics. What I’m trying to do is essentially create a sampler, based around a MIDI keyboard.
My idea is to have various samples I can trigger or mute/unmute via a midi keyboard. Basically want to build up to a live performance tool, but starting small to get to grips with it.
I’ve researched looping via a metronome and have one of my loops playing. Currently via open>sfplay. Then metro controlling the toggle. From what I’ve looked at this probably isn’t the best way to do it but I can’t figure out what is. It’s looping it but I can’t control how often it loops back round to make it in time with transport tempo. From what I have gathered I possibly need to use the groove function?!
So my two main aims are:
My drums/bass/rhythm sections I’d like to just have a continuous loop all triggered by one metronome. So every 4 beats, it triggers the loop on all samples again. I’d then like to control sound on/off each sample via a single midi key for each audio sample. So click once on and leaves it looping, click again and it leaves it muted until the next click. This is essentially to give me a section that is always in time regardless of if I hit the key a bit late or early.
Have shorter samples or single notes that I can trigger to just play once as opposed to loop. I already pretty much have this down as it’s a simple Open+toggle > SFplay. All I need to know is how to route a midi keyboard key to control the toggle (if this is the best way to do it?).
Any help in pointing me in the right direction would be much appreciated.
For sampling I would try to check out the polybuffer and groove object. The Polybuffer for sample storage and the groove for the playback. You can load a whole folder in the buffer and use one groove object that can refer to the different audiofiles inside the polybuffer with set messages that could be triggered with your different pitch inputs from the midi keyboard.
Check out the helpfile, I’m pretty sure in the groove or polybuffer helpview there’s a tab about sampling, that should include mostly all you need.
Cheers, checking them out now. I have midi controlling my samples now. Struggling with the if commands though. Basically need to tell it if the note = (note of that key) then send if not then don’t if that makes sense?
Have you taken a look at the 5 MIDI tutorials that come with Max? Based on what I’m seeing here, it looks like a gander at the first three would be right about what you’re looking for in terms of getting you started.
The penny has dropped! My metro is creating ticks, going to bang, which is toggling the toggle switch. So toggle on, and off! What I need to do is figure out how to replace the toggle between 0 + 1 to just toggle 1…
I wouldn’t use toggle to trigger the loops, I would do something more like this:
----------begin_max5_patcher---------- 746.3ocyW1sbiBBEG+ZySAiW61APMwz61Gf8IXmc5PThkNJjAwzul1m8EPso c2nRSL1dQzAzbN+O+3bNBOuvyei3AZkO3ZvuAddOuvyyNkYBu1wd9kjGRKHU 1Wym9TFI8U+flGsinRukwyuQRSUMlAs7JX.HDFZtEE2cE7m1+BKyZGwl69AJ oyN75RFufpr9.eXRQspaVnYxWVrvbIvQwVRqpH4zNunnOXEoOralF6qdbGsQ 799uoysBthSJsOv+m7LRAE7KAWLZniQXKAvWEG.PI8D5qFLzMNuh8j04VycL hflPhHojrKDTvIFbfPMoBP6f9nxxuFpvo2qc++AkM0a2RkuBt+VhhtmJeTTK qHk6JnrpTRQAsejssPPT9AZaP34SB+hr2vwVLhg8.vniBPzmAf3oCfUr7WAn dgj9wbRwYQmUuujKNZP1Dd9rYBStxkBwd5Ikb0xsfIgfsMshgtjdgOJBCu3o W0kanxd4AiOMkZqrYQ301bI3ff.cvLRsSTT4MTNYSg0cvujZvM0Jkf2Kj9Hc 5sTpqOyvgObvRoyul4bikX2ik0eyCkP2Ckju4gBx8PY0ENT56CVzB.Df.XP3 vgYP+2mftwsaVZ85gPT7QQT7moMS7zQtTQMW2Eb.t01kt6mY34SpD6wLVM3W shNePEcBfRIxyKnChCGJVrQVXT20iEegm72htX0QZUHEN1n3jW6a1qxvq8no 8.EVW3Wv3+6glshzL+GYUkdScocgcaeMvAglQqTLNQwzcUO7NnO9R2xxxn72 uVlwpLKuY8erXWkiYCciqG82Uz8D6WOkrrcBc9bKSvwlS9hSZVjPuM3fa9Bz O7D0+6FbIzuS4C34KeXoK5IZ9zS32L9fbQOiTtLcxQuE.P3XpANazwHG7HxY 8rpFzHpIYVUyXINyWe+HGTS77UU4fZludNgNVheJpoY+Cjc61SkUslzJD8tp tSHMCWFXGx3MCsVzWR2y5de8l10V6kE+EDXV5QL -----------end_max5_patcher-----------
As for bringing tracks in and out of play, someone recently asked a similar question:
There are a lot of tutorials on youtube that will help with you sequencing and looping in MAX/MSP, I recommend you check them out.