Individual Note-Off problem

Ady's icon

Hi!

I want to use my MIDI Keyboard to play samples with MAX.

I'm having problems separating note on and off:

I want to use :

1. Note C1 as trigger ( no note off ) - I use strip note to ignore note off,
2. Note C2 as Note On and Off - I want the sound to be played as I hold the note, and to stop the sound when I release my finger from the note.

The problem is when I play and hold C2 and press and release note C1, my C1 sends note-off on both notes (C1 and C2).

How can I manage note off for each note separately ( C1 and C2 ) ?

Thank you.

Jean-Francois Charles's icon
Ady's icon

Sorry - I'm new in Max -

Can you explain more?

Maybe an exemple.

Thank you.

Peter Castine's icon

>> The problem is when I play and hold C2 and press and release note C1,
>> my C1
>> sends note-off on both notes (C1 and C2).

Are you sure this isn't something your keyboard is doing? (Local
control).

Suggest posting a short patch with your attempt. If it works for other
people, then you know it's your keyboard. If it doesn't work for
others, it will be easier to see why.

-- P.

>>
-------------- http://www.bek.no/~pcastine/Litter/ --------------
Peter Castine | ^
| Litter Power & Litter Bundle for Jitter
pcastine@gmx.net |
pcastine@bek.no | iCE: Sequencing, Recording, and Interface Building
4-15@kagi.com | for Max/MSP
| Extremely cool
| http://www.dspaudio.com
| http://www.dspaudio.com/software/software.html

Ady's icon

STORY:

I have two sliders and two bangs.
I need to send note On and note-Off to the sliders (126/0),
and note on (only note on) to the two bangs.

Problem #1:

When receiving, note off is sent on both the sliders even if there is sent to the notes who control the bangs:
(It looks like message "note-off", is a message that it is sent by all midi notes, but it is an overall message ).

Another thing:

If I'm using midi in and midiout, and I'm playing with my keyboard, I can hold notes, send note on and note off to midiout.

How can I use this in my patch without having problems with "overall note-off"...???

Problem #2:

As you will see in the patch, the bang from the sliders (just before the message "0", it is active when I release the note but it is not sending "bang")...and when I press with my mouse on him, it does sends "bang"...is this a BUG ?

OK here is the patch that's making me problems:

Max Patch
Copy patch and select New From Clipboard in Max.

Please help.
Thank you!

mzed's icon

Does this work for you?

Max Patch
Copy patch and select New From Clipboard in Max.

Sydney Bristow's icon

Dear Ady,

Without getting into the details of exactly what you’re trying to accomplish there seems to be a “bug” in the way you handle the data coming out of the left “noteout” object.

You’re sending the pitch AND the velocity from a “notein” object to the same “select” object without turning this date into a list first. This fits the description of comparing apples with oranges because the “select” object has no way to differentiate whether a particular item is pitch or velocity (in theory there could be pitch 48 or velocity 48).

What I would suggest on that left “notein” is first to determine whether the “pitch” is of interest to you (using a “select” only on the incoming pitches) – if so then do what needs to be done depending on the velocity.

Sydney B.

Ady's icon

Thank you mzed !

That patch work in 90%.

The problem is with the sliders separation:

When I hit and hold notes C1 and D1, and release ONLY ONE of them, both sliders go down:

Max Patch
Copy patch and select New From Clipboard in Max.

Ady's icon

OK I got it.

Thank you all.

Stefan Tiedje's icon

Ady wrote:
> The problem is when I play and hold C2 and press and
> release note C1, my C1 sends note-off on both notes (C1 and C2).

I bet this is a missinterpretation, no keyboard I know would do that.
An example patch would show the problem (select all with the open patch,
and then paste it into the e-mail)

In general you would have to split or route the note events before you
strip anything. Example:

Max Patch
Copy patch and select New From Clipboard in Max.

--

[][] [][][] [][] [][][] [][] [][][] [][] [][][]
[][][][][][][][][][][][][][][][][][][][][][][][][][][][]

Stefan Tiedje
Klanggestalter
Electronic Composition
&
Improvisation

/~~~~~
\ /|() ()|
))))) )| | |( \
/// _/)/ )))))
___/ ///

-------------------------x---
--_____-----------|----------
--(_|_ ----|-----|-----()---
-- _|_)----|-----()----------
----------()------------x----

14, Av. Pr. Franklin Roosevelt, 94320 Thiais, France
Phone at CCMIX +33-1-49 77 51 72