I have a pad matrix of 96 pads which are supposed to send out Midi Notes. I want to display the last hit notenumber/Padnumber in a Monitor object.
I fiddled around with the firstof function but fail at making this work.
Hopefully a simple one...
Re: Hopefully a simple one...
firstof() is the right way. First I think I would create an expression in the Pads object, then also a script that writes the pressed pad number to that expression (expression=firstof(Pads.x);). In the Monitor object set Pads.expression.
Formant+Eurorack, PPG wave 2.2, Korg MS-20, etc., EWI 4000s, QuNeo, etc., Mixbus32c, u-he, MadronaLabs, Samplemodeling, NI, etc., iPad2/4/Pro
-
- Regular
- Posts: 294
- Joined: 24 Jan 2012 18:22
Re: Hopefully a simple one...
Alright i got it. I made a variable "last" and set it to firstof(Pads.x).
There is still one thing. It doesnt show the last notenumber when i hit more than one pad. Instead it shows the first triggered one until this is released.
So when i hit pad nr 0 and dont release it and then after that hit pad nr 1 the monitor still shows 0 but i would like it to show 1.
Hmm it seems to work when the second hit is a lower number than the first one. I have tried with different trigger setting (down, up etc) but i cant make it work the other way around.
I have attached the file i am working on.
There is still one thing. It doesnt show the last notenumber when i hit more than one pad. Instead it shows the first triggered one until this is released.
So when i hit pad nr 0 and dont release it and then after that hit pad nr 1 the monitor still shows 0 but i would like it to show 1.
Hmm it seems to work when the second hit is a lower number than the first one. I have tried with different trigger setting (down, up etc) but i cant make it work the other way around.
I have attached the file i am working on.
- Attachments
-
- lastpad.jzml
- (4.21 KiB) Downloaded 109 times
Re: Hopefully a simple one...
For multiples you would probably want to look at 'nonnull()' which will return an array of values rather than just the first of . ..
iMac 2.8G i7 12G 10.6.8/10.7.2, Legacy Dexter/Lemur, Liine Lemur/iPad2, KMI SoftStep, 12Step & QuNeo , B-Controls, Mackie C4 etc
MaxMSP, Live Suite, Native Instrument stuff, etc Modified Virtual Guitar System etc All Projects/Modules © CC-BY-NC-SA[*][/b]
MaxMSP, Live Suite, Native Instrument stuff, etc Modified Virtual Guitar System etc All Projects/Modules © CC-BY-NC-SA[*][/b]
-
- Regular
- Posts: 294
- Joined: 24 Jan 2012 18:22
Re: Hopefully a simple one...
Aaah, makes sense