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

Type CommandFactory

object --+
         |
        CommandFactory


Factory class that generates MIDI commands from simple values.
Method Summary
  MIDINote(self, attack, pitch, channel)
Classmethod. (Class method)
  MIDITempo(self, val)
Classmethod. (Class method)
  MIDIVoice(self, instrument, channel)
Classmethod. (Class method)
Inherited from object: __init__, __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Class Method Details

MIDINote(self, attack, pitch, channel)

Classmethod. Create a MIDI note on/off command.
Parameters:
attack - Note attack value (0-127)
           (type=integer)
pitch - Note pitch value (0-127)
           (type=integer)
channel - Channel to sound note (0-15)
           (type=integer)

MIDITempo(self, val)

Classmethod. Create a MIDI tempo command.
Parameters:
val - The tempo in beats per minute (bpm)
           (type=integer)

MIDIVoice(self, instrument, channel)

Classmethod. Create a MIDI change program command.
Parameters:
instrument - The program number of the instrument (0-127)
           (type=integer)
channel - Channel to associate instrument with
           (type=integer)

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