Package PMIDI :: Module Composer :: Class Sequencer
[show private | hide private]
[frames | no frames]

Type Sequencer

object --+
         |
        Sequencer


Class the encapsulates the functions necessary to generate and play short MIDI sequences.
Method Summary
  __init__(self, device)
  Close(self)
Close the open MIDI stream.
Song NewSong(self)
Create a new song, store it, and return a reference.
  Pause(self)
Pause a currently playing song.
  Play(self, song)
Play a song.
  Sequence(self)
Convert the currently held song into a sequence of MIDI commands.
  Stop(self)
Stop a currently playing song.
  Unpause(self)
Pause a currently playing song.
Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Instance Variable Summary
list of integer seq: Last sequenced song
Song song: Current song
integer stream: MIDI stream handle (opaque)

Method Details

Close(self)

Close the open MIDI stream. Call this before destroying the object.

NewSong(self)

Create a new song, store it, and return a reference.
Returns:
The new song
           (type=Song)

Pause(self)

Pause a currently playing song.

Play(self, song=None)

Play a song.
Parameters:
song - Song to play. Play the currently held song if None.
           (type=Song)

Sequence(self)

Convert the currently held song into a sequence of MIDI commands.

Stop(self)

Stop a currently playing song.

Unpause(self)

Pause a currently playing song.

Instance Variable Details

seq

Last sequenced song
Type:
list of integer

song

Current song
Type:
Song

stream

MIDI stream handle (opaque)
Type:
integer

Generated by Epydoc 2.1 on Tue Feb 22 16:24:34 2005 http://epydoc.sf.net