Been playing with a band for a while but been encouraged to start a solo project. here's a first track sequenced live on PD with a novation launchpad.
Makes heavy use of samples, beat cutting and of course my recently released minimoog style synth
programmed via OSC.
After reading this article
I decided to create my own bandlimited signal generator.
This external generates square, triangle saw, reverse saw and saw-triangle waves band limited to the nyquist limit.
In order to conserve CPU usage it uses a series of wavetables. Because of this it might take a little while (a few seconds) to load up the first instance.
The easiest way to use it is to add the bandlimited folder to your path. But you can also use it like this:
as long as the bandlimited folder is placed into a folder already in the path (ex: ~/Library/Pd on OS X)
There are wrapper abstractions for each waveform type (bl.saw~, bl.tri~, bl.rsaw~, bl.sawtri~, bl.sq~]
Start by taking a look at bandlimited~-help.pd
The object should act a lot like [osc~] and [phasor~]. The first signal inlet controls the frequency while the second float inlet sets the phase and it takes a creation argument for the starting frequency. There are three methods but I'll let the help file explain.
There should already be a win32 dll build and an OS 10.5 build. I'm sure linux folk can take care of themselves in this regard. Tested on PD-Extended 0.41
There's a repository here
I plan on adding more waveforms and am taking suggestions.
Version v0.92 includes a new waveform, pulse. This wave form is a lot like a square wave but with a variable duty cycle (it's not symmetric). This new parameter is set by a third signal inlet whose value should be between 0 and 1. 0.5 would give you a square wave.
Version v0.91 includes new method "approximate" which uses the CPU a little less for a close enough waveform.
After a year of off again on again work I finally finished a virtual minimoog in PD. It's pretty close to the real thing. It doesn't do the low frequency rhythmic clicks and I guessed the proportions on L and K, but it works well enough.
Requires PD-Extended 0.41, check out INSTALL for instructions.
It requires muug~ http://puredata.hurleur.com/viewtopic.php?pid=17403#p17403 which is included in this zip in a folder named extra-externals (binaries for Windows and OS 10.5 already compiled). In extra-externals there is also a popup.dll. I found that popup does not work properly in windows and made a fix for it. I submitted it here:
But I included my fix here anyway. It was compiled with MinGW. First see if your version of popup exhibits this error:
error: popup0xa4fda0: no such object
while attempting to select an item from the list. If so replace it with the provided dll. It should be in the PD folder under extra/flatspace
It uses OSC instead of midi but there is a midi to osc interpreter. There's also a computer keyboard to osc interpreter but it doesn't work very well.
Check out minimoog-hep.pd
You can load more than one minimoog at a time but you'll have to use different OSC ports for each instance.
Thoroughly tested in OS X. Quickly tested in Windows and Linux. In Linux it tends to crash PD when closing the patch.
I made a repository for it here
So if you'd like to include some changes let me know.
Latest version here
v0.92 - Added antialias option before filter.
v0.91 - fixed some issues with OSC and FUDI
Recently a student of mine created a sampler that loads files from disc but had issues with the long pauses on synthesis caused by loading the files through soundfiler. Having the same problems myself as well as noticing others commenting about this around here I've decided to do something about it.
I give you samplemap. Basically it maps file names to arrays so that a file is loaded only once. To install copy the samplemap folder (not its content) onto a folder in PD's path. First check out help.pd for a general overview and then try out help-example.pd for a practical example.
Samplemap works through the abstraction [samplemap/load]. This abstraction receives through its inlet a filename and returns an array name through its outlet. In between it communicates with [samplemap/samplemap-int] which is opened only once and should not be closed (you don't need to open it, [samplemap/load] takes chare of that). samplemap-int checks to see if the file was already loaded, if so it returns the array names in a list (one per channel), if not it loads all the channels through [soundfiler] onto dynamically created arrays and returns a list of those array names.
There's also a [samplemap/loadfolder] abstraction that loads all wav files in a folder. It is not recursive.
help-example.pd shows you how to set up your patches to pre-load wav files.
I've tested it on a Windows and Mac boxes. Works only with WAV files. Uses Jack/RYBN 2009 patch that concats a list onto a single symbol with spaces, so folders and files with spaces in them work ok.
transcomp~ uses transdetect~ to shape the initial attack and release of a signal.
Requires IEM's FIR~, fexpr~ and dbtorms~ which are provided in PD-Extended.
To work properly the transdetect folder should be added to PD's path.
Start by opening help-transcomp~.pd
transdetect~ works by using two pairs of envelope followers. The first pair
subtracts an envelope follower with a slow attack from an accurate follower,
the result of which is a signal containing the initial attack. For the initial
release, the second pair subtracts an accurate envelope follower from one with
a slow release.
An envelope follower measures the mean square power of a signal over time
(see 3.audio.examples/H06.envelope.follower.pd for details on implementing an
envelope follower). To do this we must use a low pass filter at a very low
frequency. In order to achieve an accurate follower a linear phase FIR filter
was used (using IEM's FIR~ external). Unfortunately this introduces a phase
In order to facilitate the use of different envelope follower implementations,
transdetect~ requires a filter type as a creation argument implemented in
followernameTransDetectEF~.pd. 4 linear phase fir implementations are provided:
181, 251, 451 and 501 taps filters. The 501 taps filter provides the most
accurate filter but with a phase delay of 5.668 ms at 44.1kHz (raise the
sampling rate to lower the phase delay). They were all generating using
http://www.dsptutor.freeuk.com/FIRFilterDesign/FIRFiltDes102.html with a
cutoff frequency between 5 and 10 Hz.
A compromise between accuracy and phase delay might be achieved by using
minimum phase FIR filters. A 5th implementation using PD's native lop~ object
is also provided under the designation iir (FIR~ not required).
Along with different possible envelope follower implementation transdetect~
also requires an attack and hold type implemented in
attacknameTransDetectAttackShape~.pd and holdnameTransDetectHoldShape~.pd
respectively. These implementations dictate the kind of attack and release
curves used on the envelope followers (linear, slow[er|est] and fast[er|est]).
All implementations provided use fexpr~. A more efficient external could be
made to take fexpr~ place.
In help-transcomp~.pd patch enable start and pay attention to the snap in the
hit. Disable the green toggle button to disable the compression make the snap
go away. Check out the tables on the left to see the results of the transient
transcomp~ is useful when used with recorded drums to maximize or minimize
its transient (to make it punchier or to make snare drums less clappy).
transcomp~ uses transdetect~. By itself transdetect~ can be used to synthesis
hits from a recording. For example, take a bass drum recording and use the
signals generated by transdetect~ to shape the frequency and envelope of a
synthesized kick drum.
Would love to have some feedback and some help in turning the linear phase filters into minimum phase filters.
This came about the discussion on topic http://puredata.hurleur.com/viewtopic.php?pid=10547
It's an example of waveshaping with attack and release settings. Could be made better by using tabsend~ and tabread~ but I'm not sure how to make the phasor~ work in phase with the block size.
table waveshape holds the distortion table, and table distortion is what is actually used to shape the signal. What's in waveshape is mixed with a linear signal in accordance with the attack and release settings.