[PD] BUG on midifixes - (was: midifixes testing)

Ingo ingo at miamiwave.com
Mon Dec 4 19:39:46 CET 2017

145 is the complete status byte for MIDI channel 2 note on.

144 should be subtracted but even then it still comes out to channel 2
according to the MIDI specs and not 1.
Unfortunately the way Pd handles MIDI channels.

The problem is that Pd counts from 1-16 instead of 0-15. Maybe that's why it
is off by 1. Using 145 instead of 144 for channel 1.

Counting from 1-16 like Pd does it is very annoying as one has to first
subtract 1 then do [mod 16] and add 1 again for higher input counts.
Otherwise you cannot assign all channels from the second MIDI In up to the
first 16  MIDI channels.
(I guess it's too late to change that in Pd without breaking everything ...)


Subject: [PD] BUG on midifixes - (was: midifixes testing)

But wait, there's a bug:

when creating [notein] I play on my midichannel 1 and I get “145” on
[notein] third outlet. 145 can't be a midichannel.
Also when using [notein 1] I don't receive anything.

This is not happening on 0.48.0

ATM I cant test if this is also happening with [ctlin]

Mensaje telepatico asistido por maquinas.
On 12/4/2017 2:16 PM, Lucas Cordiviola wrote:
I did a build for win32 using Christof's makefiles about 16hours ago.

I used "doc/7.stuff/tools/miditester.pd" with a midi-cable loop on my
soundcard's midi in/out

Here's the console:


sent channel: noteon 64 65
sent channel: noteon 66 0
sent channel: polytouch 67 68
sent channel: control 69 70
sent channel: program 71
sent channel: touch 72
sent channel: bend -8119
sent channel: noteon 64 0
sent system: sysex
sent system: 1 2 3 4 5 247
sent system: timecode
sent system: 10
sent system: songpos
sent system: 20 30
sent system: song
sent system: 40
sent system: tunerequest
received sysexin: start
received sysexin: 1
received sysexin: 2
received sysexin: 3
received sysexin: 4
received sysexin: 5
received sysexin: end
received system: timecode
received system: songpos
received system: song
received system: tunerequest
sent system: clock
sent system: start
sent system: continue
sent system: stop
sent system: activesense
sent system: systemreset
received realtime: clock
received realtime: start
received realtime: continue
received realtime: stop
received realtime: activesense
received realtime: systemreset
received channel: noteon
received channel: noteon
received channel: polytouch
received channel: control
received channel: program
received channel: touch
received channel: bend
received channel: noteon


Mensaje telepatico asistido por maquinas.
On 12/4/2017 9:40 AM, Dan Wilcox wrote:
For MIDI heads out there who can build Pd, can y'all test the current git

My midifixes PR was merged into master and it would be good to get some
testing on it.

I developed a tool to test things which might be
handy: https://github.com/danomatika/miditester

Dan Wilcox

Pd-list at lists.iem.at mailing list
UNSUBSCRIBE and account-management ->

Pd-list at lists.iem.at mailing list
UNSUBSCRIBE and account-management ->

More information about the Pd-list mailing list