chaudio.track module

Musical Track (chaudio.track)

class chaudio.track.Note(offset=(0, 0), freq='A4', t=1, **kwargs)[source]

Bases: object

__init__(offset=(0, 0), freq='A4', t=1, **kwargs)[source]
get_freq()[source]
set_freq(freq)[source]
freq
__str__()[source]
__repr__()
__dict__ = mappingproxy({'__repr__': <function Note.__str__>, '__weakref__': <attribute '__weakref__' of 'Note' objects>, 'set_freq': <function Note.set_freq>, '__str__': <function Note.__str__>, 'get_freq': <function Note.get_freq>, 'freq': <property object>, '__dict__': <attribute '__dict__' of 'Note' objects>, '__init__': <function Note.__init__>, '__doc__': None, '__module__': 'chaudio.track'})
__module__ = 'chaudio.track'
__weakref__

list of weak references to the object (if defined)

class chaudio.track.Track(notes=None, timesignature=None)[source]

Bases: object

__init__(notes=None, timesignature=None)[source]
copy()[source]
add_note(*args, **kwargs)[source]
play(instrument)[source]
shift(offset=(0, 0))[source]
__dict__ = mappingproxy({'copy': <function Track.copy>, 'scale': <function Track.scale>, 'add_note': <function Track.add_note>, '__str__': <function Track.__str__>, '__dict__': <attribute '__dict__' of 'Track' objects>, '__init__': <function Track.__init__>, '__doc__': None, '__module__': 'chaudio.track', 'play': <function Track.play>, '__weakref__': <attribute '__weakref__' of 'Track' objects>, 'shift': <function Track.shift>})
__module__ = 'chaudio.track'
__weakref__

list of weak references to the object (if defined)

scale(speed=1.0)[source]
__str__()[source]