Skip to content

Commit

Permalink
Merge branch 'master' of github.com:vocalab/vsq
Browse files Browse the repository at this point in the history
  • Loading branch information
AmatsukiKu committed Feb 22, 2012
2 parents 230565b + 9345306 commit aa97042
Show file tree
Hide file tree
Showing 6 changed files with 108 additions and 38 deletions.
52 changes: 32 additions & 20 deletions index.html
Original file line number Original file line Diff line number Diff line change
@@ -1,22 +1,34 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="ja"> <html lang="ja">
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title></title> <title>Vocalab_Converter</title>
<link type="text/css" rel="stylesheet" href="/stylesheets/index.css" /> <link type="text/css" rel="stylesheet" href="/stylesheets/index.css" />
<meta name="keywords" content=""> <meta name="keywords" content="vocaloid vocalab 筑波大学 実験" />
<meta name="description" content=""> <meta name="description" content="" />
<!--[if lt IE8]> <!--[if lt IE8]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]--> <![endif]-->
</head> </head>
<body><center> <body>
<img src="images/chrysant.jpg"> <div id="wrapper">
<p>{{ image }}</p> <div id="header">
<p>{{ greeting }}</p> <h1>vocalab vsq file converter</h1>
<form action="/parse" enctype="multipart/form-data" method="post"> </div>
<input type="file" name="file" /> <div id="content">
<input type="submit" value="解析"> <div id="content_image">
</form> <img src="images/chrysant.jpg" />
</div></body> </div>
</html> <div id="content_form">
<form action="/parse" enctype="multipart/form-data" method="post">
<input type="file" name="file" />
<input type="submit" value="解析">
</form>
</div>
<div id="content_explain">
<p>{{ greeting }}</p>
</div>
</div>
</div>
</body>
</html>
8 changes: 8 additions & 0 deletions javascripts/jquery.parse.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ $(document).ready(function(){
text: "dynamics curve" text: "dynamics curve"
}, },
yAxis: { yAxis: {
title: {
text: 'dynamics'
},
max: 128, max: 128,
min: 0 min: 0
}, },
Expand Down Expand Up @@ -47,6 +50,7 @@ $(document).ready(function(){
} }
}, },
series:[{ series:[{
name: 'dynamics',
data: [] data: []
}] }]
}); });
Expand All @@ -61,6 +65,9 @@ $(document).ready(function(){
text: "pitch curve" text: "pitch curve"
}, },
yAxis: { yAxis: {
title: {
text: 'pitch'
},
max: 30000, max: 30000,
min: -30000 min: -30000
}, },
Expand Down Expand Up @@ -94,6 +101,7 @@ $(document).ready(function(){
} }
}, },
series: { series: {
name: 'pitch',
step: true step: true
} }
}, },
Expand Down
4 changes: 2 additions & 2 deletions main.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
class MainPage(webapp.RequestHandler): class MainPage(webapp.RequestHandler):
def get(self): def get(self):
template_values = { template_values = {
'greeting': 'VSQファイルを解析し、加工するプログラムです', 'greeting': 'VSQファイルを解析し、加工するプログラムです<br>画像はwin内のデータを使っているので、完成次第差し替えてください。',
'image':'上記画像はテストで表示しています。'
} }


path = os.path.join(os.path.dirname(__file__), 'index.html') path = os.path.join(os.path.dirname(__file__), 'index.html')
Expand Down
6 changes: 3 additions & 3 deletions normaltrack.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -123,9 +123,9 @@ def get_event(self):
'Length': str(self.length), 'Length': str(self.length),
'Note#': str(self.note) 'Note#': str(self.note)
} }
for key, value in self.options.items(): for key, value in self.prop.items():
self.options[key] = str(value) self.prop[key] = str(value)
event.update(self.options) event.update(self.prop)
if self.vibrato: if self.vibrato:
vd = int((1 - int(self.vibrato['Length']) / 100.0) * vd = int((1 - int(self.vibrato['Length']) / 100.0) *
self.length / 5) * 5 self.length / 5) * 5
Expand Down
51 changes: 38 additions & 13 deletions stylesheets/index.css
Original file line number Original file line Diff line number Diff line change
@@ -1,17 +1,42 @@
body { @charset "utf-8";
font-family: Verdana, Helvetica, sans-serif; @import "reset.css";
margin: 0; html{
padding: 0; height:100%;
font-size: 100%; }
background: #ccc; body{
height: 600px;
font-family: Verdana, Helvetica, sans-serif;
background: url("../images/chrysant.jpg");
background-repeat:no-repeat;
background-position:100% 100%;
background-attachment: fixed;
background-color:white;
} }
#wrapper{ #wrapper{
width: 800px; height:100%;
margin: 0 auto;
background: #fff;
} }
div#header { div#header {
background: #ccc; background: black;
width: 100%; margin:0 0 20px 0;
height: 100px; }
}
#content {
font-size:small;
text-align:center;
width:100%;
height:100%;
}
#content_image{
margin-left: auto;
margin-right: auto;
margin:0 0 20px 0;
}
#content_form{
}
#content_explanation{
}
h1{
margin:auto;
font-size:20px;
color:white;
}
25 changes: 25 additions & 0 deletions stylesheets/reset.css
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,25 @@
html, body, div, span, applet, object, iframe, h1, h2, h3,
h4, h5, h6, p, blockquote, pre, a, abbr, acronym,
address, big, cite, code, del, dfn, em, font, img, ins,
kbd, q, s, samp, small, strike, strong, sub, sup, tt,
var, dl, dt, dd, ol, ul, li, fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td{
margin:0;
padding:0;
border:0;
outline:0;
font-weight:inherit;
font-style:inherit;
font-size:100%;
font-family:inherit;
vertical-align:baseline;
}
:focus{outline:0;}
a, a:link, a:visited, a:hover, a:active{text-decoration:none}
table{border-collapse:separate; border-spacing:0;}
th, td {text-align:left; font-weight:normal;}
img, iframe {border:none; text-decoration:none;}
ol, ul{list-style:none;}
input, textarea, select, button {font-size:100%; font-family:inherit;}
select{margin:inherit;}
hr{margin:0; padding:0; border:0; color:#000; background-color:#000; height:1px}

0 comments on commit aa97042

Please sign in to comment.