3 ms·
So, I went ahead and made a drum machine out of your notes using a bit of JavaScript... https://gist.github.com/721253 https://gist.github.com/721253 Load it
by tlrobinson 16y ago
So, I went ahead and made a drum machine out of your notes using a bit of JavaScript...
https://gist.github.com/721253 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/f70c2bdeaed54d9907a448504ca7488287ab6d12/google-translate-drums.js})() 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.
- RyanMcGreal 16y agoThat'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 https://gist.github.com/721611
- potomak 16y agoI've created a new version of your great script, now it uses the javascript Audio() class. https://gist.github.com/721554 https://gist.github.com/721554 This is the bookmarklet: javascript:(function(){document.body.appendChild(document.createElement("script")).src="http://bit.ly/googlebeat})() http://bit.ly/googlebeat})()
- machofabulous 16y agoSo 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
- jmatt 16y agoThis 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 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 https://gist.github.com/721554#file_how_to.txt
- machofabulous 16y agoThanks 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
- potomak 16y agoIt doesn't work because Firefox doesn't support mp3 format through <audio> html tag. This script supports only Safari and Chrome by now.
- iamdave 16y agoAwesome 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.