[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[sc-users] A clever way to mix three IdentityDictionarys?
- To: sc-users@xxxxxxxxxxxxxxxx
- Subject: [sc-users] A clever way to mix three IdentityDictionarys?
- From: Eirik Blekesaune <blekesaune@xxxxxxxxx>
- Date: Wed, 4 Mar 2009 22:44:10 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :content-type:content-transfer-encoding:mime-version:subject:date :x-mailer; bh=MphwJb3w4UQ8UNXSlNnbE6Gq6iSLwdpbVrRohaGDvlo=; b=klSZdJ5b789BQKO6jWYDvFPzN83XLHVBA2xrLYXzivuTG4a7avkLcp10BZRaPars6O YjHfQIhin9qoQmTuWYdeYICqugEyrqA2rpwCJJKOcZx4kL+UfAhjDPozg2vOcxeLxQ/E CbRPeka6j3sPSWtar/Wsc4xmWTrWQW27r/yfc=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:content-type:content-transfer-encoding :mime-version:subject:date:x-mailer; b=Ti2pZ+wyhfZVyKZc//VgffEfm/ipkBXZEt7POlGurWDsffeooDXF3KLXfiodB4pJHw D9lt8apnJWLWRtUUKjfPQh7TA/gwNh/Cm0BjEDvMcXYQLkkAbugL1OMa4+dinImEAUU8 PH7MVFXaaO4iq6ZLXqGt+Y6a0eqIOebvIyqYw=
- List-id: SuperCollider users mailing list <sc-users.create.ucsb.edu>
- Reply-to: sc-users@xxxxxxxxxxxxxxxx
- Sender: owner-sc-users@xxxxxxxxxxxxxxxx
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/