42 lines
943 B
Python
42 lines
943 B
Python
from smnp.environment.environment import Environment
|
|
from smnp.module import functions, methods
|
|
from smnp.type.model import Type
|
|
|
|
|
|
def createEnvironment():
|
|
# functions = [
|
|
# display.function,
|
|
# type.function,
|
|
# exit.function,
|
|
# sleep.function,
|
|
# semitones.function,
|
|
# interval.function,
|
|
# combine.function,
|
|
# flat.function,
|
|
# #wait.function,
|
|
# rand.function,
|
|
# tuplet.function,
|
|
# synth.function,
|
|
# pause.function,
|
|
# transpose.function,
|
|
# sound.function,
|
|
# map.function,
|
|
# concat.function,
|
|
# range.function,
|
|
# debug.function
|
|
# ]
|
|
#
|
|
# methods = [
|
|
# duration.function,
|
|
# octave.function,
|
|
# play.function,
|
|
# get.function
|
|
# ]
|
|
|
|
variables = {
|
|
"bpm": Type.integer(120)
|
|
}
|
|
|
|
return Environment([ variables ], functions, methods)
|
|
|