def PySCA_InitializeClipControl(self):
     self.writer = libInterprocessCommsAPIPython.SCARetrieveWriterObject(
         libInterprocessCommsAPIPython.kAbletonClipControlCommunicationPath)
     self.writer_events = libInterprocessCommsAPIPython.SCAGetEventQueue(
         self.writer,
         libInterprocessCommsAPIPython.SCAGetAtomRef(
             self.writer,
             libInterprocessCommsAPIPython.kAbletonClipAndDeviceEventQueue))
     self.writer_clip_control_atom = libInterprocessCommsAPIPython.SCAGetAtomRef(
         self.writer, libInterprocessCommsAPIPython.kAbletonClipControl)
 def PySCA_InitializeIncomingPath(self):
     self.reader = libInterprocessCommsAPIPython.SCARetrieveReaderObject(
         libInterprocessCommsAPIPython.kSeratoToAbletonCommunicationPath)
     self.reader_events = libInterprocessCommsAPIPython.SCAGetEventQueue(
         self.reader,
         libInterprocessCommsAPIPython.SCAGetAtomRef(
             self.reader, libInterprocessCommsAPIPython.
             kSeratoAbletonClipAndDeviceEventQueue))
示例#3
0
 def PySCA_SetShMemDeviceIndexVariableState(self, int_value, key_name,
                                            event_name):
     if self.writer and self.writer_events:
         atom = libInterprocessCommsAPIPython.SCAGetAtomRef(
             self.writer, key_name)
         libInterprocessCommsAPIPython.SCASetIntValue(
             self.writer, atom, int_value)
         if event_name:
             libInterprocessCommsAPIPython.SCAEventsWriteEvent(
                 self.writer_events, event_name, 0, 0, 0, None)
示例#4
0
 def PySCA_SetShMemDeviceLabelVariableState(self, label, max_length,
                                            key_name, event_name):
     if self.writer and self.writer_events:
         atom = libInterprocessCommsAPIPython.SCAGetAtomRef(
             self.writer, key_name)
         result = libInterprocessCommsAPIPython.SCASetDataValue(
             self.writer, atom, label, max_length)
         if event_name and result == 0:
             libInterprocessCommsAPIPython.SCAEventsWriteEvent(
                 self.writer_events, event_name, 0, 0, 0, None)