Library for generating optical soundtracks with Processing.
Go to file
litter b1d409ce6d Caught a MAJOR issue with the original lib. Crazy bug. Ok, so it was not resampling the audio the way I thought, so what I'm doing now is drawing at the audio full resolution and then scaling to the desired image size. Ready for one more example before I pass out. 2019-10-29 02:38:19 -04:00
.settings Create eclipse project for building jar of library. IDE is showing lots of errors. Will have to modify core functionality. 2019-10-29 00:15:19 -04:00
data Add two audio files to use with examples 2019-10-29 01:20:06 -04:00
examples Second example with audio playing along-side track. FOUND A BUG!!! The audio file is not resampled by the .rate() method, so image is ORIGINAL RATE / NEW RATE times longer than expected. Ahhhhhh. 2019-10-29 01:21:36 -04:00
library Caught a MAJOR issue with the original lib. Crazy bug. Ok, so it was not resampling the audio the way I thought, so what I'm doing now is drawing at the audio full resolution and then scaling to the desired image size. Ready for one more example before I pass out. 2019-10-29 02:38:19 -04:00
src/soundtrack/optical Caught a MAJOR issue with the original lib. Crazy bug. Ok, so it was not resampling the audio the way I thought, so what I'm doing now is drawing at the audio full resolution and then scaling to the desired image size. Ready for one more example before I pass out. 2019-10-29 02:38:19 -04:00
.classpath Build project to git repo 2019-10-29 01:19:54 -04:00
.gitignore Create eclipse project for building jar of library. IDE is showing lots of errors. Will have to modify core functionality. 2019-10-29 00:15:19 -04:00
.project Build project to git repo 2019-10-29 01:19:54 -04:00
LICENSE Add last name 2019-10-29 00:12:06 -04:00
README.md Write basic readme with basic example usage 2019-10-29 01:19:13 -04:00
library.properties Create eclipse project for building jar of library. IDE is showing lots of errors. Will have to modify core functionality. 2019-10-29 00:15:19 -04:00

README.md

soundtrack.optical

Library for generating 16mm optical soundtracks with Processing.

Install library by downloading library as .zip, uncompressing and placing SoundtrackOptical in your Processing library directory. Start up (or restart) Processing to use in a sketch.

Supports mono audio only (at the moment, feel free to contribute).

Draws various kids of 16mm soundtracks. Read about them here..

  • unilateral
  • dual unilateral (in progress!)
  • single variable area
  • dual variable area
  • multiple variable area (Maurer)

Example Usage

import processing.sound.*;
import soundtrack.optical.*;

SoundtrackOptical soundtrack;

String soundtrackFile = "./data/barking.wav";
int dpi = 2400;
float volume = 1.0;
String type = "dual variable area";
String pitch = "long";
boolean positive = true;

void setup() {
  size(213, 620);
  frameRate(24);
  soundtrack = new SoundtrackOptical(this, soundtrackFile, dpi, volume, type, pitch, positive);
}

void draw () {
  soundtrack.frame(0, 0);
}