implementing OnSet Detection Biatch