v2.0.0 - Alpha 8
Pippi requires python 3 which can be found here:
https://www.python.org/downloads/
I'm just testing against the latest stable version (currently 3.6.2) at the moment.
I recommend you install pippi and work from a python virtualenv, which is built into the standard library in recent versions of python.
Create a virtualenv in a directory called venv with python 3.6+:
python3 -m venv venv
Activate the virtualenv:
source venv/bin/activate
To use the most recent release from pip, just:
pip install pippi
...from inside your virtualenv.
Or to install the most recent development version, clone this repo
and install with the -e / 'editable' option. (Also note the . pointing to the current working directory.)
pip install -e .
Pippi uses numpy, pysndfile, and Cython which all
may create installation roadbumps depending on your platform.
If you're lucky, the above command ran without errors and you're good to go!
Otherwise, if there was a problem installing numpy please check out
this page for more information about how to install it on your platform:
https://www.scipy.org/scipylib/download.html
If there was a problem installing pysndfile you likely just need to install
the library it wraps, libsndfile.
On linux, you should be able to find libsndfile in your distro's package manager.
If you're on a mac, it looks like it can be installed with homebrew:
http://brewformulas.org/Libsndfile
On windows, Erik de Castro Lopo provides an installer on the libsndfile page:
http://www.mega-nerd.com/libsndfile/#Download
If you have trouble compiling the Cython parts of pippi, you may need to install the python development headers, and/or build tools for your system. More here:
http://docs.cython.org/en/latest/src/quickstart/install.html
Please let me know if you run into problems!
cd examples
python multi_snare_bounce.py
Which will produce a WAV file named multi_snare_bounce_example.wav in the examples directory.
There are more examples, give em a whirl, and try your own. (And let me know when things break please!)
make test
Final (probably) feature releases / big api changes before going to beta.
- Breaking API changes:
- Durations for most APIs are now given in seconds (floats) rather than
integer frames.
len(SoundBuffer)still returns a length in frames per python convention, and slicing into aSoundBufferis also still done by frame (and channel) but there is a newSoundBuffer.durproperty to get duration in seconds as well. - Wavetables are no longer specified with string names, instead built-in
flags which are available on both the
wavetableanddspmodules are used. Eg to apply a sinewave envelop:sound.env(dsp.SINE)instead ofsound.env('sine'). The wavetypes available areSINE,COS,TRI,SAW(which is also aliased toPHASOR),RSAW(reverse sawtooth),HANN,HAMM,BLACKorBLACKMAN,BARTorBARTLETT,KAISER,SQUARE, and theRNDflag to select one at random.
- Durations for most APIs are now given in seconds (floats) rather than
integer frames.
- New
GrainCloudwavetable-driven granulator. See theexamples/swarmy_graincloud.pyexample for more. GrainCloud-driven pitch shift without time change (sound.transpose(speed)) and time stretch without pitch shift (sound.stretch(length)) methods forSoundBuffer.dsp.cloud(SoundBuffer, *args, **kwargs)shortcut forGrainCloudcreation.- Added 2d wavetable synthesis (similar to max/msp
2d.wave~) toOscplus example script - Read wavetables from 1 channel sound files with
wavetables.fromfile - Added a helper for async rendering with
multiprocessing.Pool SoundBuffers can now be pickled (enables passing them between processes)SoundBuffercan be initialized (and spread across channels) from a normal python list
This was meant to be a feature-only release, to add the final round of features before going into beta / bugfix mode. Instead I switched from using numpy arrays directly to a first pass of a more general typed memoryview approach, and moved some more things into cython.
Also, hoo boy was pip install pippi ever broken.
It should be working now.
Bugfix release. Fixed an idiotic regression in SoundBuffer.
New in alpha 4:
- More speed improvements!
- Linear interpolation option for pitch shifting
- Pulsar synthesis with
Osc - Support for importing Scala
.scltuning files (Mapping file support coming later...) - Waveform visualization with
graph.waveform SoundBuffer.fillreturns a copy of the sound instead of altering it in placeSamplerabstraction forOsc-like treatment of samples and banks of samples
Optimizations and improvements in this release:
- Much better performance for wavetable and granular synthesis
- Improvements and additions to the
rhythmmodules- Better handling of
rhythm.curvewhich now takes a length param instead of an obscure combination of multipliers rhythm.curvecan now be provided a custom wavetable- Added MPC swing helper for onset lists (via
rhythm.swing) - Added a euclidean rhythm generator
rhythm.eu - Added a pattern generation helper
rhythm.pattern - Added pattern-to-onset and string-to-pattern helpers
- Patterns are the same as pippi 1 (I may even just port some code) and can be in a few forms:
- String literals with ascii notation eg: 'xx x- x' which is the same as 'xx.x-.x'
- Lists of 'truthy' and 'falsey' values eg: ['1', True, 0, False] which is the same as 'xx..'
- Patterns are the same as pippi 1 (I may even just port some code) and can be in a few forms:
- Better handling of
- Misc bugfixes:
- Fix
randomparam forwavetable.windowandwavetable.window - Fix bad params for
wavetable.windowandwavetable.window-- falls back to sine in both cases
- Fix
This release includes a few missing pieces to core functionality including:
- A crude squarewave wavetype for the wavetable osc!
- Custom wavetables for the wavetable osc and window/wavetable generators!
See the
simple_custom_wavetable.pyexample for use with the wavetable osc. - A simple non-interpolating
speedmethod onSoundBufferfor pitch shifting sounds - A set of rhythm helpers in the
rhythmmodule useful for constructing onset / timing lists.rhythm.curvewhich lets you map any of the window types to a list of onsets -- check out thesimple_snare_bounce.pyexample in the examples directory.
- Some more example scripts including:
simple_snare_bounce.pyDemoing therhythm.curvehelpermulti_snare_bounce.pyA more interesting variation on the snare bounce examplesimple_custom_wavetable.pyShowing a user-defined wavetable used withOscsynth_chords.pyUsing thetunemodule withOscto create a simple chord progression
This is the initial alpha release of pippi 2 -- which is very barebones at the moment, but already pretty functional!
Beware: the behavior of core functionality and features will probably change throughout the alpha releases of pippi 2. I'll try to document it here in the release notes.
This release provides:
- SoundBuffer abstraction for reading/writing soundfiles and doing basic operations on sounds.
- Osc abstraction for simple wavetable synthesis.
- Initial set of built-in wavetables for windowing (sine, triangle, saw, inverse saw) and synthesis (sine, cosine, triangle, saw inverse saw)
- Set of panning algorithms and other built-in sound operations like addition, subtraction,
multiplication, mixing (and operater-overloaded mixing via
sound &= sound), dubbing, concatenation. - A small set of helpers and shortcuts via the
dspmodule for loading, mixing, and concatenating (viadsp.join) sounds. - Basic granular synthesis and wavetable synthesis examples.
Some basic things from pippi 1 that are still missing (and coming very soon!):
- Pitch shifting sounds
- Square and impulse wavetables for windowing and synthesis
- Using arbitrary wavetables for windowing and synthesis
Bigger things from pippi 1 that are still missing:
- Pulsar synthesis
- The interactive / live mode and console which includes stuff like
- MIDI support
- Voice handling
- Live code reloading
I'm excited to revisit the interactive console especially, and I'm looking into some cool stuff like using pippi instruments as generators to feed into sound streams, which should hopefully overcome some awkwardness of treating pippi 1 instruments like streams.