public HarmoniaGroup(string groupId, HarmoniaGroup parentGroup = null, int maxPolyphony = -1) { id = groupId; parent = parentGroup; harmonia_create_group(groupId, (parentGroup != null) ? parentGroup.id : "", maxPolyphony); }
public void SetDucker(HarmoniaGroup triggerGroup, float ratio, float attackTimeByMS = 0, float releaseTimeByMS = 0) { harmonia_set_ducker(triggerGroup.id, id, ratio, attackTimeByMS, releaseTimeByMS); }
public static HarmoniaGroup CreateGroup(string groupId, HarmoniaGroup parentGroup = null, int maxPolyphony = -1) { HarmoniaGroup group = new HarmoniaGroup(groupId, parentGroup, maxPolyphony); return(group); }
public static HarmoniaSoundChannel Play(string registeredId, string soundId = "", HarmoniaGroup targetGruop = null) { Debug.Log("harmonia_sound_play"); harmonia_sound_play(registeredId, soundId, (targetGruop != null) ? targetGruop.id : ""); return(new HarmoniaSoundChannel(soundId)); }