To write an android app that listen to music and vibrate / display for every beat accordingly

2 days ago 8
ARTICLE AD BOX

How is it possible to write an android project that vibrate to every beat of a music, say Waltz, for a compeletely deaf person?

The code consisits of three parts:

code listening to the beat of the music, this may be the hard part

(idea needed)

code vibrate for every beat of the music

// Get Vibrator service Vibrator vibrator = (Vibrator) getSystemService(Context.VIBRATOR_SERVICE);

// Check if the device has a vibrator

if (vibrator != null && vibrator.hasVibrator()) { // Vibrate for 500 milliseconds vibrator.vibrate(VibrationEffect.createOneShot(10, VibrationEffect.DEFAULT_AMPLITUDE)); }

display the beat on the screen.

(idea needed)

Read Entire Article