1
0
Fork 0

FM must have a specified level

This commit is contained in:
Kevin Matz 2018-10-28 16:59:21 -04:00
parent db0f481769
commit b807860ab4
1 changed files with 6 additions and 2 deletions

View File

@ -171,9 +171,13 @@ class OscCommentMacroListener(CommentMacroListener):
def exitMasterFade(self, ctx: CommentMacroParser.MasterFadeContext):
if ctx.target()is None:
logger.error("ERROR: limited to fading current master only.")
logger.error("ERROR: limited to fading specified masters only.")
return
try:
level = ctx.number().value
except AttributeError:
logger.error("ERROR: level arument is required!")
return
level = ctx.number().value
if (level < 0 or level > 100):
logger.error("Level must be between 0 and 100.")
return