Re: [PD] emulating the behaviour of a midi keyboard: trouble with repeated notes

2009-11-09 Thread Claude Heiland-Allen
Athos Bacchiocchi wrote: The problem appears if the new note coming has the same pitch than the previous one. This is impossible for a real midi keyboard, in fact a key can be played again only after it has been released. Ok. Think about this sequence of events: Note On 60 Note On 60 Note

[PD] emulating the behaviour of a midi keyboard: trouble with repeated notes

2009-11-08 Thread Athos Bacchiocchi
hi, i'm working on a little project in which some notes with random pitches and duration appear at random time intervals. Each note is packed in a midi format (pitch and velocity), with a note-off event (pitch and zero velocity) sent after the note duration interval. it can happen that a

Re: [PD] emulating the behaviour of a midi keyboard: trouble with repeated notes

2009-11-08 Thread Kyle Klipowicz
Try researching edge detection. ~Kyle On Sun, Nov 8, 2009 at 9:54 PM, Athos Bacchiocchi athos.bacchioc...@tin.itwrote: hi, i'm working on a little project in which some notes with random pitches and duration appear at random time intervals. Each note is packed in a midi format (pitch and

Re: [PD] emulating the behaviour of a midi keyboard: trouble with repeated notes

2009-11-08 Thread Kyle Klipowicz
Sorry, did not read that deep enough the first time. Wish I could help more, but I can't. ~Kyle On Sun, Nov 8, 2009 at 10:33 PM, Kyle Klipowicz kylek...@gmail.com wrote: Try researching edge detection. ~Kyle On Sun, Nov 8, 2009 at 9:54 PM, Athos Bacchiocchi athos.bacchioc...@tin.it

Re: [PD] emulating the behaviour of a midi keyboard: trouble with repeated notes

2009-11-08 Thread Mike Moser-Booth
I would try and catch this before your [makenote] is triggered (assuming you're using [makenote]) Maybe something like this: [random 127] | [t f f]   [r oldnote] | |   | | [!= ] |  | [spigot] | [t f f] | | | [s oldnote] | [makenote] .mmb Athos Bacchiocchi wrote:  hi,

Re: [PD] emulating the behaviour of a midi keyboard: trouble with repeated notes

2009-11-08 Thread tim vets
2009/11/9 Athos Bacchiocchi athos.bacchioc...@tin.it hi, i'm working on a little project in which some notes with random pitches and duration appear at random time intervals. Each note is packed in a midi format (pitch and velocity), with a note-off event (pitch and zero velocity) sent