On Thursday 30 April 2015 13:12:12 Raphaël Mouneyres wrote:
> So this could still be tested with a uncontrollable but fixed wait time
> (audio period). I'll let you know how it goes when I put my hand in the
> code.

One thing I haven't decided yet is the precise function prototype of the 
functions that can alter the synthesis parameters directly. For example to 
change the current volume of an active note, Kontakt has this KSP function:

        change_vol(note-id, volume, relative)

- "note-id" is the event ID of the precise note (voice) you want to change its 
   volume of.
- "volume" is the new volume value of the note (voice) in millidecibel
- "relative" is special thing: if you pass 0, then the note's volume will be 
   simply overwritten, if you pass 1 then your new volume will be applied 
  "relative" to the notes's current volume value.

Now that last mentioned parameter probably outlines, that their function 
prototype is a bit suboptimal. Because first of all, what is "relative"? Does 
it "add" *or* "multply" the new volume value against the current value? Then 
the next thing is, this "relative" behavior is just meant to be applied to the 
value that *you* might have set before with a previous call of change_vol(). 
This "relative" option has *no* impact on other volume modifiers, like volume 
LFOs, volume envelopes, etc. So what do we want to do with the current volume 
changed by those mentioned other sources (LFO,EG,...)?

        - Should this function simply override them completely and thus 
          effectively disable those other volume control sources?
        - Should it rather add its value to the volume levels of the other 
          sources instead?
        - Should it rather multiply its value against the volume levels of the 
          other sources instead?

Probably we rather want the script author to decide this, and then we need to 
add more options for the change_vol() function. Comments appreciated.

CU
Christian

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Linuxsampler-devel mailing list
Linuxsampler-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxsampler-devel

Reply via email to