you have a
return true;
at the eight line of setup()
. This means that all the remainder of the function, where libpd
is setup and initialized is not executed. Therefore you are basically running the project without libpd
. I guess I should have specified that when describing the operations needed to achieve you result.
Remove that line and everything should work fine. Leave - however - the return true;
line at the very end of setup()
.