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

[sc-users] Trying to make a Dictionary with Iteration loop



Hi all,

I am not sure what is the most elegant way to populate a dictionary using an OSC function that iterates some messages coming as an OSC bundle. So say I have this OSC message coming in SC:

['/rates', temp, hum, fahr, 24, 36, 70] //OSC message from Processing.

~sensors = (); //My dict init.

//an OSC to receive and add into the dictionary
OSCdef(\rcvAddDict, {arg msg;
    //msg.postln;
    //some function to add key value pairs in the dict
    }, '/rates');


Thanks