SamplerBox and Pure Data: Theory and Practice
Started by bbishop




14 posts in this topic
hansehv

168 posts 17 threads Joined: Dec 2020
31-12-21, 00:30 -
#10
Hi Bryan,
Well, I think you could use the internal midi through of the PI and route the midi through of samplerbox to that.

Code:
keyboard -> samplerbox with through enabled for port14 -> alsa through (port14) -> PD reading 14
We'll have to sacrifice the internal midiplayer which is not a big loss in this case imho (just a choice depending interests / usage approach of SB which differ a lot, again imho). Background: the smfplayer is a separate thread writing to alsa midi through (port14), which in turn is opened by samplerbox as input. I'm suggesting to do the opposite here..
Perhaps I can help you (& even should in order to keep your extension compatible with future development) with the samplerbox part. For the PD it means you'll have to open port 14 similar as what samplerbox does for the smfplayer. You may have figure out the specific way for opening the alsa through port in PD.
This way you leave detection of the midi input to samplerbox and get  a CC of that in PD.
Please feedback whether we're on same page here, so I can start thinking of making the SB part.
Hans


Messages In This Thread
RE: SamplerBox and Pure Data: Theory and Practice - by hansehv - 31-12-21, 00:30