Skip to content

Instantly share code, notes, and snippets.

/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package echo_nest;
import com.echonest.api.v4.*;
import java.io.File;
import java.io.IOException;
A backup of http://sites.google.com/site/redcodenl/creating-shazam-in-java-1 just in case
Why is this necessary? Read http://sites.google.com/site/redcodenl/patent-infringement
Please fork, tweet about, etc.
----
Creating Shazam in Java
A couple of days ago I encountered this article: How Shazam Works
This got me interested in how a program like Shazam works… And more importantly, how hard is it to program something similar in Java?
// by dw @ bees & bombs
int[][] result;
float t;
void setup() {
setup_();
result = new int[width*height][3];
}
@eqx
eqx / gist:2cf50f1fb2e937b625ac298901012b69
Created August 27, 2016 01:18 — forked from anonymous/gist:88b64161fc6e023419ac
spiral — tmblr.co/ZOLwww1Ok-cU1
// by dave @ bees & bombs
int[][] result;
float t;
void setup() {
setup_();
result = new int[width*height][3];
}
// by dave @ bees & bombs
int[][] result;
float t;
void setup() {
setup_();
result = new int[width*height][3];
}
// Processing motion blur
// 'time' runs from 0 to 1
// ignore everything above the /////////
// by Dave @ beesandbombs
int[][] result;
float time;
void setup() {
setup_();
// copyrite dw
int[][] result;
float t, c;
float ease(float p) {
return 3*p*p - 2*p*p*p;
}
float ease(float p, float g) {
// by dave @beeesandbombs
int[][] result;
float t, c;
float ease(float p) {
return 3*p*p - 2*p*p*p;
}
float ease(float p, float g) {
// lol forgive me for this code
int[][] result;
float t;
float ease(float p) {
return 3*p*p - 2*p*p*p;
}
float ease(float p, float g) {
int[][] result;
float t;
void setup() {
setup_();
result = new int[width*height][3];
}
void draw() {