Move 'sound' module
This commit is contained in:
12
smnp/module/sound/function/sound.py
Normal file
12
smnp/module/sound/function/sound.py
Normal file
@@ -0,0 +1,12 @@
|
||||
from smnp.audio.sound import Sound
|
||||
from smnp.library.model import Function
|
||||
from smnp.library.signature import signature, ofType
|
||||
from smnp.type.model import Type
|
||||
|
||||
|
||||
_signature = signature(ofType(Type.STRING))
|
||||
def _function(env, file):
|
||||
return Type.sound(Sound(file.value))
|
||||
|
||||
|
||||
function = Function(_signature, _function, 'Sound')
|
||||
Reference in New Issue
Block a user