[Stk] NoteOff() not working with groups?

Gary Scavone gary at ccrma.Stanford.EDU
Sun Aug 23 17:54:12 PDT 2015


Do they have the same note number.  A quick check of the code (which is very simple to read) shows that both the group and the note number need to match for the note off to happen.

—gary

> On Aug 22, 2015, at 6:58 PM, Patrick J. Collins <patrick at collinatorstudios.com> wrote:
> 
> Hi everyone again,
> 
> Sorry-- I'm having more problems...
> 
> So, if I do:
> 
>    fmInstrument.stkVoicerID = voicer->noteOn(midi, velocity, patchGroup);
> 
> and then later do:
> 
>    voicer->noteOff(fmInstrument, velocity, patchGroup);
> 
> The note does not stop sounding... Even though they have the same group.
> 
> But if I do:
> 
>    voicer->noteOff(fmInstrument, velocity);
> 
> Then the note does stop.
> 
> Patrick J. Collins
> http://collinatorstudios.com
> 
> _______________________________________________
> Stk mailing list
> Stk at ccrma.stanford.edu
> https://cm-mail.stanford.edu/mailman/listinfo/stk




More information about the Stk mailing list