Page 18: Send Local Changes to the Provider |
Since we declared properties for all the elements we'd like to access directly, we can easily make the modifications we'd like:
AsyncPump.Run( async () => { using (var client = await ConnectAsync("localhost", 9000)) using (var consumer = await Consumer<MixedSapphireRoot>.CreateAsync(client)) { foreach (var source in consumer.Root.Sapphire.Sources.Children) { source.Fader.DBValue.Value = -67.0; source.Fader.Position.Value = 128; source.Dsp.Input.LRMode.Value = LRMode.Mono; source.Dsp.Input.Phase.Value = false; } await consumer.SendAsync(); } });
The Lawo.EmberPlusSharp.Model namespace tutorial ends here.