Beispiel #1
0
 public DotSoundPlayer(DotSoundConfig dotSoundConfig)
 {
     // TODO make this variable per world
     _dotSoundConfig = dotSoundConfig;
     _dotSoundPatch  = UnityPD.OpenPatch("simpleSynth.pd");
     _dotSoundConfig.SendValues();
 }
Beispiel #2
0
 public void SwitchToPatch(string patch)
 {
     if (_dotSoundPatch >= 0)
     {
         UnityPD.ClosePatch(_dotSoundPatch);
     }
     _dotSoundPatch = UnityPD.OpenPatch(patch);
     _dotSoundConfig.SendValues();
 }