posted by rooker (rooker)
on 29.08.2007 16:45
attachment: Sampler_40h.tar.bz2 (2,6 KB)
Attached is the current as-is (aka: "works on my machine") version of my
sample-playing PD patch.

== Features ==
This patch loads up to 24 samples (3 rows) and allows playback of only
one at a time. The current playback position is displayed in the second
row and one can jump to a position within the current sample by pressing
a button in this row.

Why only 1 sample? Because I needed a set of more than 8 samples without
having to reload anything or do bank-switching.

upper row: the 1st and 2nd button are for start/stop.
second row: display and modify the current playing position.
Third row: Displays how often the current sample has already been
looped.

last 3 rows: The samples.


== The patch ==
- sampler_40h.pd: this is the main patch. It has several subpatches:

- samples: sample handling.
Change "makefilename timecrisis/%s" to "makefilename "xxx/%s" in order
to load samples from the subdirectory "xxx". They *must* be named 1.wav,
2.wav, ... Sorry, but I couldn't figure out how to do simple string
stuff in PD.

- samplepos
Takes care of processing playback information for the 40h (calculate
position, do some blinking, etc...)

- OSCplumbing:
Taking care of some OSC communication (This was taken from the
pd-example sequencer). Change your OSC settings in here if necessary.
Currently it's set to connect to localhost - default ports (8080, 8000).



Sorry for the short "manual" and the ugly patch, but I had to get this
thing done fast. :)