[Stk] problems implementing polyphony...

Gary Scavone gary at ccrma.Stanford.EDU
Fri Sep 14 06:16:14 PDT 2012


Interesting.  HevyMetl is an FM class, which should not burden the CPU in any way.  There must be something happening in the FM class that doesn't work well in iOS … perhaps the use of the c++ vector class to hold the ADSR and FileLoop pointers?

I don't have the ability yet to test this on an actual iPad (only the simulator), so if someone knows what the problem is, please let me know so that I can try to find a fix.

Regards,

--gary

On 2012-09-14, at 9:01 AM, Rumi Humphrey <rumi at refresh.vu> wrote:

> Hi,
> 
> In my projects I am using Voicer successfully on iOS for polyphony, my guess is that you are using an instrument that is too cpu intensive or maybe on that is too floating point heavy or something, i'm not exactly sure what it is that kills the device but I just tested that HeavyMtl instrument and it perform poorly with Voicer and crashed, i could barely run it with only on voice actually. A lot of these classes were not designed for mobile per say and there are several Instrument classes that I haven't been able to use because of performance issues. On the other hand there are several that work quite well.
> 
> Try Voicer with a simple synth like Simple or Plucked and I think you'll see that it works great.
> 
> If you happen to figure out what it is in HeavyMtl that causes the crash please share it, maybe it's the loading of the 4 wavs although I think Mandolin works with Voicer on IOS and has even more WAVs loaded, don't quote me on that though it's been a while since I tested all the Instrument classes on iOS to see which ones were performant enough to use as is...
> 
> Good luck,
> Rumi
> 
> 
> 
> On Sep 14, 2012, at 3:23 AM, Patrick J. Collins wrote:
> 
>> Well, I've been at it for many hours, and am beyond frustrated-- just
>> getting no where...
>> 
>> I've stepped through the entire process of playing a 2nd note, and it
>> really makes no sense..  It seems like I can step through the code fine,
>> it eventually returns back to my game code, but-- if I just attempt to
>> play two tones at once, both my iPad and XCode completely freeze up, and
>> I have to reboot my iPad, and force quit xcode.  If I call
>> voicer->silence() prior to noteOn, everything is fine.. It's just as
>> soon as I try to play two notes simultanouesly, everything dies.
> 




More information about the Stk mailing list