Permalink
Browse files

add note to readme

  • Loading branch information...
hecanjog committed Nov 27, 2018
1 parent 8a8f2b2 commit 4725ef5bb4188946eb951bbfca033a712b16b0d1
Showing with 578 additions and 466 deletions.
  1. +8 −0 README.md
  2. +3 −3 pippi/defaults.c
  3. +206 −219 pippi/dsp.c
  4. +7 −7 pippi/dsp.pyx
  5. +3 −3 pippi/fx.c
  6. +27 −0 pippi/grains.c
  7. +3 −6 pippi/graph.c
  8. +27 −0 pippi/oscs.c
  9. +3 −6 pippi/sampler.c
  10. +46 −4 pippi/soundpipe.c
  11. +245 −218 pippi/wavetables.c
@@ -2,6 +2,14 @@
v2.0.0 - Beta 4 (In Development)
## What is this?
This is the python library that [I use to write music](http://hecanjog.com). I think python is a wonderful language for music.
I try to make the API for this library as nice to use as the language itself; which I consider to be a very comfortable
environment that lets me think about the composition I'm working on more than its fiddly implementation bits.
I hope this library can be useful for your creative projects too.
## Installation and setup
Pippi requires python 3.6+ which can be found here:

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -144,14 +144,14 @@ def join(sounds, overlap=None, channels=None, samplerate=None):
cpdef SoundBuffer buffer(object frames=None, double length=-1, int channels=2, int samplerate=44100):
return SoundBuffer.__new__(SoundBuffer, frames=frames, length=length, channels=channels, samplerate=samplerate)
def read(frames, channels=2, samplerate=44100):
""" Read a soundfile from disk and return a `SoundBuffer` with its contents
Equiv to `snd = SoundBuffer(filename)`
"""
if isinstance(frames, str):
return SoundBuffer(filename=frames, channels=channels, samplerate=samplerate)
cpdef SoundBuffer read(object filename, double length=-1, double start=0):
""" Read a soundfile from disk and return a `SoundBuffer` with its contents.
May include a start position and length in seconds to read a segment from a large file.
return SoundBuffer(frames, channels=channels, samplerate=samplerate)
The `filename` param is always converted to a string, so it is safe to pass a
`Path` instance from the standard library `pathlib` module.
"""
return SoundBuffer(filename=str(filename), length=length, start=start)
cpdef double rand(double low=0, double high=1):
return _rand.rand(low, high)

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit 4725ef5

Please sign in to comment.