Move 'synth' module
This commit is contained in:
13
smnp/module/synth/function/pause.py
Normal file
13
smnp/module/synth/function/pause.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from smnp.library.model import Function
|
||||
from smnp.library.signature import signature, ofTypes
|
||||
from smnp.module.synth.lib import player
|
||||
from smnp.type.model import Type
|
||||
|
||||
|
||||
_signature = signature(ofTypes(Type.INTEGER))
|
||||
def _function(env, value):
|
||||
bpm = env.findVariable('bpm')
|
||||
player.pause(value.value, bpm.value)
|
||||
|
||||
|
||||
function = Function(_signature, _function, 'pause')
|
||||
Reference in New Issue
Block a user