Package toon :: Module sampler :: Class Mapper
[hide private]
[frames] | no frames]

Class Mapper

source code

object --+
         |
        Mapper

Maps clip numbers, frame numbers to sound index.

Instance Methods [hide private]
 
__init__(self, num_clips=10, max_num_frames=4000, num_sounds=500)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
add(self, clip_id, frame_id)
Adds a sounds in the given clip, frame slot.
source code
 
get(self, clip_id, frame_id) source code
 
get_data(self) source code
 
set_data(self, data) source code
 
remove(self, clip_id, frame_id)
Clears a sound from a given clip, frame slot.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, num_clips=10, max_num_frames=4000, num_sounds=500)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

remove(self, clip_id, frame_id)

source code 

Clears a sound from a given clip, frame slot. :return: buffer id