Removed tarsos code; added nonphatic icons
|
@ -326,24 +326,9 @@ public class MainActivity extends AppCompatActivity {
|
|||
mediaPlayer = MediaPlayer.create(this, R.raw.nyan);
|
||||
mediaPlayer.setLooping(true);
|
||||
mediaPlayer.start();
|
||||
//testOnsets();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public void testOnsets() {
|
||||
// needs ffmpeg???
|
||||
AudioDispatcher dispatcher = AudioDispatcherFactory.fromPipe("/res/raw/nyan.mp3", 44100,5000,2500);
|
||||
ComplexOnsetDetector cod = new ComplexOnsetDetector(521, 0.3, 256.0/44100.0*4.0, -70);
|
||||
dispatcher.addAudioProcessor(cod);
|
||||
cod.setHandler(new OnsetHandler() {
|
||||
@Override
|
||||
public void handleOnset(double v, double v1) {
|
||||
System.out.println(v);
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
//endregion
|
||||
|
||||
//region ACTIVITIES
|
||||
|
|
After Width: | Height: | Size: 2.5 KiB |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 3.5 KiB |
After Width: | Height: | Size: 5.5 KiB |
After Width: | Height: | Size: 7.8 KiB |
After Width: | Height: | Size: 26 KiB |
After Width: | Height: | Size: 18 KiB |