Add support for integers in passing overtones to synth
This commit is contained in:
@@ -29,7 +29,7 @@ def getOvertones(config):
|
|||||||
if key in config.value:
|
if key in config.value:
|
||||||
overtones = config.value[key]
|
overtones = config.value[key]
|
||||||
rawOvertones = [overtone.value for overtone in overtones.value]
|
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)
|
raise RuntimeException("The 'overtones' property must be list of floats", None)
|
||||||
|
|
||||||
if len(rawOvertones) < 1:
|
if len(rawOvertones) < 1:
|
||||||
|
|||||||
Reference in New Issue
Block a user