it seems like this is the kind of situation that [bag] was created for - if 
the incoming velocity is 0 when the sustain pedal is held, instead of sending 
that noteoff to the synth, add that note to the [bag] (like [64 1(). Then when 
the pedal is released [flush( the values from the [bag] and send them to a 
[pack f 0] before sending them to the destination. here's a little abstraction 
& help patch.
-seb 
-----Original Message-----
From: alfonso santimone <alfonso.santim...@gmail.com>
To: pd-list@lists.iem.at <pd-list@lists.iem.at>
Sent: Wed, Jan 6, 2021 3:23 pm
Subject: Re: [PD] Polyphonic voice allocation and sustain pedal

Probably should cause a problem if a MIDI Note Number 0 is received.
www.elgallorojorecords.bandcamp.com/
soundcloud.com/alfonsosantimonewww.facebook.com/alfonsosantimone


On Wed, Jan 6, 2021 at 10:28 PM alfonso santimone <alfonso.santim...@gmail.com> 
wrote:

Thanks again Hans for sharing this, it works just fine!Probably there's a 
little "error" and i wonder why it work fine anyway at least at a quick test.In 
the middle branch (the leftmost one of the pedal off case with the "bagoff 
const 0" message) after the [until] you took the reading index for "bagoff" 
array from the [+ 1] object.So this way the index goes from 1 to 128. Shouldn't 
the index come from the [f ] object in the counter so the index goes from 0 to 
127?just curious.thanksa.

www.elgallorojorecords.bandcamp.com/
soundcloud.com/alfonsosantimonewww.facebook.com/alfonsosantimone


On Wed, Jan 6, 2021 at 6:30 PM alfonso santimone <alfonso.santim...@gmail.com> 
wrote:

Thanks Hans!i'll take a look in the next days.a.
www.elgallorojorecords.bandcamp.com/
soundcloud.com/alfonsosantimonewww.facebook.com/alfonsosantimone


On Wed, Jan 6, 2021 at 9:11 AM i...@hansroels.be <i...@hansroels.be> wrote:

  hello, Here is a vanilla patch simulating a sustain pedal. It stores the 
note-offs while the pedal is down and releases them when the pedal is lifted. 
  best, Hans
  
  On 1/3/21 7:55 PM, alfonso santimone wrote:
  
 Let's see...if any other Pure Data fellow will test your [else\voices] and 
[else\suspedal] externals i guess we can have more test cases and see what's 
going on. In the meantime i'll still try to find the simplest way to show my 
findings while testing this particular Else objects ;-) 
  best! 
       www.elgallorojorecords.bandcamp.com/
 soundcloud.com/alfonsosantimone www.facebook.com/alfonsosantimone
       
   
  On Sun, Jan 3, 2021 at 7:42 PM Alexandre Torres Porres <por...@gmail.com> 
wrote:
  
  
  
  Em dom., 3 de jan. de 2021 às 07:18, alfonso santimone 
<alfonso.santim...@gmail.com> escreveu:
  
  I'm doing some experiment with [else/voices] and [else/suspedal] to. 
Alexandre Torres Porres is doing a very good work with Else lib.   
 
  but unfortunately I can't reproduce your bug and understand what you need :( 
I'll gladly work on a solution with that when the picture is clear ;)   
  
  _______________________________________________
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list
 
 
  -- 
  _______________________________________________
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list



_______________________________________________
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list

<<attachment: suspedal.zip>>

_______________________________________________
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list

Reply via email to