[Stk] Voicer Class

Perry R Cook prc@CS.Princeton.EDU
Tue, 31 Aug 2004 10:55:48 -0400 (EDT)


I have worked on three commercial synthesis engines,
and all of them do the worst case scaling that we do
in voicer.  It would not be right to have "automatic
gain control" moving the output level up and down
based on voices sounding or not.  We assume that you
know how many voices you need, and thus you might
need them all.  Thus we normalize by that MAX.

PRC

On Tue, 31 Aug 2004, Gary Scavone wrote:

> Hi Ravi,
>
> That computation is based on a worst-case scenario where all allocated
> voices might be simultaneously producing a maximum signal level (which
> would probably almost never happen).  My first reaction to your email
> was to think that lastOutput should in fact be scaled only by the
> number of sounding voices, but I think it would be potentially weird to
> have the volume changing dynamically as voices come in and out.
>
> I don't know what the "solution" should be here. I could do no scaling
> and leave it up to the user to scale properly(?).
>
> What do others on the list think?
>
> --gary
>
> P.S. Almost done with the new release ... probably within a week.
>
> On Tuesday, August 31, 2004, at 05:57  AM, Ravi Kiran wrote:
>
> > Hi All,
> >     I have a doubt regarding the voicer tick function of the voicer
> > class. The 'lastOutput' is divided by the number of voices allocated
> > irrespective of the number of voices actually active. Let us say I
> > have a score file which plays only one note at a time. In one case I
> > use the class with only one voice and in the other with 16 voices.
> > Because of the above mentioned action of  the tick function I will
> > have two different volume levels in the output wave files generated. I
> > believe that just varying the number of voices so long as the number
> > of voices are more than (or equal to) what is required at any instant
> > the output volume levels should not change. For this I have to divide
> > 'lastOutput' by the number of voices active. Or is there any catch in
> > that which I am missing?
> >     Thanks in advance.
> >
> > Regards
> > Ravi Kiran
> >
> > _______________________________________________
> > Stk mailing list
> > Stk@ccrma.stanford.edu
> > http://ccrma-mail.stanford.edu/mailman/listinfo/stk
>
> _______________________________________________
> Stk mailing list
> Stk@ccrma.stanford.edu
> http://ccrma-mail.stanford.edu/mailman/listinfo/stk
>