Skip to content

jnsdbr/shaketoplay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ShakeToPlay

This is an example app which uses tone.js & gyro.js to modify the playbackRate of a mp3 file. In order to increase the playbackRate you have to shake your phone up and down. After a few seconds the playbackRate will decrease again and you have to repeat the shaking process.

Important: The Tone.Buffer takes ages to load the mp3 file - this part needs some optimization!

Installation

Requirements

Clone repo and create project

Clone the repository to a temporary directory:

git clone https://github.com/jnsdbr/shaketoplay.git shaketoplaytmp

Create a new cordova project

cordova create ShakeToPlay

Copy the files from the repository to the cordova project

cd shaketoplaytmp
cp -R * ../ShakeToPlay/
cd ..
rm -rf shaketoplaytmp
cd ShakeToPlay

Add a platform

cordova platform add android

Build & run

cordova build android
cordova run android

Libraries used

Song Credits

Decktonic - Watch Your Dubstep Version 2

About

This is an example app which uses tone.js & gyro.js to modify the playbackRate of a mp3 file

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages