News for hackers. Stuff that matters.
Re:Typedrummer by swhitt on Sunday May 10, 2015 @03:00AM (#9519138)
Re:Typedrummer by cranium on Sunday May 10, 2015 @07:59AM (#9519658)
Firefox wanted to correct the spelling of some words. I let it do it for once.

http://typedrummer.com/zbkrw0

Re:Typedrummer by rpwverheij on Monday May 11, 2015 @03:51AM (#9523267)
Re:Typedrummer by Kiro on Sunday May 10, 2015 @08:10AM (#9519671)
Sounds pretty sweet!
Re:Typedrummer by jbhatab on Sunday May 10, 2015 @06:53AM (#9519523)
you killed it.
Re:Typedrummer by kylestetz on Sunday May 10, 2015 @07:07AM (#9519552)
Creator here— Thanks for checking it out everybody! I promise I'm collecting a list of all the great feature requests I've been seeing.

There's a ton of awesome stuff happening in WebAudio right now. If you want more, check out http://audiocrawl.co

Re:Typedrummer by acjohnson55 on Sunday May 10, 2015 @10:38AM (#9520032)
Ability to stack beats would be sweet!
Re:Typedrummer by fredsted on Sunday May 10, 2015 @07:14AM (#9519565)
Put it on github - I'd love submitting a few pull requests.
Re:Typedrummer by agumonkey on Sunday May 10, 2015 @07:12AM (#9519562)
You're about to disrupt Roland business. Brace yourself.
Re:Typedrummer by joeyspn on Sunday May 10, 2015 @07:24AM (#9519587)
Well, those are major words... IMO it won't be that easy or soon. Roland, Moog, NI, Steinberg, etc, are light years ahead of web audio. The web audio API direction is good and really promising tho.

I'm really excited about a combo of Node/websockets (real-time), NW.js/Electron (GUI), Emscripten/ASM.js (reusing audio libs) and Web Audio API. Amazing things can come out of this.

Re:Typedrummer by brownbat on Sunday May 10, 2015 @11:29AM (#9520177)
Here's my best guess:

  a: click with a slight rattle, like rattan brushes
  b: closed hihat
  c: distored synth bass with rattle, like tambourine
  d: distored synth bass higher pitch and muted
  e: muted synth bass
  f: sizzle ride hit like crash
  g: maracas
  h: muted maracas
  i: afuche-cabasa
  j: synth snare
  k: deeper snare
  l: castanets
  m/n: tap on closed hihat - maybe striking the hardware?
  o: booming tonal bass
  p: half muted tonal bass
  q: muted bass
  r: very muted, blockish bass
  s: synth splash
  t: agogo bell
  u: guiro upstroke
  v: guiro downstroke
  w: tamborine
  x: snare
  y: synth snare
  z: concert bass
  non-alpha: rest
  (): beat = 1/3 - note: triplets will begin on the letter before the first open paren, it modifies the space before, not after, each note.
A beat: http://typedrummer.com/91l102
Re:Typedrummer by brownbat on Sunday May 10, 2015 @11:54AM (#9520256)
The parens don't quite line up with how triplets are usually notated. This effectively prevents you from ending the composition with a triplet that loops properly.

You can hear it weird here: http://typedrummer.com/53d811

vs. without the triplets at the end, only in the middle, so less broken sounding: http://typedrummer.com/4x2977

EDIT: Ok, workaround: just put the first character in parens - http://typedrummer.com/hoxj64

Re:Typedrummer by monokrome on Sunday May 10, 2015 @01:49PM (#9520681)
I think m/n is hitting the top of the hi-hat instead of the sides
Re:Typedrummer by brownbat on Sunday May 10, 2015 @04:20PM (#9521166)
I think you're right, with n maybe using the shaft of the stick on the bell of the closed hat.
Re:Typedrummer by monokrome on Sunday May 10, 2015 @05:55PM (#9521507)
Yeah, I think so
Re:Typedrummer by TeMPOraL on Sunday May 10, 2015 @02:47PM (#9520894)
Let's go meta with that: http://typedrummer.com/c8094s.
Re:Typedrummer by workingandtired on Sunday May 10, 2015 @01:53AM (#9519009)
Quick tip/Easter egg. Wrapping the text in parenthesis allows you to do triplets.
Re:Typedrummer by slazaro on Sunday May 10, 2015 @04:54AM (#9519354)
Re:Typedrummer by lawry on Sunday May 10, 2015 @05:14AM (#9519388)
For those who recall that "piano thing" that was also on hn a while back and don't want to go trough the hassle of remembering the exact name or searching it: http://touchpianist.com/

Absolutely different from this, but also fun!

Re:Typedrummer by dag11 on Sunday May 10, 2015 @02:31AM (#9519083)
I call this one "The Master".

http://typedrummer.com/901ci8

Re:Typedrummer by jmickey on Sunday May 10, 2015 @11:28AM (#9520173)
Re:Typedrummer by zaszrespawned on Sunday May 10, 2015 @12:04PM (#9520290)
I see a smiley and something else in there
Re:Typedrummer by sjrd on Sunday May 10, 2015 @05:21PM (#9521363)
Variant from later in the story: http://typedrummer.com/tubs9r
Re:Typedrummer by DiabloD3 on Sunday May 10, 2015 @10:17AM (#9519968)
And now I am humming the rest of the melody, and loading up Netflix. You have ruined my entire day of productivity. It is 10:17 am. Godspeed, you glorious bastard.
Re:Typedrummer by DiabloD3 on Sunday May 10, 2015 @12:21PM (#9520349)
For those downvoting me, parent is a Doctor Who reference: the Master is a character on the show obsessed with that specific beat (which any further explanation would be spoilertastic).
Re:Typedrummer by r0muald on Sunday May 10, 2015 @06:23AM (#9519487)
I guess the natural consequence is to share your code as a beat audio download and reverse engineer from there, no?
Re:Typedrummer by sixdimensional on Sunday May 10, 2015 @01:16AM (#9518923)
This is a lot of fun and quite creative. Turning text into a beat is awesome - I have often thought about listening to a for loop, now you can!
Re:Typedrummer by frozenport on Sunday May 10, 2015 @02:18AM (#9519061)
Grizzly engineers from the 70s told me of a way to use a radio to detect stuck code. Tune it to the computer's clock and if it started to make a constant pattern, you had a bug!
Re:Typedrummer by empressplay on Sunday May 10, 2015 @06:35AM (#9519501)
This also works with a Commodore 64 on RF if you crank the sound on the TV
Re:Typedrummer by techload on Sunday May 10, 2015 @10:24AM (#9519986)
Re:Typedrummer by zaszrespawned on Sunday May 10, 2015 @12:01PM (#9520281)
Noice
Re:Typedrummer by taspeotis on Sunday May 10, 2015 @02:50AM (#9519117)
Re:Typedrummer by unclesaamm on Sunday May 10, 2015 @01:53PM (#9520695)
by John Cage
Re:Typedrummer by MrBuddyCasino on Sunday May 10, 2015 @09:08AM (#9519805)
Well played.
Re:Typedrummer by TazeTSchnitzel on Sunday May 10, 2015 @11:45AM (#9520237)
Yes, it was quite the moving performance.
Re:Typedrummer by zaszrespawned on Sunday May 10, 2015 @12:07PM (#9520297)
illuminati confirmed
Re:Typedrummer by moe on Sunday May 10, 2015 @02:16AM (#9519053)
Re:Typedrummer by ux on Sunday May 10, 2015 @07:02AM (#9519538)
OK so basically we have 26 sounds (http://typedrummer.com/audio/[a-z].mp3), an accel marker '(' (only 1 scale?), and a decelerator ')' (only 1 scale?). Anything else?

And since everyone feels like sharing his own crap, I'm doing it as well http://typedrummer.com/j5c05o

Edit: it's funny how Firefox (37) gets completely insane when it hasn't the focus on the tab anymore

Re:Typedrummer by cocoggu on Sunday May 10, 2015 @07:58AM (#9519654)
In Chrome too, it is due to the JS engine working slowly when the focus is not on the tab anymore. To get around that issue he needs to wrap the setInterval function in a Web Worker, so the thread runs independently of the tab.
Re:Typedrummer by malloreon on Sunday May 10, 2015 @03:08AM (#9519148)
it would be amazing if it was easy to tell which was the currently playing character.
Re:Typedrummer by kremlin on Sunday May 10, 2015 @03:51AM (#9519235)
i thought that
Re:Typedrummer by bodecker on Sunday May 10, 2015 @10:15AM (#9519960)
Small bug I found - the timing gets messed up whenever the typedrummer tab is running in the background
Re:Typedrummer by alextgordon on Sunday May 10, 2015 @11:29AM (#9520178)
Not really a bug, Chrome heavily throttles timers in background tabs to save the user's juice. All you can really do is suspend the sequence until the tab returns to foreground.
Re:Typedrummer by honestcoyote on Sunday May 10, 2015 @06:45AM (#9519513)
What a great toy. Wish there was a way to feed it text from the Library of Babel so we'd get an idea of the sick beats the librarians dance to while trapped in their endless hexes.

I put in a few of the improbable words from the Library and this one turned out well: chaotic but mellow

http://typedrummer.com/jy28xk

http://libraryofbabel.info

Re:Typedrummer by reustle on Sunday May 10, 2015 @05:36AM (#9519418)
This is really cool. Within about 30 seconds of playing around, I wished it had more scripting-like features (loops and blocks I can reference multiple times)
Re:Typedrummer by seba_dos1 on Sunday May 10, 2015 @10:39AM (#9520035)
Oh my $deity! I sometimes play a bit with recording music and I always hate drum machine programming. If I could actually program it in some sort of programming language it would be so much nicer!

Seems like I've just got a new side project :)

Re:Typedrummer by monokrome on Sunday May 10, 2015 @01:44PM (#9520662)
Re:Typedrummer by seba_dos1 on Sunday May 10, 2015 @09:22PM (#9522182)
Thanks! Although I had something much simplier in mind, Overtone will definitely come handy as well :)
Re:Typedrummer by troels on Sunday May 10, 2015 @05:21PM (#9521362)
Like a tracker?
Re:Typedrummer by jigneshhk on Sunday May 10, 2015 @01:28AM (#9518947)
When you unfocus the tab drum beats produces different sound. Is it a feature or bug?
Re:Typedrummer by cocoggu on Sunday May 10, 2015 @08:09AM (#9519670)
I think it is more how any JS script works, Chrome and Firefox (at least) slow down the process (for CPU consumption, to save battery... etc). Since that script is working using a setInterval to look ahead, he needs to wrap the setInterval in a Web Worker, so that thread is never runned slowly.
Re:Typedrummer by notthetup on Sunday May 10, 2015 @07:41AM (#9519617)
It's how WebAudio works. If the tab loses focus, the callbacks to the Audio Thread are throttled so the sequencing might be a bit messed up.
Re:Typedrummer by jbrooksuk on Sunday May 10, 2015 @03:28AM (#9519191)
Pull the tab into a new window and you can then layer sounds.
Re:Typedrummer by hraberg on Sunday May 10, 2015 @03:54AM (#9519244)
Re:Typedrummer by throwaway43 on Sunday May 10, 2015 @05:00AM (#9519366)
An awesome meta thing to do would be to make it play it's own source code as a beat.
Re:Typedrummer by helsinki on Sunday May 10, 2015 @05:13AM (#9519387)
Re:Typedrummer by agumonkey on Sunday May 10, 2015 @05:38AM (#9519421)
Miles Davis.
Re:Typedrummer by bastijn on Sunday May 10, 2015 @11:31AM (#9520186)
Somebody had to do this. Sorry in advance.

Sounds better than the original though. http://typedrummer.com/rik4mt

Re:Typedrummer by chillingeffect on Sunday May 10, 2015 @09:03AM (#9519792)
Sites like this are a good reason to not require https everywhere. If this guy had to take the extra time to learn how to do https, it would slow down his creative innovation.
Re:Typedrummer by quonn on Sunday May 10, 2015 @09:17AM (#9519827)
I'm impressed how you imposed your political agenda on this innocent post.

By the way, it usually takes me less than 15 minutes to set up SSL and that includes obtaining the certificate. "Let's encrypt" will make this even more of a non-issue in the future.

Re:Typedrummer by tokenizerrr on Sunday May 10, 2015 @09:26AM (#9519841)
Until "Let's Encrypt" becomes a thing certificates are still "expensive". It's a shame that you will have to pay for a certificate on top of a domain name for hobby projects like this.
Re:Typedrummer by quonn on Sunday May 10, 2015 @09:34AM (#9519862)
I usually use completely free certificates. There is at least one vendor for those.
Re:Typedrummer by acjohnson55 on Sunday May 10, 2015 @10:31AM (#9520009)
I call this one Java Utopia

http://typedrummer.com/6haxm2

Re:Typedrummer by sjoerd_visscher on Sunday May 10, 2015 @05:37AM (#9519420)
Re:Typedrummer by valisystem on Sunday May 10, 2015 @05:53AM (#9519446)
Re:Typedrummer by bvanslyke on Sunday May 10, 2015 @03:10AM (#9519155)
Someone needs to combine this with a melody sequencer that maps ascii <-> pentatonic scale notes or something.
Re:Typedrummer by edem on Sunday May 10, 2015 @08:22AM (#9519693)
Re:Typedrummer by AndrewVos on Sunday May 10, 2015 @09:17AM (#9519826)
Would be interesting to see a vim plugin that played these sounds for each key you pressed in Normal mode.
Re:Typedrummer by aryehof on Sunday May 10, 2015 @02:30AM (#9519080)
The results are so good, I'm thinking this could be used to generate background for some videos.
Re:Typedrummer by reirob on Sunday May 10, 2015 @12:00PM (#9520277)
Crashes Firefox after trying about 20 different examples from this page, i.e. opening a tab, listening a bit, closing again, opening a new one.

Firefox 37.0.2 on Ubuntu 14.02 LTS 64 bit. Reproducible, crashed already 3 times.

Re:Typedrummer by LarryMade2 on Sunday May 10, 2015 @10:54AM (#9520072)
Didn't want to work on Firefox on Linux (37.0.2) but was fine on chrome.

Try: Zyzzybalooba

Re:Typedrummer by pandatigox on Sunday May 10, 2015 @03:43AM (#9519220)
I don't know if they did it on purpose, but `qwerty` sounds pretty nice
Re:Typedrummer by DonGateley on Sunday May 10, 2015 @11:53PM (#9522607)
OMG! Of course I entered "type something" (no quotes) and five minutes later dragged myself out of the trance it put me in. :-)

This could actually be very useful for meditation.

Re:Typedrummer by DonGateley on Monday May 11, 2015 @12:08AM (#9522638)
Heh. For the helluvit I entered the Transcendental Meditation mantra given me 45 years ago and got something much, much more compelling than the mantra itself. I might just revisit that old fad.
Re:Typedrummer by adyrhan on Sunday May 10, 2015 @09:15AM (#9519820)
Quite a fun webapp. I've also made my thing http://typedrummer.com/7bss99
Re:Typedrummer by d0m on Sunday May 10, 2015 @03:09AM (#9519153)
Not as good as some others.. but worth sharing? http://typedrummer.com/uj8es0
Re:Typedrummer by NanoWar on Wednesday May 13, 2015 @10:37AM (#9539226)
I'm a drummer and this is a real beat: http://typedrummer.com/eht669
Re:Typedrummer by fedlarm on Sunday May 10, 2015 @03:35AM (#9519206)
Beat from Deftones RX Queen http://typedrummer.com/j9t913
Re:Typedrummer by joelthelion on Sunday May 10, 2015 @02:10AM (#9519046)
So how does it work?
Re:Typedrummer by notthetup on Sunday May 10, 2015 @02:29AM (#9519079)
Basically creates a pattern from your letters and sequences it using WebAudio. If you look at the Network tab, you'll see the individual mp3 files for each letter being downloaded.
Re:Typedrummer by time4hn on Sunday May 10, 2015 @05:28AM (#9519410)
Surround your stuff with parens
Re:Typedrummer by MetaMonk on Sunday May 10, 2015 @09:01PM (#9522132)
Re:Typedrummer by philbo on Sunday May 10, 2015 @08:11AM (#9519674)
The Amen Break. Kind of.

http://typedrummer.com/zvs523

Re:Typedrummer by DiabloD3 on Sunday May 10, 2015 @10:21AM (#9519979)
For those who don't know what the Amen Break is, here is the most important documentary ever done: https://www.youtube.com/watch?v=5SaFTm2bcac
Re:Typedrummer by hxn on Sunday May 10, 2015 @06:38AM (#9519503)
The Hacker Dudes Song

http://typedrummer.com/001ho4

Re:Typedrummer by kentbrew on Tuesday May 12, 2015 @01:21AM (#9529730)
Re:Typedrummer by louishk on Sunday May 10, 2015 @08:24PM (#9522043)
Re:Typedrummer by EugeneOZ on Sunday May 10, 2015 @08:20PM (#9522032)
Re:Typedrummer by no_gravity on Sunday May 10, 2015 @06:22AM (#9519486)
Re:Typedrummer by khiner on Sunday May 10, 2015 @03:35AM (#9519205)
Re:Typedrummer by hammeiam on Sunday May 10, 2015 @01:29AM (#9518948)
Re:Typedrummer by ryanlbrown on Sunday May 10, 2015 @01:38AM (#9518974)
Re:Typedrummer by microcolonel on Sunday May 10, 2015 @02:46AM (#9519108)
http://typedrummer.com/y7qx52

Let's do break beats. :)

Re:Typedrummer by ArekDymalski on Sunday May 10, 2015 @05:03AM (#9519374)
Re:Typedrummer by monokrome on Sunday May 10, 2015 @02:17AM (#9519056)
Re:Typedrummer by chrissyb on Sunday May 10, 2015 @02:29AM (#9519076)
Re:Typedrummer by mhuffman on Sunday May 10, 2015 @03:09AM (#9519151)
Re:Typedrummer by egypturnash on Sunday May 10, 2015 @01:17PM (#9520565)
Re:Typedrummer by deadlast on Sunday May 10, 2015 @02:31AM (#9519082)
Re:Typedrummer by rasur on Sunday May 10, 2015 @05:36AM (#9519419)
Didn't work in Firefox 37.0.2 for me, but did in Chrome latest.

Nice though, thanks!

EDIT: Forgot to mention; on Linux (Ubuntu 14.04)

Re:Typedrummer by barrkel on Sunday May 10, 2015 @06:21AM (#9519485)
It works in Firefox 37.0.2 on Windows for me.
Re:Typedrummer by Retr0spectrum on Sunday May 10, 2015 @07:02AM (#9519537)
Firefox 37.0.2 worked for me on Arch Linux.
Re:Typedrummer by _ZeD_ on Sunday May 10, 2015 @02:36AM (#9519089)
An unknown error occured while processing decodeAudioData. decodeAudioData error" undefined"
Re:Typedrummer by notthetup on Sunday May 10, 2015 @07:38AM (#9519609)
Which browser is this?
Re:Typedrummer by amelius on Sunday May 10, 2015 @10:26AM (#9519988)
Hmm, why not write a fruityloop style of interface. That would make it more predictable.
Re:Typedrummer by frozenport on Sunday May 10, 2015 @01:47AM (#9518992)
Needs more sounds that come from the left speaker. All I here are right speaker sounds.
Re:Typedrummer by siscia on Sunday May 10, 2015 @03:15AM (#9519167)
you can use the "|" to put a pause...
Re:Typedrummer by 0942v8653 on Sunday May 10, 2015 @06:46AM (#9519514)
Comma also works.
Re:Typedrummer by valevk on Sunday May 10, 2015 @06:14AM (#9519469)
The coder's late night sessions: http://typedrummer.com/uunq13
Re:Typedrummer by weitzj on Sunday May 10, 2015 @06:54AM (#9519525)
Feature request - I need more more cowbell
Re:Typedrummer by Demiurge on Sunday May 10, 2015 @08:57AM (#9519775)
Hm, can anyone make me a djent starter?
Re:Typedrummer by bane on Sunday May 10, 2015 @02:52PM (#9520918)
Re:Typedrummer by midgetjones on Sunday May 10, 2015 @06:15AM (#9519470)
Re:Typedrummer by rodgerd on Sunday May 10, 2015 @06:42AM (#9519510)
http://typedrummer.com/j44d37

Not as ominous as I hoped.

Re:Typedrummer by lux on Sunday May 10, 2015 @12:34PM (#9520396)
Re:Typedrummer by gbachik on Sunday May 10, 2015 @01:24PM (#9520589)
Re:Typedrummer by clebio on Sunday May 10, 2015 @12:39PM (#9520415)
Re:Typedrummer by valevk on Sunday May 10, 2015 @06:11AM (#9519467)
Re:Typedrummer by advm on Sunday May 10, 2015 @04:11AM (#9519272)
Re:Typedrummer by anoplus on Sunday May 10, 2015 @02:04PM (#9520742)
Cool! my name has a beat.
Re:Typedrummer by Mrlbamonde on Monday May 11, 2015 @03:08PM (#9527133)
oh shit i aint no love
Re:Typedrummer by bytor1974 on Tuesday May 12, 2015 @08:12AM (#9531106)
raul chacaltana
Re:Typedrummer by monatron on Sunday May 10, 2015 @10:26AM (#9519992)
shout out to p'unk avenue! philly represent!
Re:Typedrummer by Mrlbamonde on Monday May 11, 2015 @03:07PM (#9527130)
verymych
Re:Typedrummer by rabbyte on Sunday May 10, 2015 @01:28AM (#9518946)
So fun!
Re:Typedrummer by Mrlbamonde on Monday May 11, 2015 @03:07PM (#9527131)
datbomb
Re:Typedrummer by skribbles on Sunday May 10, 2015 @02:49AM (#9519114)
Re:Typedrummer by kremlin on Sunday May 10, 2015 @03:47AM (#9519232)