From 2a47da60b91a1399fc57072619f7b47f4a466985 Mon Sep 17 00:00:00 2001 From: Nils <> Date: Sat, 11 Apr 2020 18:37:35 +0200 Subject: [PATCH] more logging --- template/engine/pitch.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/template/engine/pitch.py b/template/engine/pitch.py index 4c154af..01d37bc 100644 --- a/template/engine/pitch.py +++ b/template/engine/pitch.py @@ -330,10 +330,10 @@ pillarOfFifth = [ def midiPitchLimiter(pitch, transpose): if pitch + transpose < 0: - logging.warning(f"Tranpose lead to a note below midi value 0: {pitch}. Limiting to 0. Please fix manually") + logger.warning(f"Tranpose lead to a note below midi value 0: {pitch}. Limiting to 0. Please fix manually") return 0 elif pitch + transpose > 127: - logging.warning(f"Tranpose lead to a note above midi value 127: {pitch}. Limiting to 127. Please fix manually") + logger.warning(f"Tranpose lead to a note above midi value 127: {pitch}. Limiting to 127. Please fix manually") return 127 else: return pitch + transpose @@ -341,10 +341,10 @@ def midiPitchLimiter(pitch, transpose): def midiChannelLimiter(value): """makes sure that a midi channel is in range 0-15""" if value > 15: - logging.warning("Midi Channel bigger 15 detected: {}. Limiting to 15. Please fix manually".format(value)) + logger.warning("Midi Channel bigger 15 detected: {}. Limiting to 15. Please fix manually".format(value)) return 15 elif value <0: - logging.warning("Midi Channel smaller 0 detected: {}. Limiting to 0. Please fix manually".format(value)) + logger.warning("Midi Channel smaller 0 detected: {}. Limiting to 0. Please fix manually".format(value)) return 0 else: return value