Hi SSC,
I've been exploring some tweaks to the standard ADSR prototype and I quite like the way !KeyVelocity is used to scale the AD & R rates but I'd like to add some 'amount' to the scaling, to trim it back from the full range of !KeyVelocity, and also include options for positive and negative amounts of scaling.
Currently my approach has been modifying the code in individual parameter fields but the SetRange prototype appears to provide a ready-made solution.
I'm thinking of getting fairly tricky with this; with separate scaling options for A, D, R and Scale parameters; so was wondering which approach is more computationally efficient?: scale and offset coding in each of these fields or perhaps a SoundToGlobalController with just !KeyVelocity in the Value field, with the STGC options Slient and ShowInVCS both unchecked and the STGC feeding directly into four separate SetRange prototypes which are pasted into the various parameter fields eg:
(!ADSR_Attack * SetRange L vmax: 0.0002) s.