stringsynth
index
/home/zelle/Dropbox/classes/cs220/projects/audio/songplayer/stringsynth.py
# stringsynth.py
# synthesizer use Karplus-Strong algorithm
Classes
builtins.object
StringSynth
class
StringSynth
(
builtins.object
)
StringSynth
(volume=100, loopgain=0.99)
Methods defined here:
__init__
(self, volume=100, loopgain=0.99)
Initialize self. See help(type(self)) for accurate signature.
set_loopgain
(self, factor)
set_volume
(self, volume)
synthesize
(self, freq, duration)
Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)
Functions
random
()
method of
random.Random
instance
random
() -> x in the interval [0, 1).