From 07f08b05571a0c3f759d29328da55e4b107d2a91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20Pluta?= Date: Mon, 29 Jul 2019 17:59:38 +0200 Subject: [PATCH] Add support for integers in passing overtones to synth --- smnp/module/synth/function/synth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smnp/module/synth/function/synth.py b/smnp/module/synth/function/synth.py index 9a0b69d..482faf7 100644 --- a/smnp/module/synth/function/synth.py +++ b/smnp/module/synth/function/synth.py @@ -29,7 +29,7 @@ def getOvertones(config): if key in config.value: overtones = config.value[key] rawOvertones = [overtone.value for overtone in overtones.value] - if overtones.type != Type.LIST or not all(overtone.type == Type.FLOAT for overtone in overtones.value): + if overtones.type != Type.LIST or not all(overtone.type in [Type.FLOAT, Type.INTEGER] for overtone in overtones.value): raise RuntimeException("The 'overtones' property must be list of floats", None) if len(rawOvertones) < 1: