News for hackers. Stuff that matters.
Re:Google Beatbox by tlrobinson on Tuesday November 30, 2010 @02:19AM (#1953423)
So, I went ahead and made a drum machine out of your notes using a bit of JavaScript...

https://gist.github.com/721253

Load it as a bookmarklet using this:

javascript:(function(){document.body.appendChild(document.createElement("script")).src = "https://gist.github.com/raw/721253/f70c2bdeaed54d9907a448504...

EDIT: the bookmarklet is getting cut off by HN, see the first comment on the gist linked above.

Unfortunately there's a little bit of delay due to loading the sounds but it sort of works.

Re:Google Beatbox by potomak on Tuesday November 30, 2010 @09:44AM (#1954211)
I've created a new version of your great script, now it uses the javascript Audio() class.

https://gist.github.com/721554

This is the bookmarklet: javascript:(function(){document.body.appendChild(document.createElement("script")).src="http://bit.ly/googlebeat})()

Re:Google Beatbox by machofabulous on Tuesday November 30, 2010 @03:12PM (#1955400)
So desperate to get this to work...but no avail!

I made the bookmarklet in my firefox toolbar with the javascript code.

I open google translate, click the bookmarklet...nothing happens.

My roomate thinks it's an error with the bit.ly redirect

Any suggestions? I want it SO BAD

Re:Google Beatbox by jmatt on Tuesday November 30, 2010 @04:08PM (#1955583)
This is what you need to do to get it to work:

0. Use fix close quote on bit.ly redirect if you are using the parent comment...

  javascript:(function(){document.body.appendChild(document.createElement("script")).src="http://bit.ly/googlebeat"})()
1. Load Google Translate: http://translate.google.com

2. Load the bookmarklet.

3. Click the new buttons at the bottom of the page.

See the howto from the gist: https://gist.github.com/721554#file_how_to.txt

Re:Google Beatbox by machofabulous on Tuesday November 30, 2010 @05:39PM (#1955882)
Thanks for the response. I got it! But the play button doesn't seem to work...not a big deal.

A tip for composers, use commas and periods for rests

Re:Google Beatbox by potomak on Wednesday December 01, 2010 @03:12AM (#1957232)
It doesn't work because Firefox doesn't support mp3 format through <audio> html tag.

This script supports only Safari and Chrome by now.

Re:Google Beatbox by RyanMcGreal on Tuesday November 30, 2010 @07:36AM (#1953888)
That's awesome!

If you want to pre-compose your beat and then paste it into Google Beatbox, you can use this simple GUI script:

https://gist.github.com/721611

Re:Google Beatbox by iamdave on Tuesday November 30, 2010 @09:45AM (#1954213)
Awesome work, if you can append sounds to the next and create a string of phonemes instead of replacing after you click, that'd be even more awesome.