Ah, great thanks for clarifying. Yes, what you described is actually quite a bit simpler. To get started on this I would suggest getting the simplest case up and running and then build from there.
If you look at the sample playback example you will see how to read in a .wav file and play it back. https://learn.bela.io/tutorials/pure-data/audio/working-with-samples/
Then you need to read the midi messages from your keyboard as shown in this lesson: https://learn.bela.io/tutorials/pure-data/communication/midi-send-and-receive/
Then all you need to do is map the values you get from the midi controller (0-128) to a range which you can use to control the amplitude of the sample playback (0-1.0). You can then just multiply the audio signal from the sampler with the mapped value from the MIDI controller. You would use the [*~]
object to do this.
Once you get this up and running, making it multi track will be easy, just a question of duplicating code and adding in more tracks to playback.