PURE DATA forum~

...that deal with pure data

You are not logged in.

#1 2010-03-02 07:02:58

skatias
Member

Choosing the lowest active midi note!

I want to build a patch that choose the lowest midi note of all active notes (by holding or pedal). So I have to build a mechanism that stores all actives notes (when a note is inactive it should be kicked out from the list) and then another mechanism that searches all the time to find the lowest note from the active list. The problem is that I don't know how to build it. Any help would be appreciated!

Offline

 

#2 2010-03-02 07:10:25

mod
Administrator

Re: Choosing the lowest active midi note!

if you have pd-extended, then have a look for the [list-abs] directory.  i'm pretty sure there is an abstraction in there that does exactly what you want.

actually, i think list-abs works with vanilla just as well, so a google search of 'pd list abs' may probably find it for you too.  but it is installed in extended by default.

Offline

 

#3 2010-03-17 20:41:18

Zygomorph
Member

Re: Choosing the lowest active midi note!

Haha, today is the day I discover all of the abstractions I've made for myself were already in Pd-extended.

Offline

 

#4 2010-03-17 23:11:07

slur
Member

Re: Choosing the lowest active midi note!

tomorrow you'll discover diy2 ;)


pd redefining mathematics |expr fact(0)|==0

Offline

 

#5 2010-03-27 16:57:35

skatias
Member

Re: Choosing the lowest active midi note!

To find the lowest note is very easy with list-minmax. I still can't make a patch that saves in a list all the active midi notes. I have tried the list-extend in order to sum up the note-on notes but my problem is how to subtract in this list the note-off notes. I tried list-find and list-delete with no results. Is there any list object that removes from a list given numbers? Thanks in advance.

Offline

 

#6 2010-03-28 09:32:13

skatias
Member

Re: Choosing the lowest active midi note!

Finally I found it!!! I am posting it in case someone is interested!

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson


pd.webring info