[ecasound] python lists working!

New Message Reply Date view Thread view Subject view Author view Other groups

Subject: [ecasound] python lists working!
From: Kai Vehmanen (k@eca.cx)
Date: Wed Dec 06 2000 - 03:37:16 EET


Now, don't worry, I'm not going to post about _every_ new feature :), but
I thought this is worth mentioning. Among the last missing
"links" was mapping from C++ STL vectors to python lists. But, but,
doesn't seem to be a problem:

--cut--
>>> b = pyeca.ECA_CONTROL_INTERFACE()
ECI: pyeca_control_new, C++ constructor
>>> b.command("cs-add jep")
(eca-controller) Selected chainsetup: "jep".
(eca-controller) Added a new chainsetup with name "jep".
>>> b.command("c-add 1,2,3")
(eca-controller) Added chains: 1, 2, 3.
>>> b.command("c-add 1,2,3")
(eca-controller) Added chains: 1, 2, 3.
>>> b.command("c-select-all")
(eca-controller) Selected chains: default, 1, 2, 3.
>>> b.command("c-selected")
>>> print b.last_list_of_strings()
['default', '1', '2', '3']
--cut--

-- 
 . http://www.eca.cx ... [ audio software for linux ] /\ . 
 . http://www.eca.cx/aivastus ... [ aivastus net radio ] /\ . 

-- To unsubscribe send message 'unsubscribe' in the body of the message to <ecasound-list-request@wakkanet.fi>.


New Message Reply Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Wed Dec 06 2000 - 02:46:14 EET