[Stk] How can you have a large amount of polyphony with STK?

Patrick J. Collins patrick at collinatorstudios.com
Fri Aug 21 22:52:50 PDT 2015


It appears to me that everytime an instrument (FM) is instantiated, it
is reading the sinewave waveform from disk, and if I want to have a
large amount of polyphony:

  Voicer *voicer = new voicer();
  int group = 0;
  for (int i = 0; i < 64; i++) {
    Rhodey *instrument = new Rhodey();
    voicer->addInstrument(instrument, group);
  }

...

My application crashes when doing fopen that many times...  Is there a
different way to get polyphony than this?  Is there an easy way to share
the same sinewave with multiple instances of an FM instrument?

Patrick J. Collins
http://collinatorstudios.com



More information about the Stk mailing list