| |
- boodle.BoodlerError(exceptions.Exception)
-
- SampleError
- MixIn
- Sample
-
- MixinSample
- SampleLoader
-
- AifcLoader
- MixinLoader
- SunAuLoader
- WavLoader
class AifcLoader(SampleLoader) |
| |
Methods defined here:
- raw_load(self, filename, csamp)
Data and other attributes defined here:
- suffixlist = ['.aifc', '.aiff', '.aif']
Methods inherited from SampleLoader:
- __init__(self)
- load(self, filename, suffix)
- register_suffixes(self)
- reload(self, samp)
Data and other attributes inherited from SampleLoader:
- suffixmap = {'.aif': <boodle.sample.AifcLoader instance>, '.aifc': <boodle.sample.AifcLoader instance>, '.aiff': <boodle.sample.AifcLoader instance>, '.au': <boodle.sample.SunAuLoader instance>, '.mixin': <boodle.sample.MixinLoader instance>, '.wav': <boodle.sample.WavLoader instance>}
|
class MixIn |
|
MixIn: base class for statically declared mix-in samples.
To use this, declare a construct:
class your_sample_name(MixIn):
ranges = [
MixIn.range(...),
MixIn.range(...),
MixIn.range(...),
]
default = MixIn.default(...)
A range declaration looks like
MixIn.range(maxval, sample)
or
MixIn.range(minval, maxval, sample)
or
MixIn.range(minval, maxval, sample, pitch=1.0, volume=1.0)
If you don't give a minval, the maxval of the previous range is used.
You may use the constants MixIn.MIN and MixIn.MAX to represent the
limits of the range. The pitch and volume arguments are optional.
A default declaration looks like
MixIn.default(sample)
or
MixIn.default(sample, pitch=1.0, volume=1.0)
The default declaration is option. (As are, again, the pitch and
volume arguments.)
When your declaration is complete, your_sample_name will magically
be a MixinSample instance (not a class). |
|
Static methods defined here:
- __class__(name, bases, dic)
- default(samp, pitch=None, volume=None)
- sort_mixin_ranges(ranges)
Data and other attributes defined here:
- MAX = 1000000.0
- MIN = 0.0
- range = <class boodle.sample.range>
|
class MixinLoader(SampleLoader) |
| |
Methods defined here:
- load(self, filename, suffix)
- parseparam(self, filename, dirname, tok)
- reload(self, samp)
Data and other attributes defined here:
- suffixlist = ['.mixin']
Methods inherited from SampleLoader:
- __init__(self)
- register_suffixes(self)
Data and other attributes inherited from SampleLoader:
- suffixmap = {'.aif': <boodle.sample.AifcLoader instance>, '.aifc': <boodle.sample.AifcLoader instance>, '.aiff': <boodle.sample.AifcLoader instance>, '.au': <boodle.sample.SunAuLoader instance>, '.mixin': <boodle.sample.MixinLoader instance>, '.wav': <boodle.sample.WavLoader instance>}
|
class MixinSample(Sample) |
| |
Methods defined here:
- __init__(self, filename, ranges, default, modname=None)
- find(self, pitch)
- get_info(self, pitch=1.0)
- queue_note(self, pitch, volume, pan, starttime, chan)
- queue_note_duration(self, pitch, volume, pan, starttime, duration, chan)
Methods inherited from Sample:
- __repr__(self)
Data and other attributes inherited from Sample:
- reloader = None
|
class Sample |
|
Sample: represents a sound file, held in memory.
This is really just a container for a native object (csamp), which
is used by the cboodle native module. Samples may only be created
by the SampleLoader classes in this module. |
|
Methods defined here:
- __init__(self, filename, csamp)
- __repr__(self)
- get_info(self, pitch=1.0)
- queue_note(self, pitch, volume, pan, starttime, chan)
- queue_note_duration(self, pitch, volume, pan, starttime, duration, chan)
Data and other attributes defined here:
- reloader = None
|
class SampleLoader |
|
SampleLoader: Base class for the facility to load a particular
form of sound sample from a file.
Subclasses of this are defined and instantiated later in the module. |
|
Methods defined here:
- __init__(self)
- load(self, filename, suffix)
- register_suffixes(self)
- reload(self, samp)
Data and other attributes defined here:
- suffixmap = {'.aif': <boodle.sample.AifcLoader instance>, '.aifc': <boodle.sample.AifcLoader instance>, '.aiff': <boodle.sample.AifcLoader instance>, '.au': <boodle.sample.SunAuLoader instance>, '.mixin': <boodle.sample.MixinLoader instance>, '.wav': <boodle.sample.WavLoader instance>}
|
class SunAuLoader(SampleLoader) |
| |
Methods defined here:
- raw_load(self, filename, csamp)
Data and other attributes defined here:
- suffixlist = ['.au']
Methods inherited from SampleLoader:
- __init__(self)
- load(self, filename, suffix)
- register_suffixes(self)
- reload(self, samp)
Data and other attributes inherited from SampleLoader:
- suffixmap = {'.aif': <boodle.sample.AifcLoader instance>, '.aifc': <boodle.sample.AifcLoader instance>, '.aiff': <boodle.sample.AifcLoader instance>, '.au': <boodle.sample.SunAuLoader instance>, '.mixin': <boodle.sample.MixinLoader instance>, '.wav': <boodle.sample.WavLoader instance>}
|
class WavLoader(SampleLoader) |
| |
Methods defined here:
- raw_load(self, filename, csamp)
Data and other attributes defined here:
- suffixlist = ['.wav']
Methods inherited from SampleLoader:
- __init__(self)
- load(self, filename, suffix)
- register_suffixes(self)
- reload(self, samp)
Data and other attributes inherited from SampleLoader:
- suffixmap = {'.aif': <boodle.sample.AifcLoader instance>, '.aifc': <boodle.sample.AifcLoader instance>, '.aiff': <boodle.sample.AifcLoader instance>, '.au': <boodle.sample.SunAuLoader instance>, '.mixin': <boodle.sample.MixinLoader instance>, '.wav': <boodle.sample.WavLoader instance>}
| |