diff --git a/smnp/module/__init__.py b/smnp/module/__init__.py index 30ff0d5..59666c5 100644 --- a/smnp/module/__init__.py +++ b/smnp/module/__init__.py @@ -1,4 +1,4 @@ -from smnp.module import system, mic, note, iterable, sound, synth +from smnp.module import system, mic, note, iterable, sound, synth, string -functions = [ *system.functions, *mic.functions, *note.functions, *iterable.functions, *sound.functions, *synth.functions ] -methods = [ *system.methods, *mic.methods, *note.methods, *iterable.methods, *sound.methods, *synth.methods ] \ No newline at end of file +functions = [ *system.functions, *mic.functions, *note.functions, *iterable.functions, *sound.functions, *synth.functions, *string.functions ] +methods = [ *system.methods, *mic.methods, *note.methods, *iterable.methods, *sound.methods, *synth.methods, *string.functions ] \ No newline at end of file diff --git a/smnp/module/string/__init__.py b/smnp/module/string/__init__.py new file mode 100644 index 0000000..922c606 --- /dev/null +++ b/smnp/module/string/__init__.py @@ -0,0 +1,4 @@ +from smnp.module.string.function import concat + +functions = [ concat.function ] +methods = [] \ No newline at end of file diff --git a/smnp/module/string/function/__init__.py b/smnp/module/string/function/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/smnp/library/function/concat.py b/smnp/module/string/function/concat.py similarity index 100% rename from smnp/library/function/concat.py rename to smnp/module/string/function/concat.py diff --git a/smnp/type/model.py b/smnp/type/model.py index 91d4e1b..a161ef2 100644 --- a/smnp/type/model.py +++ b/smnp/type/model.py @@ -14,7 +14,7 @@ class Type(Enum): PERCENT = (float, lambda x: f"{int(x * 100)}%") NOTE = (Note, lambda x: x.note.name) SOUND = (Sound, lambda x: x.file) - TYPE = (None, lambda x: str(x.type.name.lower())) + TYPE = (None, lambda x: x.name.lower()) VOID = (type(None), lambda x: _failStringify(Type.VOID)) def stringify(self, element):