I'm interested in a processing way of achieving something similar as is made by this person link
From how I get it she had a video sliced int in tiff's and then composed them with the RiTa Library
Does anybody know how to achieve such a thing, only changing the fact that I'm using another extension or format of file.I would like to achieve this with sound samples.
Any info about the code, logic or works that are similar and maybe free for altering.
Enlighten me!!
Thanks
For the direct question how do I import and read these files with following code.
import rita.*;
RiMarkov markov;
void setup()
{
size(500, 500);
RiText.defaultFontSize(18);
new RiText(this, "click to (re)generate!");
// create a markov model w' n=3
markov = new RiMarkov(4);
// load files into the model
markov.loadFrom(new String[] { "wittgenstein.txt", "kafka.txt" }, this);
}
void draw()
{
background(255);
RiText.drawAll();
}
void mouseClicked()
{
if (!markov.ready()) return;
RiText.disposeAll(); // clean-up old data
String[] lines = markov.generateSentences(10);
// lay out in rect (x=50 y=50, w=400, h=400)
RiText.createLines(this, lines, 50, 50, 400, 400);
}
So how can I or can I change the .txt files with for example .mp3 files and how can I then play it with processing? An audio library like Minim?
Any ideas will help.