Skip to content

Instantly share code, notes, and snippets.

@TatsuoWatanabe
Last active May 6, 2016 00:24
Show Gist options
  • Save TatsuoWatanabe/c5c054fe37a236151a194cae2f555584 to your computer and use it in GitHub Desktop.
Save TatsuoWatanabe/c5c054fe37a236151a194cae2f555584 to your computer and use it in GitHub Desktop.
SVG data of ukulele code tablatures.
See also printers page demo on blocks.
http://bl.ocks.org/TatsuoWatanabe/raw/c5c054fe37a236151a194cae2f555584
If you want more ukulele code, download inkscape.
https://inkscape.org/
Then you can edit svg file, and you can create more ukulele codes very easily.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf8" />
<title>UkuleleCodeSVG</title>
<style>
@media print {
#description {
display: none;
}
}
</style>
<script src="https://code.jquery.com/jquery-2.2.3.min.js"></script>
<script type="text/javascript">
function getUrlVars(queryString) {
var urlVarsArr = decodeURIComponent(queryString).split('&').map(function(i) { return i.split('='); });
var urlVars = {};
urlVarsArr.forEach(function(i) {
urlVars[i[0]] = i[1];
});
return urlVars;
}
$(function() {
$('img.code').remove();
$('#description a').each(function(i, a) { $(a).text(a.href); });
var urlVars = getUrlVars(location.search.slice(1));
var width = urlVars.width || 50;
for(var key in urlVars) {
if (key === 'width') { continue; }
if (!urlVars.hasOwnProperty(key)) { continue; }
for (var i = 0; i < urlVars[key]; i += 1){
$('<img class="code" src="' + encodeURIComponent(key) + '" />').appendTo('body').width(width);
}
}
});
</script>
</head>
<body>
<section id="description">
<p>This is ukuleleCodeSVG printer page.</p>
<p>You can specify the ukulele codes by input the filename of svg and amount to URL like this.</p>
<ul>
<li>
<a href="?width=60&A_01.svg=10&B_01.svg=10&F%237_01.svg=10"></a>
</li>
<li>
<a href="?width=100&F%237_01.svg=20&G_01.svg=20&G_02.svg=20&G_03.svg=20&G_04.svg=20"></a>
</li>
<li>
<a href="?width=300&F%237_01.svg=1&D_01.svg=1&Bm_02.svg=1&A7sus4_03.svg=1&A7_03.svg=1"></a>
</li>
<li>
<a href="?width=50&A_01.svg=6&A_02.svg=6&A_03.svg=6&A_04.svg=6&A7_01.svg=6&A7_03.svg=6&A7sus4_03.svg=6&B_01.svg=6&Bm_01.svg=6&Bm_02.svg=6&C_01.svg=6&D_01.svg=6&D_02.svg=6&D_03.svg=6&D_04.svg=6&E_01.svg=6&Em_01.svg=6&F_01.svg=6&F%237_01.svg=6&G_01.svg=6&G_02.svg=6&G_03.svg=6&G_04.svg=6"></a>
</li>
<li>
<a href="?width=50&Dadd9_01.svg=26&A_04.svg=26&C_01.svg=26&D_01.svg=26&E_01.svg=26&F_01.svg=26&G_01.svg=26&A_01.svg=26&B_01.svg=26"></a>
</li>
</ul>
<p>Then print this page and cut it.</p>
<p>You can paste the ukulele codes to your musical score.</p>
<p>Have fun!</p>
</section>
</body>
</html>
Copyright (c) <2016> <Tatsuo Watanabe>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment