Add README.md
BIN
img/notes/cd4fga8c.png
Normal file
|
After Width: | Height: | Size: 10 KiB |
BIN
img/notes/cdef.png
Normal file
|
After Width: | Height: | Size: 7.9 KiB |
BIN
img/notes/poly1.png
Normal file
|
After Width: | Height: | Size: 6.2 KiB |
BIN
img/notes/poly2.png
Normal file
|
After Width: | Height: | Size: 7.2 KiB |
BIN
img/notes/starwars.png
Normal file
|
After Width: | Height: | Size: 13 KiB |
BIN
img/notes/twinkle1.png
Normal file
|
After Width: | Height: | Size: 9.0 KiB |
BIN
img/notes/twinkle2.png
Normal file
|
After Width: | Height: | Size: 9.0 KiB |
BIN
img/notes/twinkle3.png
Normal file
|
After Width: | Height: | Size: 11 KiB |
BIN
img/plots/a_127.png
Normal file
|
After Width: | Height: | Size: 24 KiB |
BIN
img/plots/a_1overtone.png
Normal file
|
After Width: | Height: | Size: 41 KiB |
BIN
img/plots/a_1overtone_fft.png
Normal file
|
After Width: | Height: | Size: 15 KiB |
BIN
img/plots/a_2overtones.png
Normal file
|
After Width: | Height: | Size: 44 KiB |
BIN
img/plots/a_2overtones_fft.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
BIN
img/plots/a_3overtones.png
Normal file
|
After Width: | Height: | Size: 40 KiB |
BIN
img/plots/a_3overtones_fft.png
Normal file
|
After Width: | Height: | Size: 20 KiB |
BIN
img/plots/a_440.png
Normal file
|
After Width: | Height: | Size: 33 KiB |
BIN
img/plots/attack0.png
Normal file
|
After Width: | Height: | Size: 111 KiB |
BIN
img/plots/attack1.png
Normal file
|
After Width: | Height: | Size: 83 KiB |
BIN
img/plots/attack10.png
Normal file
|
After Width: | Height: | Size: 108 KiB |
BIN
img/plots/attack100.png
Normal file
|
After Width: | Height: | Size: 111 KiB |
BIN
img/plots/attack5.png
Normal file
|
After Width: | Height: | Size: 103 KiB |
BIN
img/plots/decay0.png
Normal file
|
After Width: | Height: | Size: 111 KiB |
BIN
img/plots/decay05.png
Normal file
|
After Width: | Height: | Size: 99 KiB |
BIN
img/plots/decay1.png
Normal file
|
After Width: | Height: | Size: 90 KiB |
BIN
img/plots/decay10.png
Normal file
|
After Width: | Height: | Size: 38 KiB |
BIN
img/plots/decay5.png
Normal file
|
After Width: | Height: | Size: 54 KiB |
BIN
img/plots/default.png
Normal file
|
After Width: | Height: | Size: 38 KiB |
BIN
img/plots/example_config.png
Normal file
|
After Width: | Height: | Size: 57 KiB |
BIN
img/schemas/wait_fsm.png
Normal file
|
After Width: | Height: | Size: 26 KiB |
@@ -51,7 +51,7 @@ class ReturnEvaluator(Evaluator):
|
||||
# Disclaimer
|
||||
# Exception system usage to control program execution flow is really bad idea.
|
||||
# However because of lack of 'goto' instruction equivalent in Python
|
||||
# there is to need to use some mechanism to break function execution on 'return' statement
|
||||
# there is a need to use some mechanism to break function execution on 'return' statement
|
||||
# and immediately go to Environment's method 'invokeFunction()' or 'invokeMethod()',
|
||||
# which can handle value that came with exception and return it to code being executed.
|
||||
else:
|
||||
|
||||
@@ -18,4 +18,4 @@ class PowerEvaluator(Evaluator):
|
||||
if not right.type in supportedTypes:
|
||||
raise RuntimeException(f"Operator '{node.operator.value}' is supported only by {[t.name.lower() for t in supportedTypes]} type", node.right.pos)
|
||||
|
||||
return Type.integer(int(left.value ** right.value))
|
||||
return Type.float(float(left.value ** right.value))
|
||||