Reformat evaluator #1
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
from smnp.environment.environment import Environment
|
||||
from smnp.library.function import display, sleep, semitones, interval, combine, flat, wait, rand, tuplet, synth, pause, \
|
||||
transpose, type, exit, duration, octave
|
||||
transpose, type, exit, duration, octave, debug
|
||||
from smnp.type.model import Type
|
||||
from smnp.type.value import Value
|
||||
|
||||
|
||||
def createEnvironment():
|
||||
@@ -18,7 +20,8 @@ def createEnvironment():
|
||||
tuplet.function,
|
||||
synth.function,
|
||||
pause.function,
|
||||
transpose.function
|
||||
transpose.function,
|
||||
debug.function
|
||||
]
|
||||
|
||||
methods = [
|
||||
@@ -27,7 +30,7 @@ def createEnvironment():
|
||||
]
|
||||
|
||||
variables = {
|
||||
"bpm": 120
|
||||
"bpm": Value(Type.INTEGER, 120)
|
||||
}
|
||||
|
||||
return Environment([ variables ], functions, methods)
|
||||
|
||||
Reference in New Issue
Block a user