示例#1
0
        public HarmoniaGroup(string groupId, HarmoniaGroup parentGroup = null, int maxPolyphony = -1)
        {
            id     = groupId;
            parent = parentGroup;

            harmonia_create_group(groupId, (parentGroup != null) ? parentGroup.id : "", maxPolyphony);
        }
示例#2
0
 public void SetDucker(HarmoniaGroup triggerGroup, float ratio, float attackTimeByMS = 0, float releaseTimeByMS = 0)
 {
     harmonia_set_ducker(triggerGroup.id, id, ratio, attackTimeByMS, releaseTimeByMS);
 }
示例#3
0
        public static HarmoniaGroup CreateGroup(string groupId, HarmoniaGroup parentGroup = null, int maxPolyphony = -1)
        {
            HarmoniaGroup group = new HarmoniaGroup(groupId, parentGroup, maxPolyphony);

            return(group);
        }
示例#4
0
        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));
        }