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