ToneMatrix – Webcam Object Tracking
During our subject Interface Culture we (Matthias Schmidt, Bettina Steger and my humble self) were working on a project that uses hand-drawn objects on a white paper for making music.
Note: You have to allow the webcam!
Hold a white paper with black (or dark) objects that you painted on it in front of the camera. The red rectangle indicates the tracked area, the green rectangles indicates the tracked objects. Then hit the space-bar (Note: be sure that the flash movie gets the focus)
The flash-app uses the webcam for accessing three different videos. The normal video that we convert into two other videos: A threshold video and a palette video.
The palette video is used for tracking the brightest area in the video and reducing the tracking-area to this area (e.g. the white paper is usual the brightest color in the video, so objects that are in the background aren't tracked any longer). The threshold video is used for tracking the darkest objects within the brightest area.
How does this work? In the treshold video it is supposed that the red pixels are the objects, and coherent pixels belongs to one object. I've implemented a flood fill algorithm that counts the pixel of each object and returns the x,y position and width and height of an object. With this information we can nearly perfectly track the object and use for example the pixelamount for the volume of the sound and the x,y/width,height information for the timeline.
When all objects are tracked and you press the Space-Bar the tracked area is converted into a matrix of 16x16 fields. Each field represents a sound, fields that are lower plays a lower sound, fields that are higher a higher one. The timeline goes from left to right.
The source code is available here: ToneMatrixSource
AppleScript: MP3′s automatisch einsortieren
Ich habe nun endlich den Anfang gemacht meine doch schon recht große Sammlung an MP3's zu sortieren (schwierig und langwieriges Unterfangen, fehlende ID3 Tags, keine Alben oder ähnliches...).
Bei der Suche nach einem passenden Programm bin ich schnell darauf gekommen, dass zumindest die von mir gewünschte Grundstruktur kein einziges Programm zufriedenstellend bewerkstelligen kann (Interpret - Interpret/Album - Titel). Darum hab ich mich entschlossen, das Ganze im Finder per Hand zu sortieren. Und da sind wir auch schon bei der Problematik:
Um zumindest einmal grob zu sortieren, wollte ich automatisch alle MP3's eines Interpreters in dessen Ordner schieben. Die Ordner von Hand anzulegen, sehr langwierig. Darum hab ich mich hingesetzt und ein kleines aber feines AppleScript geschrieben.
Das Skript nimmt die gerade im Finder selektierten Dateien, prüft ob ein "-" (Bindestrich) als Trennung zwischen Interpret und Titel vorhanden ist (wenn nicht, kann man einen eigenen definieren) und filtert darauf hin den Interpreten Namen heraus, der wiederrum als Ordnername dient.
tell application "Finder"
set fileList to selection
set currentDir to the folder of item 1 of fileList as text
set targetDirTMP to the name of item 1 of fileList
set endCount to offset of "-" in targetDirTMP
if endCount = 0 then
display dialog "No delemiter found, specify a custom one, or click Cancel." default answer "" with icon 2
set delimiter to text returned of result
if delimiter is "" then error
set endCount to offset of delimiter in targetDirTMP
end if
set checkSpace to characters (endCount - 1) thru (endCount - 1) of targetDirTMP
if " " is in checkSpace then
set removeRight to 2
else
set removeRight to 1
end if
set targetDir to (text items 1 thru (endCount - removeRight) of targetDirTMP) as text
if not (exists folder (currentDir & targetDir)) then
make new folder at currentDir with properties {name:targetDir}
move fileList to (currentDir & targetDir)
else
display dialog "The folder already exists. Would you like to merge the data?" buttons {"Cancel", "Yes"}
if button returned of result = "Yes" then
move fileList to (currentDir & targetDir)
end if
end if
end tell
Zur Installation einfach Code in den AppleScript Editor ziehen, eine APP daraus speichern, und per Drag&Drop in die obere Leiste des Finders ziehen.
Oder ihr ladet euch meine hier runter
The Franky4Fingers Casino Houseband
Nun ist die erste Version unserer Homepage für meine Band "The Franky4Fingers Casino Houseband" fertig. Leider noch mit magerem Inhalt, aber unter "Contact" kann man zumindest schon einmal E-Mails senden
Das Logo hat mir Wolfgang Windischhofer vom Studiengang MMA gemacht, die Flashseite ist von mir.
MMA Bewerbung 2008
Meine Bewerbung für den Studiengang Multimedia Art an der FH-Salzburg. Leider hats nicht geklappt, studier jetzt aber Multimedia Technology an der FH-Salzburg.
Vorgabe war das Thema Treibgut, hab den Comic in Flash animiert und das Lied mit Garage Band und der Hilfe meines Schlagzeugers einfach im Proberaum aufgenommen. Hoffe es gefällt.



