In a sampler/synth, is it possible to have each midi note play two audio files and determine the volume of each of those audio files? For example, user hits MIDI note C and the sampler would play audiofile1 at 40% and audiofile2 at 60%.
Two Synth objects into a mixer object… or create your own copy of the Synth class and add a second file, but you will still need to mix them. btw, there is bug in the code you posted. you are reusing sound1 for audiofile2