This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* this code snippet can be used in the processing environment to load all images in a folder | |
* "input" in the sketches' data folder into an array of PImages. | |
* ideally, the images are sequentially named, like 0001.jpg, 0002.jpg etc. | |
* in this demo, te images are sequentially displayed. | |
*/ | |
PImage[] imageSequence; | |
String[] imageFilenames; | |
void setup() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MidiLoader { | |
/** | |
*loads a midi file from disk and stores all notes in a nested Array List, using the Helper class "Note" | |
* needs some cleanup though | |
*/ | |
ArrayList<ArrayList<Note>> tracks; | |
long maxTicks = 0; | |
final boolean DO_PRINT = false; | |
MidiLoader(String fileName) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PImage myImage; | |
void setup() { | |
size(400,300); | |
myImage = loadImage("image.jpg"); | |
} | |
void draw() { |
NewerOlder