Add new functions: 'concat', 'range' and 'Map' constructor

This commit is contained in:
Bartłomiej Pluta
2019-07-09 20:54:56 +02:00
parent 7d14b0cbe7
commit b4d5d11b84
5 changed files with 80 additions and 1 deletions

View File

@@ -47,6 +47,7 @@ class Type(Enum):
@staticmethod
def note(value):
return Value(Type.NOTE, value, {
"pitch": Type.string(str(value.note)),
"octave": Type.integer(value.octave),
"duration": Type.integer(value.duration),
"dot": Type.string('.' if value.dot else '')