[Stk] How can you have a large amount of polyphony with STK?
Robert Thompson
rdt at activecommunity.com
Sat Aug 22 06:32:43 PDT 2015
Has anyone tested Stk on OpenWrt Linux?
> On Aug 22, 2015, at 8:08 AM, Gary Scavone <gary at ccrma.Stanford.EDU> wrote:
>
> If it was just a sinewave, then the SineWave class is the answer (it creates a static sine table). But in the case of the FM instruments, the table is often not sinusoidal. So, I don’t have a quick fix for that.
>
> I don’t see why loading very small tables should cause a crash. It is likely some other, potentially related, issue or bug.
>
> —gary
>
>> On Aug 22, 2015, at 1:52 AM, Patrick J. Collins <patrick at collinatorstudios.com> wrote:
>>
>> 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
>>
>> _______________________________________________
>> Stk mailing list
>> Stk at ccrma.stanford.edu
>> https://cm-mail.stanford.edu/mailman/listinfo/stk
>
>
> _______________________________________________
> Stk mailing list
> Stk at ccrma.stanford.edu
> https://cm-mail.stanford.edu/mailman/listinfo/stk
More information about the Stk
mailing list