Hi, I'm trying to build a patch that routes notes, CCs and pitch bend from a keyboard to different synths. Everything is ok for notes and CCs, but I have a problem with the pitch bend. It seems that [bendout] can outputs only a range between 0 and 16384, while the correct range should be -8192 +8192. I tried to force negative values but it seems that bendout can't go below 0.
Le 2011-10-03 à 19:29:00, Nicola Pandini a écrit :
Hi, I'm trying to build a patch that routes notes, CCs and pitch bend from a keyboard to different synths. Everything is ok for notes and CCs, but I have a problem with the pitch bend. It seems that [bendout] can outputs only a range between 0 and 16384, while the correct range should be -8192 +8192. I tried to force negative values but it seems that bendout can't go below 0.
use [- 8192]
because 0-8192 = -8192 and because 16383-8192 = 8191
that is, in unsigned values, 8192 is the middle of the range.
| Mathieu BOUCHARD ----- téléphone : +1.514.383.3801 ----- Montréal, QC
Il 03/10/2011 19:33, Mathieu Bouchard ha scritto:
Le 2011-10-03 à 19:29:00, Nicola Pandini a écrit :
Hi, I'm trying to build a patch that routes notes, CCs and pitch bend from a keyboard to different synths. Everything is ok for notes and CCs, but I have a problem with the pitch bend. It seems that [bendout] can outputs only a range between 0 and 16384, while the correct range should be -8192 +8192. I tried to force negative values but it seems that bendout can't go below 0.
use [- 8192]
because 0-8192 = -8192 and because 16383-8192 = 8191
that is, in unsigned values, 8192 is the middle of the range.
| Mathieu BOUCHARD ----- téléphone : +1.514.383.3801 ----- Montréal, QC
You right, but I already tried this:
#N canvas 93 232 450 300 10; #X obj 82 77 bendin; #X obj 82 102 - 8192; #X obj 82 130 bendout 1; #X connect 0 0 1 0; #X connect 1 0 2 0;
And bendout had only a range from 0 to 8192, it didn't go below 0.
On 03/10/2011 20:13, Nicola Pandini wrote:
Il 03/10/2011 19:33, Mathieu Bouchard ha scritto:
Le 2011-10-03 à 19:29:00, Nicola Pandini a écrit :
Hi, I'm trying to build a patch that routes notes, CCs and pitch bend from a keyboard to different synths. Everything is ok for notes and CCs, but I have a problem with the pitch bend. It seems that [bendout] can outputs only a range between 0 and 16384, while the correct range should be -8192 +8192. I tried to force negative values but it seems that bendout can't go below 0.
use [- 8192]
because 0-8192 = -8192 and because 16383-8192 = 8191
that is, in unsigned values, 8192 is the middle of the range.
You right, but I already tried this:
#N canvas 93 232 450 300 10; #X obj 82 77 bendin; #X obj 82 102 - 8192; #X obj 82 130 bendout 1; #X connect 0 0 1 0; #X connect 1 0 2 0;
And bendout had only a range from 0 to 8192, it didn't go below 0.
Strange I tested (with rosegarden and gmidimonitor) on 0.43 and it worked outputting the whole range -8191 to 8192. Lorenzo
-----Ursprüngliche Nachricht----- Von: pd-list-bounces@iem.at [mailto:pd-list-bounces@iem.at] Im Auftrag von Lorenzo Sutton Gesendet: Montag, 3. Oktober 2011 22:25 An: pd-list@iem.at Betreff: Re: [PD] bendin-bendout under Linux
On 03/10/2011 20:13, Nicola Pandini wrote:
Il 03/10/2011 19:33, Mathieu Bouchard ha scritto:
Le 2011-10-03 à 19:29:00, Nicola Pandini a écrit :
Hi, I'm trying to build a patch that routes notes, CCs and pitch bend from a keyboard to different synths. Everything is ok for notes and CCs, but I have a problem with the pitch bend. It seems that [bendout] can outputs only a range between 0 and 16384, while the correct range should be -8192 +8192. I tried to force negative values but it seems that bendout can't go below 0.
use [- 8192]
because 0-8192 = -8192 and because 16383-8192 = 8191
that is, in unsigned values, 8192 is the middle of the range.
You right, but I already tried this:
#N canvas 93 232 450 300 10; #X obj 82 77 bendin; #X obj 82 102 - 8192; #X obj 82 130 bendout 1; #X connect 0 0 1 0; #X connect 1 0 2 0;
And bendout had only a range from 0 to 8192, it didn't go below 0.
Strange I tested (with rosegarden and gmidimonitor) on 0.43 and it worked outputting the whole range -8191 to 8192. Lorenzo
This depends on how the software is "displaying" pitchbend. Pd always uses 0
SysEx). This is a 14-bit message cascaded by two 7-bit messages - each going from 0 - 127.
Generally the msb is being used and the lsb is left at 0 (maybe it's the other way around). This means the center value of Pitchbend is 64 0. You can eliminate the second byte by dividing by 128.
For displaying the value is offset by 8192 by certain softwares to show negative values. Some people might think it looks more understandable to have the same range going negative or positive for bend down / bend up. But the numbers still go from 0 - 16383. Center is 8192 or 64 0.
Ingo
Il 04/10/2011 06:21, Ingo ha scritto:
-----Ursprüngliche Nachricht----- Von: pd-list-bounces@iem.at [mailto:pd-list-bounces@iem.at] Im Auftrag von Lorenzo Sutton Gesendet: Montag, 3. Oktober 2011 22:25 An: pd-list@iem.at Betreff: Re: [PD] bendin-bendout under Linux
On 03/10/2011 20:13, Nicola Pandini wrote:
Il 03/10/2011 19:33, Mathieu Bouchard ha scritto:
Le 2011-10-03 à 19:29:00, Nicola Pandini a écrit :
Hi, I'm trying to build a patch that routes notes, CCs and pitch bend from a keyboard to different synths. Everything is ok for notes and CCs, but I have a problem with the pitch bend. It seems that [bendout] can outputs only a range between 0 and 16384, while the correct range should be -8192 +8192. I tried to force negative values but it seems that bendout can't go below 0.
use [- 8192]
because 0-8192 = -8192 and because 16383-8192 = 8191
that is, in unsigned values, 8192 is the middle of the range.
You right, but I already tried this:
#N canvas 93 232 450 300 10; #X obj 82 77 bendin; #X obj 82 102 - 8192; #X obj 82 130 bendout 1; #X connect 0 0 1 0; #X connect 1 0 2 0;
And bendout had only a range from 0 to 8192, it didn't go below 0.
Strange I tested (with rosegarden and gmidimonitor) on 0.43 and it worked outputting the whole range -8191 to 8192. Lorenzo
This depends on how the software is "displaying" pitchbend. Pd always uses 0
- MIDI does always transmit 7-bit values from 0 - 127 (except for
SysEx). This is a 14-bit message cascaded by two 7-bit messages - each going from 0 - 127.
Generally the msb is being used and the lsb is left at 0 (maybe it's the other way around). This means the center value of Pitchbend is 64 0. You can eliminate the second byte by dividing by 128.
For displaying the value is offset by 8192 by certain softwares to show negative values. Some people might think it looks more understandable to have the same range going negative or positive for bend down / bend up. But the numbers still go from 0 - 16383. Center is 8192 or 64 0.
Ingo
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Thanks for all the feedbacks. On Debian Wheezy I tried the following setup: vkeybd -> Pd -> qmidiroute
On 0.42.5, the numbers starts from 0 even with the [- 8192] object. On 0.43, as Lorenzo said, I can get the correct range (-8192 8192), so it seems to be only a 0.42.5 issue.
I can't really see how 0.42.5 could use or output a different pitchbend range than 0.43. If this was the case all patches using pitchbend would be broken on 0.43 if they were made with an earlier version. I would call that a major disaster.
Ingo
-----Ursprüngliche Nachricht----- Von: pd-list-bounces@iem.at [mailto:pd-list-bounces@iem.at] Im Auftrag von Nicola Pandini Gesendet: Dienstag, 4. Oktober 2011 10:46 An: pd-list@iem.at Betreff: Re: [PD] bendin-bendout under Linux
Il 04/10/2011 06:21, Ingo ha scritto:
-----Ursprüngliche Nachricht----- Von: pd-list-bounces@iem.at [mailto:pd-list-bounces@iem.at] Im Auftrag
von
Lorenzo Sutton Gesendet: Montag, 3. Oktober 2011 22:25 An: pd-list@iem.at Betreff: Re: [PD] bendin-bendout under Linux
On 03/10/2011 20:13, Nicola Pandini wrote:
Il 03/10/2011 19:33, Mathieu Bouchard ha scritto:
Le 2011-10-03 à 19:29:00, Nicola Pandini a écrit :
Hi, I'm trying to build a patch that routes notes, CCs and pitch
bend
from a keyboard to different synths. Everything is ok for notes and CCs, but I have a problem with the pitch bend. It seems that [bendout] can outputs only a range between 0 and
16384,
while the correct range should be -8192 +8192. I tried to force negative values but it seems that bendout can't go below 0.
use [- 8192]
because 0-8192 = -8192 and because 16383-8192 = 8191
that is, in unsigned values, 8192 is the middle of the range.
You right, but I already tried this:
#N canvas 93 232 450 300 10; #X obj 82 77 bendin; #X obj 82 102 - 8192; #X obj 82 130 bendout 1; #X connect 0 0 1 0; #X connect 1 0 2 0;
And bendout had only a range from 0 to 8192, it didn't go below 0.
Strange I tested (with rosegarden and gmidimonitor) on 0.43 and it worked outputting the whole range -8191 to 8192. Lorenzo
This depends on how the software is "displaying" pitchbend. Pd always
uses 0
- MIDI does always transmit 7-bit values from 0 - 127 (except for
SysEx). This is a 14-bit message cascaded by two 7-bit messages - each
going
from 0 - 127.
Generally the msb is being used and the lsb is left at 0 (maybe it's the other way around). This means the center value of Pitchbend is 64 0. You can eliminate the second byte by dividing by 128.
For displaying the value is offset by 8192 by certain softwares to show negative values. Some people might think it looks more understandable to have the same range going negative or positive for bend down / bend up.
But
the numbers still go from 0 - 16383. Center is 8192 or 64 0.
Ingo
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management ->
http://lists.puredata.info/listinfo/pd-list
Thanks for all the feedbacks. On Debian Wheezy I tried the following setup: vkeybd -> Pd -> qmidiroute
On 0.42.5, the numbers starts from 0 even with the [- 8192] object. On 0.43, as Lorenzo said, I can get the correct range (-8192 8192), so it seems to be only a 0.42.5 issue.
-- Nicola Pandini http://www.cassandraweb.it http://www.myspace.com/thewhitewhisper http://www.myspace.com/cassandraweb
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Le 2011-10-04 à 11:50:00, Ingo a écrit :
I can't really see how 0.42.5 could use or output a different pitchbend range than 0.43. If this was the case all patches using pitchbend would be broken on 0.43 if they were made with an earlier version. I would call that a major disaster.
I've been using pd-extended 42 for nearly two years now, and all what I tried with pitchbend was with that, and it worked.
| Mathieu BOUCHARD ----- téléphone : +1.514.383.3801 ----- Montréal, QC
On Oct 4, 2011, at 10:41 AM, Mathieu Bouchard wrote:
Le 2011-10-04 à 11:50:00, Ingo a écrit :
I can't really see how 0.42.5 could use or output a different
pitchbend range than 0.43. If this was the case all patches using
pitchbend would be broken on 0.43 if they were made with an earlier
version. I would call that a major disaster.I've been using pd-extended 42 for nearly two years now, and all
what I tried with pitchbend was with that, and it worked.
Try with vanilla 0.43 and see if it works there. Please file a bug
report.
.hc
http://at.or.at/hans/
Le 2011-10-04 à 10:53:00, Hans-Christoph Steiner a écrit :
On Oct 4, 2011, at 10:41 AM, Mathieu Bouchard wrote:
Le 2011-10-04 à 11:50:00, Ingo a écrit :
I can't really see how 0.42.5 could use or output a different pitchbend range than 0.43. If this was the case all patches using pitchbend would be broken on 0.43 if they were made with an earlier version. I would call that a major disaster.
I've been using pd-extended 42 for nearly two years now, and all what I tried with pitchbend was with that, and it worked.
Try with vanilla 0.43 and see if it works there. Please file a bug report.
I don't have problems with pitchbend.
| Mathieu BOUCHARD ----- téléphone : +1.514.383.3801 ----- Montréal, QC
-----Ursprüngliche Nachricht----- Von: Mathieu Bouchard [mailto:matju@artengine.ca] Gesendet: Dienstag, 4. Oktober 2011 17:06 An: Hans-Christoph Steiner Cc: Ingo; pd-list@iem.at Betreff: Re: [PD] bendin-bendout under Linux
Le 2011-10-04 à 10:53:00, Hans-Christoph Steiner a écrit :
On Oct 4, 2011, at 10:41 AM, Mathieu Bouchard wrote:
Le 2011-10-04 à 11:50:00, Ingo a écrit :
I can't really see how 0.42.5 could use or output a different
pitchbend
range than 0.43. If this was the case all patches using pitchbend
would be
broken on 0.43 if they were made with an earlier version. I would call that a major disaster.
I've been using pd-extended 42 for nearly two years now, and all what I tried with pitchbend was with that, and it worked.
Try with vanilla 0.43 and see if it works there. Please file a bug
report.
I don't have problems with pitchbend.
| Mathieu BOUCHARD ----- téléphone : +1.514.383.3801 ----- Montréal, QC
Neither do I! I just don't believe that it works differently on 0.43 (which I don't have installed unfortunately) compared to 0.42.5.
0.42.5 works as expected!
Ingo
Il 04/10/2011 17:34, Ingo ha scritto:
-----Ursprüngliche Nachricht----- Von: Mathieu Bouchard [mailto:matju@artengine.ca] Gesendet: Dienstag, 4. Oktober 2011 17:06 An: Hans-Christoph Steiner Cc: Ingo; pd-list@iem.at Betreff: Re: [PD] bendin-bendout under Linux
Le 2011-10-04 à 10:53:00, Hans-Christoph Steiner a écrit :
On Oct 4, 2011, at 10:41 AM, Mathieu Bouchard wrote:
Le 2011-10-04 à 11:50:00, Ingo a écrit :
I can't really see how 0.42.5 could use or output a different
pitchbend
range than 0.43. If this was the case all patches using pitchbend
would be
broken on 0.43 if they were made with an earlier version. I would call that a major disaster.
I've been using pd-extended 42 for nearly two years now, and all what I tried with pitchbend was with that, and it worked.
Try with vanilla 0.43 and see if it works there. Please file a bug
report.
I don't have problems with pitchbend.
| Mathieu BOUCHARD ----- téléphone : +1.514.383.3801 ----- Montréal, QC
Neither do I! I just don't believe that it works differently on 0.43 (which I don't have installed unfortunately) compared to 0.42.5.
0.42.5 works as expected!
Ingo
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
As I previously said, 0.43 vanilla worked for me. Today I tried different versions of pd-extended 0.42.5 (puredata.info repos, l2ork) but none worked. Perhaps I messed up something, so I'll retry with a clean system or I'll just use 0.43 vanilla.
Hello list, on February 24, 2010 I posted to this list concerning [bendout], which (on pdextended 0.41.4) generated other MIDI messages in Linux-Alsa than in MacOSX or Win. A patch was submitted by mrpeach to fix this ([ pure-data-Patches-2958837 ] Fix bendout on alsa). If this has been patched in 0.43 (I did not yet try it) then indeed [bendout] would behave differently now than before.
L.Willkomm