Jump to content
Main menu
Navigation
  • Login
Orientation
  • Main page
  • What
  • Getting started
  • Acknowledgments
  • New Features
  • Donate to TTA
The Archive
  • The Index
  • Query the Archive
Publications
  • Magazines
  • Tune Books
The Traditional Tune Archive
Search
  • Log in
  • Request account
  • Log in
  • Request account

JSPDF: Difference between revisions

  • Page
  • Discussion
  • Read
  • View source
  • View history
Tools
Actions
  • Read
  • View source
  • View history
  • Refresh
  • 📋 Create a TuneBook
  • 📄 Print Sheet Music
General
  • What links here
  • Related changes
  • Upload file
  • Special pages
  • Printable version
  • Permanent link
  • Page information
  • Cite this page
  • Browse properties
Appearance
Help
Find traditional instrumental music
← Older editNewer edit →
Revision as of 15:19, 19 May 2017 view source
WikiSysop (talk | contribs)
autoreview, Bots, Bureaucrats, contributor, darkmatter, editor, gardener, Interface administrators, lookupuser, reviewer, Administrators (Semantic MediaWiki), Curators (Semantic MediaWiki), Administrators, Widget editors
125,040 edits
No edit summary
← Older edit
Revision as of 15:22, 19 May 2017 view source
WikiSysop (talk | contribs)
autoreview, Bots, Bureaucrats, contributor, darkmatter, editor, gardener, Interface administrators, lookupuser, reviewer, Administrators (Semantic MediaWiki), Curators (Semantic MediaWiki), Administrators, Widget editors
125,040 edits
No edit summary
Newer edit →
Line 21: Line 21:


<style type="text/css">
<style type="text/css">
.abcrendered {
background-color: #FCF9BB;
}
@media print {
@media print {
     div, p, textarea, h1, a {
     div, p, textarea, h1, a {

Revision as of 15:22, 19 May 2017

<html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <script src="/w/JavaScript/abcjs_editor_midi_3.0-min.js" type="text/javascript"></script> <title>abcjs: Tune Editor demo</title> <script type="text/javascript">

window.onload = function() { abc_editor = new ABCJS.Editor("abc", { paper_id: "paper0", midi_id: "midi", warnings_id: "warnings", parser_params: {} });

               window.ABCJS.midi.soundfontUrl = "/w/soundfonts/";
               //window.ABCJS.renderMidi("midi", abc_editor.editarea.getString(), 0), {}, { generateInline: true }, {});

//new ABCJS.Editor("abc", {generate_midi: true, generate_warnings: false});


} </script>

<style type="text/css"> @media print {

    div, p, textarea, h1, a {
        display: none;
    }
    #content {
        border: none;
    }
    div#paper0, #globalWrapper, #column-content, #content, 
  1. bodyContent, #mw-content-text, .output {
        display: block;
    }

} </style>


</head> <body>

Type or paste an abc tune in the area below and see it rendered as you type. Also notice that you can click on the drawn notes and see the place in the text where that note is defined.

Sheet Music for "First Score"First ScoreThe Traditional Tune Archive
<textarea name="ABCSandBox" id="abc" cols="80" rows="15"> X:0 T: First Score C: The Traditional Tune Archive M: K: x </textarea>

<a class="pause" href="#" onclick="pauseDrawing(this); return false;" title="Pause/Resume real-time drawing"></a> <a class="pdf" href="#" onclick="createPdf2('/w/tunes/TEMP.pdf', abc_editor.editarea.getString(), 0); return false;" title="Quick PDF"></a> <a class="yes_midi" href="#" onclick="pauseMidi(this); return false;" title="Pause/Resume MIDI generation"></a>


Based on abcjs. For more information, see <a href="http://abcjs.net" >the project page</a>.

Author: <a href=" mailto:paul@paulrosen.net ">Paul Rosen</a>

</body> </html>

Retrieved from "https://tunearch.org/w/index.php?title=JSPDF&oldid=270073"
  • This page was last edited on 19 May 2017, at 15:22.
  • Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • Privacy policy
  • About The Traditional Tune Archive
  • Disclaimers
  • Mobile view
  • Manage cookie preferences
  • Creative Commons Attribution-ShareAlike
  • Powered by MediaWikiPowered by Semantic MediaWiki

Hello! Ask me anything about traditional music.

    We use cookies (and similar technologies) to personalise content and improve The Traditional Tune Archive website.

    With these cookies we collect few and indispensable information about you. With this we adapt our website and communication to your preferences. You can read more about it in our privacy policy.

    If you want to manage your cookie preferences, click on Manage preferences. By clicking on Accept all, you agree to the use of all cookies. You can change or withdraw your consent at any time.

    Accept all cookiesManage preferences
    Something went wrong
    Dismiss