ctcsound
Date | 2016-07-24 13:44 |
From | Mitch Kaufman |
Subject | ctcsound |
Hi, I tried to import the latest version of ctcsound in the Jupyter notebook and I received the following error: AttributeError Traceback (most recent call last) <ipython-input-1-b46b98f49e5f> in <module>() ----> 1 import ctcsound /home/mitch/anaconda3/lib/python3.5/site-packages/ctcsound.py in <module>() 353 libcsound.csoundGetTable.argtypes = [c_void_p, POINTER(POINTER(MYFLT)), c_int] 354 libcsound.csoundGetTableArgs.argtypes = [c_void_p, POINTER(POINTER(MYFLT)), c_int] --> 355 libcsound.csoundIsNamedGEN.argtypes = [c_void_p, c_int] 356 libcsound.csoundGetNamedGEN.argtypes = [c_void_p, c_int, c_char_p, c_int] 357 /home/mitch/anaconda3/lib/python3.5/ctypes/__init__.py in __getattr__(self, name) 358 if name.startswith('__') and name.endswith('__'): 359 raise AttributeError(name) --> 360 func = self.__getitem__(name) 361 setattr(self, name, func) 362 return func /home/mitch/anaconda3/lib/python3.5/ctypes/__init__.py in __getitem__(self, name_or_ordinal) 363 364 def __getitem__(self, name_or_ordinal): --> 365 func = self._FuncPtr((name_or_ordinal, self)) 366 if not isinstance(name_or_ordinal, int): 367 func.__name__ = name_or_ordinal AttributeError: /usr/local/lib/libcsound64.so: undefined symbol: csoundIsNamedGENIs there something wrong with my setup? Regards, Mitch |
Date | 2016-07-24 15:32 |
From | Francois PINOT |
Subject | Re: ctcsound |
csoundIsNamedGEN and csoundGetNamedGen have been added by Victor in the API after the 6.07 release. The latest version of ctcsound.py in github reflects this. So if you want to use this latest version, you have to rebuild Csound from source. If you don't want to rebuild Csound, you should use the ctcsound.py file shipped with the 6.07 release.François 2016-07-24 14:44 GMT+02:00 Mitch Kaufman <mitch.kaufman@hotmail.com>:
|
Date | 2016-07-24 15:39 |
From | Mitch Kaufman |
Subject | Re: ctcsound |
Thanks Francois. Will the 6.07 version be up to date on the icsound that was recently incorporated.
|
Date | 2016-07-24 15:45 |
From | Francois PINOT |
Subject | Re: ctcsound |
Icsound is now a class in the csoundmagics extension that I wrote for Jupyter (see https://github.com/fggp/ctcsound/blob/master/cookbook/07-icsound.ipynb). This class does not use the two new NamedGen functions. So it should work with the ctcsound.py file shipped with the 6.07 release. 2016-07-24 16:39 GMT+02:00 Mitch Kaufman <mitch.kaufman@hotmail.com>:
|