Move 'mic' module
This commit is contained in:
@@ -1,38 +1,37 @@
|
|||||||
from smnp.environment.environment import Environment
|
from smnp.environment.environment import Environment
|
||||||
from smnp.library.function import display, sleep, semitones, interval, combine, flat, wait, rand, tuplet, synth, pause, \
|
from smnp.module import functions, methods
|
||||||
transpose, type, exit, duration, octave, debug, get, sound, play, map, concat, range
|
|
||||||
from smnp.type.model import Type
|
from smnp.type.model import Type
|
||||||
|
|
||||||
|
|
||||||
def createEnvironment():
|
def createEnvironment():
|
||||||
functions = [
|
# functions = [
|
||||||
display.function,
|
# display.function,
|
||||||
type.function,
|
# type.function,
|
||||||
exit.function,
|
# exit.function,
|
||||||
sleep.function,
|
# sleep.function,
|
||||||
semitones.function,
|
# semitones.function,
|
||||||
interval.function,
|
# interval.function,
|
||||||
combine.function,
|
# combine.function,
|
||||||
flat.function,
|
# flat.function,
|
||||||
wait.function,
|
# #wait.function,
|
||||||
rand.function,
|
# rand.function,
|
||||||
tuplet.function,
|
# tuplet.function,
|
||||||
synth.function,
|
# synth.function,
|
||||||
pause.function,
|
# pause.function,
|
||||||
transpose.function,
|
# transpose.function,
|
||||||
sound.function,
|
# sound.function,
|
||||||
map.function,
|
# map.function,
|
||||||
concat.function,
|
# concat.function,
|
||||||
range.function,
|
# range.function,
|
||||||
debug.function
|
# debug.function
|
||||||
]
|
# ]
|
||||||
|
#
|
||||||
methods = [
|
# methods = [
|
||||||
duration.function,
|
# duration.function,
|
||||||
octave.function,
|
# octave.function,
|
||||||
play.function,
|
# play.function,
|
||||||
get.function
|
# get.function
|
||||||
]
|
# ]
|
||||||
|
|
||||||
variables = {
|
variables = {
|
||||||
"bpm": Type.integer(120)
|
"bpm": Type.integer(120)
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ from smnp.program.interpreter import Interpreter
|
|||||||
|
|
||||||
def main():
|
def main():
|
||||||
try:
|
try:
|
||||||
|
|
||||||
Interpreter.interpretFile(sys.argv[1], printAst=True)
|
Interpreter.interpretFile(sys.argv[1], printAst=True)
|
||||||
|
|
||||||
except SmnpException as e:
|
except SmnpException as e:
|
||||||
|
|||||||
4
smnp/module/__init__.py
Normal file
4
smnp/module/__init__.py
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
import smnp.module.mic
|
||||||
|
|
||||||
|
functions = [ *mic.functions ]
|
||||||
|
methods = [ *mic.methods ]
|
||||||
4
smnp/module/mic/__init__.py
Normal file
4
smnp/module/mic/__init__.py
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
from smnp.module.mic.function import wait
|
||||||
|
|
||||||
|
functions = [ wait.function ]
|
||||||
|
methods = []
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
from smnp.library.model import CombinedFunction, Function
|
from smnp.library.model import CombinedFunction, Function
|
||||||
from smnp.library.signature import signature, ofTypes
|
from smnp.library.signature import signature, ofTypes
|
||||||
from smnp.mic.detector.noise import NoiseDetector
|
from smnp.module.mic.lib.detector.noise import NoiseDetector
|
||||||
from smnp.type.model import Type
|
from smnp.type.model import Type
|
||||||
|
|
||||||
|
|
||||||
0
smnp/module/mic/lib/detector/__init__.py
Normal file
0
smnp/module/mic/lib/detector/__init__.py
Normal file
Reference in New Issue
Block a user