Package toon :: Module opensoundcontrol :: Class ToonOsc
[hide private]
[frames] | no frames]

Class ToonOsc

source code

object --+
         |
        ToonOsc


OSC callbacks and sends for Toonloop

== Sends: ==
 * /toon/frame <i>
 * /toon/sequence <i>
 * /toon/framerate <i>
 * /toon/writehead <i>
 * /sampler/play/start <i>
 * /sampler/play/stop <i>
 * /sampler/record/start <i>
 * /sampler/record/stop <i>

== Receives: ==
 * /toon/frame/remove
 * /toon/frame/add
 * /toon/osc/subscribe <s> <i>
 * /toon/clip/select <i>

Instance Methods [hide private]
 
__init__(self, toonloop, listen_port=7772, send_port=7770, send_host='localhost')
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__del__(self) source code
 
_setup(self)
Starts the server and registers the callbacks.
source code
 
_slot_playhead(self, index)
Slot which listens or a Toonloop's signal :param index: int frame index
source code
 
_slot_writehead(self, index)
Slot which listens for a Toonloop's signal :param index: int frame index
source code
 
_slot_framerate(self, fps)
Slot which listens for a Toonloop's signal :param fps: int fps
source code
 
_slot_clip(self, index)
Slot which listens for a Toonloop's signal :param index: int clip number
source code
 
send_sampler_record_start(self, buffer_index) source code
 
send_sampler_record_stop(self, index) source code
 
send_sampler_clear(self, index) source code
 
send_sampler_play_start(self, player_id, buffer_id) source code
 
send_sampler_play_stop(self, index) source code
 
_s(self, path, index)
wrapper for sending a osc message with an int arg.
source code
 
_r_frame_add(self, path, args) source code
 
_r_pause(self, path, args) source code
 
_r_config_set(self, path, args) source code
 
_r_clip_select(self, path, args) source code
 
_r_clip_reset(self, path, args) source code
 
_r_framerate_increase(self, path, args) source code
 
_r_clip_save(self, path, args) source code
 
_r_quit(self, path, args) source code
 
_r_print_stats(self, path, args) source code
 
_r_frame_remove(self, path, args) source code
 
_r_osc_subscribe(self, path, args) source code
 
_r_ping(self, path, args) source code
 
_r_pong(self, path, args) source code
 
_r_fallback(self, path, args, types, src) 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, toonloop, listen_port=7772, send_port=7770, send_host='localhost')
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)