I notice that your kiai is consistently being toggled on and off within every note. There really is no point in this as it's unlikely the player would notice the effect of kiai if it's consitantly turning on or off. It is best to just either leave it on consistently or off consistently and not have it toggled between every note