-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsynth.py
executable file
·35 lines (28 loc) · 1.01 KB
/
synth.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
from flask import Flask
from flask import render_template
from flask_assets import Environment, Bundle
app = Flask(__name__)
assets = Environment(app)
js = Bundle(
#Libraries used
Bundle('lib/p5.dom.js', 'lib/maxiLib.js', 'lib/maxiExtras.js',),
#My code
Bundle('js/sketch.js', 'js/keyboard.js', 'js/note.js', 'js/buttons.js',
'js/controls.js', 'js/noisegen.js', 'js/oscilloscope.js', 'js/elektron.js',
'js/neutron.js', 'js/sh101.js', 'js/highpass.js', 'js/circledial.js', 'js/sines.js',
'js/squares.js', 'js/saws.js', 'js/triangles.js', 'js/onepoles.js', 'js/sequencer.js'),
filters='jsmin',
output='gen/packed.js')
assets.register('js_all', js)
#assets.register('js_all', 'lib/p5.min.js', js)
@app.route('/home')
def home():
return 'Home page'
@app.route('/')
def instructions():
return render_template('manual.html')
@app.route('/play')
def playing():
return render_template('index.html')
if __name__ == '__main__':
app.run(debug=False,host='0.0.0.0',port=8000)