static void Main(string[] args) { SiftOsc app = new SiftOsc(); OscClient client = new OscClient(IPAddress.Loopback, 7001); app.setClient(client); app.siftOscCubes = new Dictionary<int, SiftOscCube>(); app.siftOscCallbacks = new Dictionary<SiftOscCube, String>(); StreamReader input = new StreamReader("config.yml"); StringReader content = new StringReader(input.ReadToEnd()); var yaml = new YamlStream(); yaml.Load(content); YamlMappingNode mapping = (YamlMappingNode)yaml.Documents[0].RootNode; foreach (var cubeID in mapping.Children) { String cubeIDName = (((YamlScalarNode)cubeID.Key).Value); SiftOscCube cube = new SiftOscCube(null, client, null); app.addCube(Int32.Parse(cubeIDName), cube); cube.generateFromYaml((YamlMappingNode)cubeID.Value); } app.Run(); }