compoze
Version:
music writer
130 lines (111 loc) • 3.35 kB
text/jade
doctype
html(lang="zh-CN")
head
meta(charset="utf-8")
title composer
meta(name="viewport",content="width=device-width, initial-scale=1")
link(rel="stylesheet",href="demo/style/base.css")
link(rel="stylesheet",href="demo/style/font.css")
style.
a{
text-decoration:none;
color:
font-size:18px;
}
div
font-family: Arial, sans-serif;
font-size: 18px;
color:
white-space: pre;
}
div
outline: none;
background:
border: 0 solid;
border-left: 6px solid
font-family: "Lucida Console", Monaco, monospace;
font-size: 12px;
}
div
font-family: "Lucida Console", Monaco, monospace;
font-size: 12px;
color: red;
padding: 3px;
}
div
font-family: Arial, sans-serif;
font-size: 18px;
padding: 10px;
color:
}
body
div
div
br
center
img(src="demo/resource/compoze.png",width="200px")
br
h1(style="color:#999") write music easier
br
center
span(style="text-align:center;margin:50px;")
a(href="demo/html/player.html")
span.icon 
|
|播放模式
span(style="text-align:center;margin:50px;")
a(href="demo/html/editor.html")
span.icon &
|
|编辑模式
span(style="text-align:center;margin:50px;")
a(href="demo/html/helper.html")
span.icon &
|
|语法介绍
div(style="position:relative;width:460px; margin:0 auto")
div
options player=true tempo=90 width=480
tabstave notation=true tablature=true
notes :8 (8/1+0/5) (12/2+12/3) 8/1 (12/2+12/3) 8/1 |
notes :8 (3/1+0/2+3/6) 0/4 0/3 0/4 (0/2+0/3)
tabstave notation=true tablature=true
notes :8 (5/1+8/5) 8/2 5/1 8/2 5/1 |
notes :8 (0/1+3/5) 2/4 1/2 0/1 1/2
div
div
div
div
div
script.
var loading = document.getElementById('loading');
loading.style.display = 'block'
script(src="../../dist/compoze.js")
script(src="lib/MIDI/MIDI.min.js")
script(src="lib/inc/Base64.js")
script(src="lib/inc/base64binary.js")
script.
instances = new Vex.Flow.TabDiv(document.getElementById('player'),
{
instrument: 'acoustic_guitar_steel',
soundfont_url: "http://yuepuso.qiniudn.com/"
}
);
document.getElementById('player').style.display = 'block'
$('#start').on('click',function(){
instances.player.play()
$('#stop').show()
$('#start').hide()
})
$('#stop').on('click',function(){
instances.player.stop()
$('#start').show()
$('#stop').hide()
})
instances.player.onEnd = function(){
$('#start').show()
$('#stop').hide()
}
//- $('#start').click()
loading.style.display = 'none'