[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-users] A clever way to mix three IdentityDictionarys?



On Wednesday 04 March 2009 16:44:10 Eirik Blekesaune wrote:
> Hi list,
>
> I have stored three presets stored in a structure like this:
>
> Array[
> 	IdentityDictionary[
> 		\tGrain -> IdentityDictionary[\dist -> 0.4, \amp ->0.4],
> 		\filter -> IdentityDictionary[\freq -> 400, \rq -> 7.2]
> 		\panner -> IdentityDictionary[\width -> 0.3, \freq -> 0.3]
> 	],
> 	IdentityDictionary[
> 		\tGrain -> IdentityDictionary[\dist -> 0.4, \amp ->0.4],
> 		\filter -> IdentityDictionary[\freq -> 400, \rq -> 7.2]
> 		\panner -> IdentityDictionary[\width -> 0.3, \freq -> 0.3]
> 	],
> 	IdentityDictionary[
> 		\tGrain -> IdentityDictionary[\dist -> 0.4, \amp ->0.4],
> 		\filter -> IdentityDictionary[\freq -> 400, \rq -> 7.2]
> 		\panner -> IdentityDictionary[\width -> 0.3, \freq -> 0.3]
> 	]
> ]
>
> I want to mix the values in these IdentityDictionaries. I' have an
> Array with three weights, where the sum of the three weights is
> normalized. I want to have the inverted values of these weights
> determine the mix factors for each preset.
> Can anyone help me to figure a clever way to mix these presets?

Take a look at ParameterSpace in the SenseWorld quark.
That does something similar to what you're trying to do (but mapped to a 2D 
space).

sincerely,
Marije

_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-users/
search: https://listarc.bham.ac.uk/lists/sc-users/search/