-
Notifications
You must be signed in to change notification settings - Fork 8
Music Analysis
Gottfried Haider edited this page Jul 5, 2017
·
9 revisions
Different options for making the sketch react to music:
- pure Java and without any other external dependencies
- Jar and notes to run on Android
- see https://github.com/JorenSix/TarsosDSP
- see https://0110.be/posts/TarsosDSP_on_Android_-_Audio_Processing_in_Java_on_Android
- can either do FFT on the stereo mix or a particular MediaPlayer, or AudioTrack instance
- needs RECORD_AUDIO permission
- unclear if this can be used together with a live recording from the microphone
- see https://developer.android.com/reference/android/media/audiofx/Visualizer.html
- works on the microphone
- e.g. used by https://github.com/bewantbe/audio-analyzer-for-android
- another example: https://github.com/tyorikan/voice-recording-visualizer
- pure Java, but operates on files (using the Java Sound API)
- returns the time location and sound energy of each beat it detects
- perhaps this could be run each time before an mp3 from the user's library is being played back?