/plugin/abc2/abc-libraries/abc2svg/ |
H A D | MIDI-1.js | 33 var n,v,s,maps,o,q,n,qs,a=parm.split(/\s+/),abc=this,cfmt=abc.cfmt(),curvoice=abc.get_curvoice() 51 if(isNaN(v)||v<0||v>127){abc.syntax(1,abc.errs.bad_val,"%%MIDI chordvol") 59 if(abc.parse.state==2) 60 abc.goto_tune() 61 if(abc.get_curvoice()){s=abc.new_block("midigch") 66 if(isNaN(v)||v<=0||v>16){abc 152 set_hooks(abc) global() argument [all...] |
H A D | grid-1.js | 7 var abc=this,img,cls,cfmt=abc.cfmt(),grid=cfmt.grid 23 function build_cell(cell,x,y,yl,hr){if(cell.length>1){abc.out_svg(abc2svg.grid.pl) 24 abc.out_sxsy(x-wmx/2,' ',yl) 25 abc.out_svg('l'+ 27 if(cell[1]){abc.out_svg(abc2svg.grid.pl) 28 abc.out_sxsy(x-wmx/2,' ',yl+hr) 29 abc.out_svg('l'+ 31 abc.set_font('gs') 32 abc 206 set_hooks(abc) global() argument [all...] |
H A D | capo-1.js | 5 abc2svg.capo={gch_build:function(of,s){var t,i,gch,gch2,i2,abc=this,p_v=abc.get_curvoice(),a_gch=s.a_gch 15 gch2.text=abc.gch_tr1(gch2.text,-abc2svg.ifb40[t%12]) 18 gch2.font=abc.get_font(abc.cfmt().capofont?"capo":"annotation") 30 of(a)},set_hooks:function(abc){abc.gch_build=abc2svg.capo.gch_build.bind(abc,abc.gch_build);abc argument [all...] |
H A D | strtab-1.js | 5 abc2svg.strtab={draw_symbols:function(of,p_v){var s,m,not,stb,x,y,C=abc2svg.C,abc=this 8 m=abc.cfmt().bgcolor||"white" 9 if(abc.bgt!=m){if(!abc.bgn) 10 abc.bgn=1 12 abc.bgn++ 13 abc.bgt=m 14 abc.defs_add('\ 15 <filter x="-0.1" y="0.2" width="1.2" height=".8" id="bg'+abc.bgn+'">\n\ 19 abc 191 set_hooks(abc) global() argument [all...] |
H A D | gamelan-1.js | 7 of(p)},output_music:function(of){var C=abc2svg.C,abc=this,cur_sy=abc.get_cur_sy(),voice_tb=abc.get_voice_tb() 8 if(!abc.cfmt().gamelan){of() 90 if(s.a_dd){for(i=0;i<s.a_dd.length;i++){if(s.a_dd[i].glyph=="stc"){abc.deco_cnv(["gstc"],s) 94 of()},draw_symbols:function(of,p_voice){var i,m,nl,note,s,s2,x,y,C=abc2svg.C,abc=this,dot="\ue1e7",staff_tb=abc.get_staff_tb(),out_svg=abc.out_svg,out_sxsy=abc.out_sxsy,xypath=abc 164 set_hooks(abc) global() argument [all...] |
H A D | clair-1.js | 138 of(a)},set_width:function(of,s){if(s.k_sf&&s.p_v&&s.p_v.clair){s.wl=8;s.wr=10}else{of(s)}},set_hooks:function(abc){abc.draw_hl=abc2svg.clair.draw_hl.bind(abc,abc.draw_hl);abc.draw_keysig=abc2svg.clair.draw_keysig.bind(abc,abc.draw_keysig);abc.output_music=abc2svg.clair.output_music.bind(abc,abc argument [all...] |
H A D | jianpu-1.js | 7 of(p)},output_music:function(of){var C=abc2svg.C,abc=this,cur_sy=abc.get_cur_sy(),voice_tb=abc.get_voice_tb() 8 if(!abc.cfmt().jianpu){of() 10 function set_head(){var tsfirst=abc.get_tsfirst(),p_v=voice_tb[0],mt=p_v.meter.a_meter[0],sk=p_v.key,s={type:C.BLOCK,subtype:"text",dur:0,v:0,p_v:p_v,st:0,seqst:true,text:(sk.k_mode+1)+"="+ 20 abc.set_tsfirst(s)} 55 s.a_gch=[{type:'@',font:abc.get_font("annotation"),wh:[10,10],x:-5,y:30,text:(s.k_mode+1)+"="+ 88 if(s.a_dd){for(i=0;i<s.a_dd.length;i++){if(s.a_dd[i].glyph=="stc"){abc.deco_cnv(["gstc"],s) 93 of()},draw_symbols:function(of,p_voice){var i,m,nl,note,s,s2,x,y,C=abc2svg.C,abc=this,dot="\ue1e7",staff_tb=abc 173 set_hooks(abc) global() argument [all...] |
H A D | jazzchord-1.js | 51 of(cmd,parm)},set_hooks:function(abc){abc.gch_build=abc2svg.jazzchord.gch_build.bind(abc,abc.gch_build) argument 52 abc.set_format=abc2svg.jazzchord.set_fmt.bind(abc,abc.set_format) 53 abc.add_style("\n.jc6{letter-spacing:-0.05em}\ 58 abc.param_set_font("setfont-6","* * class=jc6") 59 abc [all...] |
H A D | ambitus-1.js | 27 of(cmd,param)},set_width:function(of,s){if(s.clef_type!=undefined&&s.nhd>0){s.wl=40;s.wr=12}else{of(s)}},set_hooks:function(abc){abc.draw_symbols=abc2svg.ambitus.draw_symbols.bind(abc,abc.draw_symbols);abc.set_pitch=abc2svg.ambitus.set_pitch.bind(abc,abc.set_pitch);abc.set_format=abc2svg.ambitus.set_fmt.bind(abc,abc argument [all...] |
H A D | grid3-1.js | 7 var abc=this,cfmt=abc.cfmt(),img=abc.get_img(),txt=s.text,font,font_cl,cls,w,ln,i,lines=[],cl=[],bars=[],cells=[],nr=0,nc=0,wc=0 75 abc.out_svg(line) 76 abc.vskip(hr*nr+6)} 78 abc.param_set_font("gridfont","serif 16") 79 font=abc.get_font('grid') 80 font_cl=abc.font_class(font) 82 abc.add_style("\n.mid {text-anchor:middle}") 83 abc 184 set_hooks(abc) global() argument [all...] |
H A D | mdnn-1.js | 8 abc2svg.mdnn={cde2fcg:new Int8Array([0,2,4,-1,1,3,5]),cgd2cde:new Int8Array([0,-4,-1,-5,-2,-6,-3,0,-4,-1,-5,-2,-6,-3,0]),acc_tb:["aff","af","n","s","ss"],glyphs:{n1:'<text id="n1" class="bn" x="-1.5" y="16">1</text>',n2:'<text id="n2" class="bn" x="-1.5" y="16">2</text>',n3:'<text id="n3" class="bn" x="-1.5" y="16">3</text>',n4:'<text id="n4" class="bn" x="-1.5" y="16">4</text>',n5:'<text id="n5" class="bn" x="-1.5" y="16">5</text>',n6:'<text id="n6" class="bn" x="-1.5" y="16">6</text>',n7:'<text id="n7" class="bn" x="-1.5" y="16">7</text>',nq:'<text id="nq" class="bn" x="8" y="16">\'</text>',nc:'<text id="nc" class="bn" x="8" y="16">,</text>',nh:'<path id="nh" class="stroke" d="m3.5 0l-7.2 0 0 -6.2 7.2 0"/>',nw:'<path id="nw" class="stroke" d="m6 -5l-7.2 0 0 -6.2 7.2 0 0 6.2"/>',aff:'<text id="aff" class="music" x="-8" y="11"></text>',af:'<text id="af" class="music" x="-8" y="11"></text>',nn:'<text id="nn" class="music" x="-8" y="11"></text>',ns:'<text id="ns" class="music" x="-8" y="11"></text>',nss:'<text id="nss" class="music" x="-8" y="11"></text>'},decos:{n1:"9 n1 0 0 0",n2:"9 n2 0 0 0",n3:"9 n3 0 0 0",n4:"9 n4 0 0 0",n5:"9 n5 0 0 0",n6:"9 n6 0 0 0",n7:"9 n7 0 0 0",q:"0 nq 0 0 0",c:"0 nc 0 0 0",h:"0 nh 0 0 0",w:"0 nw 0 0 0",aff:"0 aff 0 0 0",af:"0 af 0 0 0",n:"0 nn 0 0 0",s:"0 ns 0 0 0",ss:"0 nss 0 0 0"},output_music:function(of){var C=abc2svg.C,abc=this,cfmt=abc.cfmt(),cur_sy=abc.get_cur_sy(),voice_tb=abc.get_voice_tb(),sf=voice_tb[0].key.k_sf,delta=abc2svg.mdnn.cgd2cde[sf+7]-2 68 s.next.k_a_acc=[]},set_hooks:function(abc){abc.output_music=abc2svg.mdnn.output_music.bind(abc,abc.output_music) argument 69 abc.set_format=abc2svg.mdnn.set_fmt.bind(abc,ab [all...] |
H A D | pedline-1.js | 27 of(cmd,param)},set_hooks:function(abc){abc.draw_all_deco=abc2svg.pedline.draw_all_deco.bind(abc,abc.draw_all_deco) argument 28 abc.out_lped=abc2svg.pedline.out_lped.bind(abc,abc.out_lped) 29 abc.set_format=abc2svg.pedline.set_fmt.bind(abc,abc [all...] |
H A D | sth-1.js | 45 of(cmd,param)},set_stems:function(of){of();abc2svg.sth.set_sth.call(this)},set_hooks:function(abc){abc.calculate_beam=abc2svg.sth.calculate_beam.bind(abc,abc.calculate_beam);abc.new_note=abc2svg.sth.new_note.bind(abc,abc.new_note);abc.set_format=abc2svg.sth.set_fmt.bind(abc,abc argument [all...] |
H A D | grid2-1.js | 32 of(cmd,param)},set_hooks:function(abc){abc.draw_gchord=abc2svg.grid2.draw_gchord.bind(abc,abc.draw_gchord);abc.output_music=abc2svg.grid2.output_music.bind(abc,abc.output_music);abc.set_format=abc2svg.grid2.set_fmt.bind(abc,abc argument [all...] |
H A D | soloffs-1.js | 24 s.x=soloffs[s.type]}},set_hooks:function(abc){abc.set_sym_glue=abc2svg.soloffs.set_sym_glue.bind(abc,abc.set_sym_glue);abc.set_format=abc2svg.soloffs.set_fmt.bind(abc,abc.set_format)}} argument
|
H A D | chordnames-1.js | 22 of(cmd,parm)},set_hooks:function(abc){abc.gch_build=abc2svg.chordnames.gch_build.bind(abc,abc.gch_build) argument 23 abc.set_format=abc2svg.chordnames.set_fmt.bind(abc,abc.set_format)}}
|
H A D | equalbars-1.js | 40 break}},set_hooks:function(abc){abc.output_music=abc2svg.equalbars.output_music.bind(abc,abc.output_music);abc.set_format=abc2svg.equalbars.set_fmt.bind(abc,abc.set_format);abc.set_sym_glue=abc2svg.equalbars.set_sym_glue.bind(abc,abc argument [all...] |
H A D | break-1.js | 40 abc2svg.break.do_break.call(this)},set_hooks:function(abc){abc.do_pscom=abc2svg.break.do_pscom.bind(abc,abc.do_pscom);abc.set_bar_num=abc2svg.break.set_bar_num.bind(abc,abc.set_bar_num)}} argument
|
H A D | combine-1.js | 99 of(a)},set_hooks:function(abc){abc.do_pscom=abc2svg.combine.do_pscom.bind(abc,abc.do_pscom);abc.new_note=abc2svg.combine.new_note.bind(abc,abc.new_note);abc.set_stem_dir=abc2svg.combine.set_stem_dir.bind(abc,abc argument [all...] |
H A D | diag-1.js | 374 of(cmd,param)},set_hooks:function(abc){abc.output_music=abc2svg.diag.output_music.bind(abc,abc.output_music);abc.set_format=abc2svg.diag.set_fmt.bind(abc,abc.set_format)}} argument
|
H A D | page-1.js | 11 of()},gen_hf:function(page,ty){var a,i,j,k,x,y,y0,s,font=page.abc.get_font(ty),str=page[ty],cfmt=page.abc.cfmt(),fh=font.size*1.1,pos=['">','" text-anchor="middle">','" text-anchor="end">'] 39 t=abc2svg.get_mtime(page.abc.parse.fname) 46 case'F':r[j]+=page.abc.parse.fname 49 case'T':t=page.abc.info()[c] 70 n_font=page.abc.get_font("u"+c) 118 return fh*a[4]},open_page:function(page,ht){var h,l,abc=page.abc,cfmt=abc.cfmt(),sty='<div style="line-height:0' 133 if(page.header){l=abc 229 set_hooks(abc) global() argument [all...] |
H A D | temper-1.js | 17 of(cmd,param)},set_hooks:function(abc){abc.set_format=abc2svg.temper.set_fmt.bind(abc,abc.set_format)}}
|
H A D | perc-1.js | 74 of(text)},set_vp:function(of,a){abc2svg.perc.set_perc.call(this,a);of(a)},set_hooks:function(abc){abc.do_pscom=abc2svg.perc.do_pscom.bind(abc,abc.do_pscom);abc.set_vp=abc2svg.perc.set_vp.bind(abc,abc.set_vp)}}
|
/plugin/abc2/ |
H A D | print.css | 7 /* don't print abc midi players etc */ 9 .abc-source .nop, 10 .abc-player, 11 .abc-player.ready, 12 .abc-voices, 13 .abc-tempo, 14 .abc-dot, 15 .abc-player.playing {
|
H A D | all.css | 2 /* make the abc code output look like <pre> */ 7 .abc2-plugin.lib-abc-ui.abc-source { 18 .hide-source.abc2-plugin.lib-abc-ui.abc-source { 27 /* abc-ui (original from music.min.css) 39 * * wrapped (nearly) everything in a .abc-render 42 * * moved .abc-source{display:none} out 45 .abc-render { 46 .keyWhite{stroke:gray;fill:#EEE}.keyBlack{stroke:gray;fill:black}.keySelected{stroke:gray;fill:#507fff}.keySelected.sensible{stroke:gray;fill:red}.keySelected.fourth{stroke:gray;fill:orange}.keySelected.highlight{stroke:gray;fill:green}.keySelected.optional{stroke:gray;fill:lightgray}.harmonic-sequence{display:none}br.chord-sequence{clear:both;height:0;font-size:0;line-height:0;margin:0;padding:0}.chord-sequence{margin:5px;display:inline-block;vertical-align:top}.mn-exp{font-size:70%;vertical-align:text-top}.mn-sub{font-size:60%;vertical-align:middle;line-height:1em}.mn-sus{font-size:60%;vertical-align:text-bottom;line-height:80%}.mn-add{font-size:60%;vertical-align:text-top;line-height:1em}span.xl{font-size:.6em}.mn-over{position:relative}.mn-over span{position:absolute;top:-0.5em;left:1px;font-size:.8em}.inversion-sup{position:absolute;font-size:60%;vertical-align:text-top;line-height:1em}.inversion-sub{position:absolute;font-size:60%;vertical-align:text-bottom;line-height:2.6em}ol.hs-item{display:table;float:left;border-collapse:collapse;border:1px solid black;list-style-type:none;margin:0}.hs-item li{display:table-cell;min-width:60px;text-align:center;font-weight:bold;color:white}.hs-item li.hs-chord,.hs-item li.hs-signature{display:table-header-group;color:black;border-bottom:1px dashed gray}.hs-item li.hs-degree{display:table-header-group;color:black}.hs-item li.sus-add{font-size:60%;vertical-align:text-top;position:relative;left:-24px}.hs-item ul.ul-sus-add{display:inline-table;list-style-type:none;vertical-align:top;margin-left:3px}.hs-item li.li-sus-add{display:table-header-group;font-size:60%;color:black;line-height:90%}.hs-item li.hs-function.T{background-color:#3f3f3f}.hs-item li.hs-function.Ts{background-color:#3f3f3f;color:red}.hs-item li.hs-function.t{background-color:#bfbfbf}.hs-item li.hs-function.ts{background-color:#bfbfbf;color:red}.hs-item li.hs-function.D{background-color:#f00}.hs-item li.hs-function.Dst{background-color:#f00;color:black}.hs-item li.hs-function.d{background-color:brown}.hs-item li.hs-function.dst{background-color:brown;color:black}.hs-item li.hs-function.D2{background-color:#92d050}.hs-item li.hs-function.D2st{background-color:#92d050;color:black}.hs-item li.hs-function.SD{background-color:#0070c0}.hs-item li.hs-function.SD2{background-color:#3fa4f0}.hs-item li.hs-function.UNK{background-color:orange}.hs-item li.hs-function.T:before,.hs-item li.hs-function.Ts:before,.hs-item li.hs-function.t:before,.hs-item li.hs-function.ts:before{content:"T"}.hs-item li.hs-function.d:before,.hs-item li.hs-function.dst:before,.hs-item li.hs-function.D:before,.hs-item li.hs-function.Dst:before{content:"D"}.hs-item li.hs-function.D2:before,.hs-item li.hs-function.D2st:before{content:"D²"}.hs-item li.hs-function.SD:before{content:"SD"}.hs-item li.hs-function.SD2:before{content:"SD²"}.hs-item li.hs-function.UNK:before{content:"?"}.hs-function div{min-width:60px;color:white;font-weight:bold;text-align:center}.hs-function div.T{background-color:#3f3f3f}.hs-function div.Ts{background-color:#3f3f3f;color:red}.hs-function div.t{background-color:#bfbfbf}.hs-function div.ts{background-color:#bfbfbf;color:red}.hs-function div.D{background-color:#f00}.hs-function div.Dst{background-color:#f00;color:black}.hs-function div.d{background-color:brown}.hs-function div.dst{background-color:brown;color:black}.hs-function div.D2{background-color:#92d050}.hs-function div.D2st{background-color:#92d050;color:black}.hs-function div.SD{background-color:#0070c0}.hs-function div.SD2{background-color:#3fa4f0}.hs-function div.UNK{background-color:yellow}.hs-function div.T:before,.hs-function div.Ts:before,.hs-function div.t:before,.hs-function div.ts:before{content:"T"}.hs-function div.d:before,.hs-function div.dst:before,.hs-function div.D:before,.hs-function div.Dst:before{content:"D"}.hs-function div.D2:before,.hs-function div.D2st:before{content:"D²"}.hs-function div.SD:before{content:"SD"}.hs-function div.SD2:before{content:"SD²"}.hs-function div.UNK:before{content:"?"}.sig-major{background-color:#dfd;font-weight:bold}.sig-major6{background-color:#afa;font-weight:bold}.sig-majorM7{background-color:#008040;font-weight:bold}.sig-major7{background-color:#f2dede;font-weight:bold}.sig-augmented{background-color:#8c8;font-weight:bold}.sig-augmentedM7{background-color:#aca;font-weight:bold}.sig-minor{background-color:#ffb;font-weight:bold}.sig-minor6{background-color:#ff9;font-weight:bold}.sig-minor7{background-color:#ffd;font-weight:bold}.sig-minorM7{background-color:#dda;font-weight:bold}.sig-minor7b5{background-color:#ddcdaa;font-weight:bold}.sig-diminished{background-color:#ffefcc;font-weight:bold}.sig-diminished7{background-color:#ffa500;font-weight:bold}.sig-suspended4{background-color:#faa;font-weight:bold}.harmonic-diagram{display:none}button.tone{height:30px;min-width:38px;margin:2px 2px;text-align:center;font-size:1.2em;font-weight:bold;border:solid black 2px;border-radius:12px;box-shadow:0 5px 15px rgba(0,0,0,0.25)}button.tone.selected{color:white;background-color:brown}button.tone:hover{color:white;background-color:red}button.tone:focus{outline:0}button.tonality{color:white;width:44px;height:28px;text-align:center;font-size:1.2em;font-weight:bold;border:solid black 1px}button.tonality.major{background-color:#555}button.tonality.minor{background-color:#777}button.tonality.selected{background-color:#000}button.tonality:hover{background-color:#0f71ba}button.tonality:focus{outline:0}button.signature{height:30px;min-width:80px;margin:2px 2px;text-align:center;font-size:1.2em;font-weight:bold;border:solid black 2px;border-radius:12px;box-shadow:0 5px 15px rgba(0,0,0,0.25)}button.signature.selected{color:white;background-color:#2d6987}button.signature:hover{color:white;background-color:lightblue}button.signature:focus{outline:0}.tonic,.T1{color:black;font-weight:bold}.T2{color:blue}.T3{color:brown}.fourth,.T4{color:orange;font-weight:bold}.T5{color:green;font-weight:bold}.T6{color:purple}.T7{color:red}.TT{color:red;font-weight:bold}.T2M{color:blue;font-weight:bold}.T3M{color:brown;font-weight:bold}.T4A{color:orange}.T5A{color:green}.T6M{color:purple;font-weight:bold}.sensible,.T7M{color:red;font-weight:bold}.T7D{color:red;font-weight:200}.fourth2{color:blue;font-weight:bold}.sensible2{color:green;font-weight:bold}.fnT{font-weight:bold;background-color:#3f3f3f;color:white}.fnTs{font-weight:bold;background-color:#3f3f3f;color:red}.fnTl{font-weight:bold;background-color:#bfbfbf;color:white}.fnTls{font-weight:bold;background-color:#bfbfbf;color:red}.fnD{font-weight:bold;background-color:#f00;color:white}.fnDl{font-weight:bold;background-color:#c00000;color:white}.fnDst{font-weight:bold;background-color:#f00;color:black}.fnSD{font-weight:bold;background-color:#0070c0;color:white}.fnD2{font-weight:bold;background-color:#92d050;color:white}.fnD2st{font-weight:bold;background-color:#92d050;color:black}.fnSD2{font-weight:bold;background-color:#3fa4f0;color:white}.fnHarmo.fnT:before{content:"T"}.fnHarmo.fnD:before{content:"D"}.fnHarmo.fnSD:before{content:"SD"}.xxl{font-size:1.5em}.chord-name{font-weight:bold;width:60px;height:30px;display:inline-block;text-align:right;padding-top:36px}.chord.tonic{background-color:#f8f8f8;font-weight:bold}.chord.selected{background-color:lightgray;color:white;font-weight:bold}.chord.enharmonic{font-style:italic}.sig-major{background-color:#dfd;font-weight:bold}.sig-major6{background-color:#afa;font-weight:bold}.sig-majorM7{background-color:#008040;font-weight:bold}.sig-major7{background-color:#f2dede;font-weight:bold}.sig-augmented{background-color:#8c8;font-weight:bold}.sig-augmentedM7{background-color:#aca;font-weight:bold}.sig-minor{background-color:#ffb;font-weight:bold}.sig-minor6{background-color:#ff9;font-weight:bold}.sig-minor7{background-color:#ffd;font-weight:bold}.sig-minorM7{background-color:#dda;font-weight:bold}.sig-minor7b5{background-color:#ddcdaa;font-weight:bold}.sig-diminished{background-color:#ffefcc;font-weight:bold}.sig-diminished7{background-color:#ffa500;font-weight:bold}.sig-suspended4{background-color:#faa;font-weight:bold}.full-score{margin-left:-20px}.abc [all...] |