Package cs :: Module csMessages :: Class CsoundMessages
[hide private]
[frames] | no frames]

Class CsoundMessages

source code

This class handles all communication between Python and the csound instance.

Instance Methods [hide private]
 
__init__(self, csound, performanceThread)
Class constructor.
source code
 
csoundInputMessage(self, message)
Delivers a message directly to Csound.
source code
 
getCsoundBusChannels(self)
Returns a list of all allocated bus channels between Python and Csound.
source code
 
listCsoundBusChannels(self)
Prints a list of all allocated bus channels between python and csound.
source code
 
getChnValue(self, name)
Get the value stored in a csound chn channel
source code
 
sendControlToCsound(self, channelName, value)
Send a control value to csound, using the software bus and chn opcode in csound.
source code
 
sendControlToCsound_(self, channelNameAndValue)
Wrapper for self.sendControlToCsound(), using channels name and value as a list.
source code
Method Details [hide private]

__init__(self, csound, performanceThread)
(Constructor)

source code 
Class constructor.
Parameters:
  • self - The object pointer.
  • csound - Instance of Csound interface object.

csoundInputMessage(self, message)

source code 
Delivers a message directly to Csound. Wrapper for csound InputMessage.
Parameters:
  • self - The object pointer.
  • message - The Csound message to be delivered.

getCsoundBusChannels(self)

source code 
Returns a list of all allocated bus channels between Python and Csound.
Parameters:
  • self - The object pointer.
Returns:
Channel list.

listCsoundBusChannels(self)

source code 
Prints a list of all allocated bus channels between python and csound.
Parameters:
  • self - The object pointer.

getChnValue(self, name)

source code 
Get the value stored in a csound chn channel
Parameters:
  • self - The object pointer.
  • name - The name of the channel to be interrogated.
Returns:
The value of the channel

sendControlToCsound(self, channelName, value)

source code 
Send a control value to csound, using the software bus and chn opcode in csound.
Parameters:
  • self - The object pointer.
  • channelName - Channel name.
  • value - The value to be sent to the designated channel.

sendControlToCsound_(self, channelNameAndValue)

source code 
Wrapper for self.sendControlToCsound(), using channels name and value as a list.
Parameters:
  • self - The object pointer.
  • channelNameAndValue - Channel name and value as a list.