Imposing Rhythm
Hi!
Im a max msp amateur.
Im looking to create notes with notein (which I can do), and then impose/force a rhythm on every note i play.
Any suggestions?
You are not very clear here: in what way 'force/impose'?:
1) a rhythm on the one input note? have each note played with a rhythm?
2) associate a duration for each new note in (ignoring intra-note duration/"attack point", since max will have to wait until it gets next note to start playing any duration)?
3) have the input notes in order played played back with rhythm (later, by requirement of reality, can't apply rhythm until list of notes is complete, right?)
Ok, one hint, look at makenote object, and also look into the data structure objects, such as COLL.
Remember, rhythm consists of a "attack timepoint" or delay between note attacks, and a "duration" of the sounding note. They are not the same!!
And normally in note input the "attack points" are given by the input of the notes : time between input.
This doesn't sound like what you want.
Please consider what you really want.
ymmv, pax,
j2k aka cfb
Apologies for the mixup.
I want to create a sample with a rhythm in it, and then apply that rhythm to sounds i create live using notein. Is this possible?
"create a sample with a rhythm in it"
that sounds interesting and is possible but i don't think it's what you want(a sample would be read back at sample-rate which might be overkill for notein-style rhythmic triggering...)
what you probably want is just a sequencer. a sequencer is read at a specific rate by a clock to output sequenced triggers of whatever you want(notein, etc.)
you would then apply that sequencer to your notein input(maybe you would even store the notein value into a table or even just an int object and then trigger from the table using the sequencer).
hard to give you the answer without your patch to start from, so all i can say is to try searching on these forums for "sequencer", "sequence + notein", "MIDI sequencing", etc.
and maybe also look in the examples folder:
Max5/examples/sequencing-looping
Hope it helps.
________________________________
*Never fear, Noob4Life was never here!
applying rhythmic data from an audio sample? hmmmm....
One approach would be to look for thirdparty MSP externals that do this audio transient segmentation: (try bonk~: http://crca.ucsd.edu/~tapel/software.html)
(always a good idea to search maxobjects.com for useful objects....)
OR
You will need to study various segmentation algorithms... not easy. If you have sample before hand, one could pass it thru all sorts of wonderful third party 'segmentors': the classic is "REX" app from propellorheads.
Or you could study the algorithm and recreate it in msp..difficult, not impossible.
Once you get the segment timing, you could apply the timing data to notes sent out from makenote object.
g'luck!
j2k
An oldskool thing that wouldn't be hard to do is to use an envelope follower to create a control signal. This will only work for the right kind of sample, however. Percussive tracks, for example, are conducive to producing clear control signals.
I've seen several envelope following patches floating around. CNMAT has one, I believe, and there is also a M4L patch that I've encountered. Maybe others. Have fun.
Here's a quick patch to show you the concept:
thanks everyone, ztutz, im going with your suggestion, ill let you know how it works out
this isnt following the envelope. its probably something really obvious, but im not seeing it, any ideas?
You need to adjust the parameters and tailor them to match your flea sample...you are shooting for a control signal that crosses the threshold enough to be interesting, but not so many that it becomes monotonous.
Do you see a signal in the scope? Play with the number boxes to see how each affects the signal.