Synthesizer doesn't allow overlapping note ranges for Sounds?


#1

If I do something like this, only the other sound plays :

BigInteger allNotes;
allNotes.setRange(0, 128, true);
XenSamplerSound* xsound = new XenSamplerSound(“foo1”, sfile1, allNotes, 60, 0.05, 0.2, &m_mutex);
m_synth.addSound(xsound);
xsound = new XenSamplerSound(“foo2”, sfile2, allNotes, 60, 0.05, 0.2, &m_mutex);
m_synth.addSound(xsound);

Is that how Synthesizer has been designed to work? :frowning: It would be very useful for sampler type synths to allow multiple sounds to be triggered from the same note, for sound layering purposes.


#2

Yes, I’m afraid that’s a limitation of the Synthesizer class.


#3

Ah, that certainly is a pity. I have to look in the code to see if it’s possible to remove that limitation, then.


#4

It would be great for any synth really, if you do expand the functionality, please share it!


#5

Check out noteOn() and selectSound()… if memory serves that should do it.

Rail