New answers tagged

0

Javascript, 249 This code handles bemol input: let N=["A","A#","B","C","C#","D","D#","E","F","F#","G","G#"] let t=(r,n)=>r.split("/").map((i)=>{ let a=i[1] let m=a=="#"||a=="b"?2:1 let c=i.slice(0,m) c=a==...


0

JavaScript (ES6 Browser Console), 194 Now that WebAudio is a thing, I thought it would be fun to write this. (Yes, I know ES6 and WebAudio came out after the challenge was posted.) Tested on Microsoft Edge. a=new AudioContext,o=a.createOscillator() o.connect(a.destination) i=0 setInterval(_=>o.frequency.value=4*{c:65,d:73,e:82,f:87,g:98,a:110}['...


Top 50 recent answers are included