Skip to content

Instantly share code, notes, and snippets.

View c3r38r170's full-sized avatar
๐Ÿ˜Ž
Busy writing code!

c3r38r170

๐Ÿ˜Ž
Busy writing code!
  • Funes, Rosario, Santa Fe, Argentina
View GitHub Profile
@c3r38r170
c3r38r170 / MusicXMLToPascal.js
Last active August 3, 2019 14:50
A little script to take parts from MusicXML files and turn them into a Pascal script that plays it. Lacks: || |: symbol (start of repetition, as far as I know) and multiple notes at the same time (yeah, can only play well simple songs, like kids classics or 8-bit OSTs). Free for anyone, tested in last version of Chrome as of today.
function checkTied(r,s){
r=r.querySelector('notations');
if(r){
r=r.querySelector('tied');
if(r)
return r.getAttribute('type')==s;
}
return false;
}
let a='',i=1,d={A:[0,0,0,220,440,880,1760],B:[0,0,0,247,494,988,1975],C:[0,0,0,131,262,523,1046,2093],D:[0,0,0,147,294,587,1175,2349],E:[0,0,0,165,330,659,1318,2637],F:[0,0,0,175,349,698,1397,2793],Es:[0,0,0,175,349,698,1397,2793],G:[0,0,0,196,392,784,1568,3136],As:[0,0,0,233,466,932,1865,3729],Cs:[0,0,0,139,277,554,1109,2217],Ds:[0,0,0,156,311,622,1244,2489],Fs:[0,0,0,185,370,740,1480,2960],Gs:[0,0,0,208,415,831,1661,3322]},f=['C','D','F','G','A'],h=[],tempo=0,tempAcc=[];
@c3r38r170
c3r38r170 / 2019isi.dx.am.php
Last active June 9, 2019 05:10
A little website for university professors' information we were told to ask. Written by hand the 4 days before the first class just by me. You can see the result in the free website 2019isi.dx.am until taken down. It's unfinished as I stopped developing it when I was told the information was already online. :P Totally free, take as you want.
<!DOCTYPE html>
<html style="background:lightblue">
<head>
<style>
body{
text-align: center;
width: 70%;
position: absolute;
left: 10%;
background: cornflowerblue;