statisfactions / playitbyr

NOTE: Depends on obsolete packages and only works with Csound 6. Play it By R is a flexible toolkit for data sonification in R. The functions allow the user to map data onto sonic parameters like pitch, tempo, and rhythm, and output sound and sound files.
http://playitbyr.org
16 stars 2 forks source link

setting up csound library ( windows 7) #3

Open sujap opened 10 years ago

sujap commented 10 years ago

Im having problem while trying to setCsoundLibrary() to get sonify working, I noticed the issue https://github.com/statisfactions/playitbyr/issues/2 and tried following instructions there, but was not able to resolve the problem.

setCsoundLibrary("C:/Program Files (x86)/Csound/bin/csound64.dll")
Error in setCsoundLibrary("C:/Program Files (x86)/Csound/bin/csound64.dll") : 
  No valid shared object found at 'C:/Program Files (x86)/Csound/bin/csound64.dll'.

I tried setting directory

 setwd("C:\\Program Files (x86)\\Csound\\bin\\" ) 

and creating symlink

C:\Program Files (x86)\Csound\bin>mklink "csound64.dll" csound64.dll.5.2
symbolic link created for csound64.dll <<===>> csound64.dll.5.2

but it didnt work. Digging inside

.dynload("csound64.dll.5.2")  ## gives NULL
.dynload("csound64.dll")  ## gives NULL as well

even though I can see the files present. Please suggest. Thanks in advance.

statisfactions commented 10 years ago

What version of Csound are you using?

Csound 6 totally changed the API and I haven't gotten these packages working with the new API yet.

sujap commented 10 years ago

My csound version is 5.17 win32

statisfactions commented 10 years ago

Hmm. Are there other "dll" files in that directory? What do you get from dir *dll*(or whatever the correct command is) in that directory on the command line?

dmarch commented 9 years ago

I am facing the same problem. Someone found a solution?

In Win7 I have installed the following: Csound: Csound6_6.04.0 csound package: csound_0.1-1.tar.gz (it has been removed from CRAN) rdyncall package: rdyncall_0.7.5.tar.gz (it has been removed from CRAN too)

Four potential .dll files in bin folder but no one works: csound64.dll CsoundAC.dll csound6~.dll csnd6.dll

Example: setCsoundLibrary("C:/Program Files (x86)/Csound6/bin/csound64.dll") Error in setCsoundLibrary("C:/Program Files (x86)/Csound6/bin/csound64.dll") : No valid shared object found at 'C:/Program Files (x86)/Csound6/bin/csound64.dll'.

statisfactions commented 9 years ago

As I commented above, the packages don't work with Csound 6.

What version of R are you using? Does the archived rdyncall actually still work for you?

It wouldn't be that hard to make a quick patch to the csound package to work with Csound 6, if rdyncall is working, and I would be happy to help with that.

Otherwise, I plan on revising these packages this summer (I am in grad school) and to remove the dependency on rdyncall so I can get this all back up on CRAN. It's good to know there's still some interest in these packages.