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

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



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?

-eirik
	

_______________________________________________
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/