Jump to content
IGNORED

Advice on a M4L Patch (note detection)


Recommended Posts

Hi all,

 

I've recently started studying Max for Live and have a basic idea of patching/architecture/etc. I had an idea for a patch to use for live performance but was unsure if it's actually doable. Basically:

 

I'd like something that could move between clips, detect the layout of notes in a clip up to a given number (let's say 16 max) and then be able to adjust the pitch of each of those notes. I believe this would allow me to easily move between active clips and adjust melodies more easily than a dedicated sequencer running to a particular track or midi channel.

 

Ideally I could use a midi controller with a directional pad (like an APC 40) to move between clips, then a number of encoders to adjust the actual notes. Tracking the tempo or actual note pitch within the device would be unnecessary - I just need the patch to recognize that there are, say, 5 notes in clip A, then assign each note to the first 5 encoders and let me adjust the pitch by moving a given encoder up or down. Then I move to clip B, it recognizes there are 8 notes in clip B and does the same thing.

 

Would this be realistic to develop or am I completely misunderstanding things? If the former, what sort of modules and setup should I look into to begin? Certainly not wanting anyone to do all my homework, but a kick in the right direction would be much-appreciated.

 

Thanks!

Link to comment
https://forum.watmm.com/topic/88902-advice-on-a-m4l-patch-note-detection/
Share on other sites

hey, the best advice I have is to check out the fiddle~ object external , it's designed to do pitch detection of incoming signals and works fairly well. As far as the actual patch construction i can't help, but this object should take care of most of the hard work

here is a link that includes fiddle plus a few mods people have done of it
http://www.maxobjects.com/?request=fiddle&operateur=AND&id_plateforme=0&id_format=0&Submit=OK&PHPSESSID=236751aaef4c6d12a68515eb57f19a8c

Edited by John Ehrlichman
  On 10/1/2015 at 4:59 AM, Mesh Gear Fox said:

if you have a look through the M4L.api objects and also the live. objects I'm pretty sure you can find the right tools to do this (try typing them in to an object box and see what comes up). I'm still getting my head around some of those extended M4L features where you change stuff in the session like triggering clips and muting tracks, but I'm pretty sure what you're looking for is possible with those objects.

Aye, here's the apis in question, the top two sounding the most useful for this project:

  Quote

M4L.api.GetSelectedNotes.maxpat: Locates the clip that is currently selected in the Clip View, read out all its selected MIDI notes and fill them into a Jitter Matrix.

M4L.api.ReplaceSelectedNotes.maxpat: Will replace the currently selected MIDI notes

M4L.api.ReverseNotes.maxpat: Reverses an input matrix of MIDI notes

M4L.api.InvertNotes.maxpat: Inverts an input matrix of MIDI notes

M4L.api.MoveInScale.maxpat: Moves a selection of MIDI notes without leaving the given scale

M4L.api.BuildChord.maxpat: Builds a chord on each input note

M4L.api.BuildArpeggio.maxpat: Builds an arpeggio on each input note

(taken from https://docs.cycling74.com/max5/vignettes/core/live_resources_abstractions.html )

I haven't eaten a Wagon Wheel since 07/11/07... ilovecubus.co.uk - 25ml of mp3 taken twice daily.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   1 Member

×
×