[Cs-dev] Interfaces
Date | 2005-10-25 03:30 |
From | "Michael Gogins" |
Subject | [Cs-dev] Interfaces |
Tonight the csnd interfaces library and CsoundVST built for me on Linux and Windows. On Windows the csoundWindowsLibraries list is needed only by csoundDynamicLibrary and not by csndInterfaces. Regards, Mike ------------------------------------------------------- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2005-10-25 09:40 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] Interfaces |
SConstruct is failing on OSX, line 618, because the name javaFound is not defined. What is the check on Java supposed to look like? What header should it be looking at? Victor At 03:30 25/10/2005, you wrote: >Tonight the csnd interfaces library and CsoundVST built for me on Linux >and Windows. > >On Windows the csoundWindowsLibraries list is needed only by >csoundDynamicLibrary and not by csndInterfaces. > >Regards, >Mike > > > >------------------------------------------------------- >This SF.Net email is sponsored by the JBoss Inc. >Get Certified Today * Register for a JBoss Training Course >Free Certification Exam for All Training Attendees Through End of 2005 >Visit http://www.jboss.com/services/certification for more information >_______________________________________________ >Csound-devel mailing list >Csound-devel@lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/csound-devel Victor Lazzarini Music Technology Laboratory Music Department National University of Ireland, Maynooth ------------------------------------------------------- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2005-10-25 09:55 |
From | Istvan Varga |
Subject | Re: [Cs-dev] Interfaces |
Victor Lazzarini wrote: > SConstruct is failing on OSX, line 618, because the name javaFound is not > defined. What is the check on Java supposed to look like? What header > should it be looking at? I assume it would be something like this around the checks for Lua and Python: javaFound = configure.CheckHeader('jni.h', language = 'C++') and then similar checks later can be replaced with javaFound. ------------------------------------------------------- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2005-10-25 12:32 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] Interfaces |
Sorted the SConstruct file. Now trying to build the interfaces lib. A problem occurs in filebuilding.cpp, because darwin doesn't seem to have gcvt(). I couldn't find fcvt() either. Is that right? I thought those were ANSI std C lib functions. Victor At 09:55 25/10/2005, you wrote: >Victor Lazzarini wrote: > >>SConstruct is failing on OSX, line 618, because the name javaFound is not >>defined. What is the check on Java supposed to look like? What header >>should it be looking at? > >I assume it would be something like this around the checks for Lua and >Python: > >javaFound = configure.CheckHeader('jni.h', language = 'C++') > >and then similar checks later can be replaced with javaFound. > > >------------------------------------------------------- >This SF.Net email is sponsored by the JBoss Inc. >Get Certified Today * Register for a JBoss Training Course >Free Certification Exam for All Training Attendees Through End of 2005 >Visit http://www.jboss.com/services/certification for more information >_______________________________________________ >Csound-devel mailing list >Csound-devel@lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/csound-devel Victor Lazzarini Music Technology Laboratory Music Department National University of Ireland, Maynooth ------------------------------------------------------- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2005-10-25 12:46 |
From | Istvan Varga |
Subject | Re: [Cs-dev] Interfaces |
Victor Lazzarini wrote: > Sorted the SConstruct file. Now trying to build the interfaces lib. > A problem occurs in filebuilding.cpp, because darwin doesn't seem > to have gcvt(). I couldn't find fcvt() either. > Is that right? I thought those were ANSI std C lib functions. No, gcvt() is not ANSI C, it is an old System V function. For ANSI C compliance, sprintf() should be used instead. Quoting from the info page of gcvt(): -- Function: char * gcvt (double VALUE, int NDIGIT, char *BUF) `gcvt' is functionally equivalent to `sprintf(buf, "%*g", ndigit, value'. It is provided only for compatibility's sake. It returns BUF. If NDIGIT decimal digits would exceed the precision of a `double' it is reduced to a system-specific value. I already noticed it earlier, but did not comment on the use of gcvt() as it is not my code and is not included in the main API library. ------------------------------------------------------- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2005-10-25 13:01 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] Interfaces |
I have added a macro that converts gcvt() into snprintf() for OSX At 12:46 25/10/2005, you wrote: >Victor Lazzarini wrote: > >>Sorted the SConstruct file. Now trying to build the interfaces lib. >>A problem occurs in filebuilding.cpp, because darwin doesn't seem >>to have gcvt(). I couldn't find fcvt() either. >>Is that right? I thought those were ANSI std C lib functions. > >No, gcvt() is not ANSI C, it is an old System V function. For ANSI >C compliance, sprintf() should be used instead. Quoting from the >info page of gcvt(): > > -- Function: char * gcvt (double VALUE, int NDIGIT, char *BUF) > `gcvt' is functionally equivalent to `sprintf(buf, "%*g", ndigit, > value'. It is provided only for compatibility's sake. It returns > BUF. > > If NDIGIT decimal digits would exceed the precision of a `double' > it is reduced to a system-specific value. > >I already noticed it earlier, but did not comment on the use of gcvt() >as it is not my code and is not included in the main API library. > > >------------------------------------------------------- >This SF.Net email is sponsored by the JBoss Inc. >Get Certified Today * Register for a JBoss Training Course >Free Certification Exam for All Training Attendees Through End of 2005 >Visit http://www.jboss.com/services/certification for more information >_______________________________________________ >Csound-devel mailing list >Csound-devel@lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/csound-devel Victor Lazzarini Music Technology Laboratory Music Department National University of Ireland, Maynooth ------------------------------------------------------- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2005-10-25 13:05 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] Interfaces |
committed the interfaces lib fixes for OSX. Builds OK. Not sure how to test it though. Victor At 12:46 25/10/2005, you wrote: >Victor Lazzarini wrote: > >>Sorted the SConstruct file. Now trying to build the interfaces lib. >>A problem occurs in filebuilding.cpp, because darwin doesn't seem >>to have gcvt(). I couldn't find fcvt() either. >>Is that right? I thought those were ANSI std C lib functions. > >No, gcvt() is not ANSI C, it is an old System V function. For ANSI >C compliance, sprintf() should be used instead. Quoting from the >info page of gcvt(): > > -- Function: char * gcvt (double VALUE, int NDIGIT, char *BUF) > `gcvt' is functionally equivalent to `sprintf(buf, "%*g", ndigit, > value'. It is provided only for compatibility's sake. It returns > BUF. > > If NDIGIT decimal digits would exceed the precision of a `double' > it is reduced to a system-specific value. > >I already noticed it earlier, but did not comment on the use of gcvt() >as it is not my code and is not included in the main API library. > > >------------------------------------------------------- >This SF.Net email is sponsored by the JBoss Inc. >Get Certified Today * Register for a JBoss Training Course >Free Certification Exam for All Training Attendees Through End of 2005 >Visit http://www.jboss.com/services/certification for more information >_______________________________________________ >Csound-devel mailing list >Csound-devel@lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/csound-devel Victor Lazzarini Music Technology Laboratory Music Department National University of Ireland, Maynooth ------------------------------------------------------- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2005-10-25 13:30 |
From | Istvan Varga |
Subject | Re: [Cs-dev] Interfaces |
Victor Lazzarini wrote: > committed the interfaces lib fixes for OSX. Builds OK. > Not sure how to test it though. Well, try starting the Python interpreter in the build directory, and then type something like (change opts as needed): >>> import csnd >>> csnd.csoundInitialize(None, None, 0) >>> cs=csnd.csoundCreate(None) >>> opts=['csound', '-o', 'dac', 'examples/trapped.csd'] >>> csnd.csoundCompile(cs, len(opts), opts) >>> while (csnd.csoundGetScoreTime(cs) < 20): ... n=csnd.csoundPerformBuffer(cs) ... >>> csnd.csoundReset(cs) >>> If everything works well, you should hear the first 20 seconds of trapped.csd. ------------------------------------------------------- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2005-10-25 14:12 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] Interfaces |
It is complaining it can't find the module csnd. I can't see it either. I can see csnd.jar, which I reckon is the java one. Any reason why it has not been built? Scons says it is building the Csound interfaces library and the Java wrappers library (but not Csound VST) Victor At 13:30 25/10/2005, you wrote: >Victor Lazzarini wrote: > >> committed the interfaces lib fixes for OSX. Builds OK. >>Not sure how to test it though. > >Well, try starting the Python interpreter in the build directory, >and then type something like (change opts as needed): > > >>> import csnd > >>> csnd.csoundInitialize(None, None, 0) > >>> cs=csnd.csoundCreate(None) > >>> opts=['csound', '-o', 'dac', 'examples/trapped.csd'] > >>> csnd.csoundCompile(cs, len(opts), opts) > >>> while (csnd.csoundGetScoreTime(cs) < 20): >... n=csnd.csoundPerformBuffer(cs) >... > >>> csnd.csoundReset(cs) > >>> > >If everything works well, you should hear the first 20 seconds of >trapped.csd. > > >------------------------------------------------------- >This SF.Net email is sponsored by the JBoss Inc. >Get Certified Today * Register for a JBoss Training Course >Free Certification Exam for All Training Attendees Through End of 2005 >Visit http://www.jboss.com/services/certification for more information >_______________________________________________ >Csound-devel mailing list >Csound-devel@lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/csound-devel Victor Lazzarini Music Technology Laboratory Music Department National University of Ireland, Maynooth ------------------------------------------------------- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2005-10-25 14:18 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] Interfaces |
Also tried java -jar cnsd.jar which says Failed to load Main-Class manifest from csnd.jar It doesn't look good. Victor At 14:12 25/10/2005, you wrote: >It is complaining it can't find the module csnd. I can't see it either. >I can see csnd.jar, which I reckon is the java one. > >Any reason why it has not been built? >Scons says it is building the Csound interfaces library and >the Java wrappers library (but not Csound VST) > >Victor > >At 13:30 25/10/2005, you wrote: >>Victor Lazzarini wrote: >> >>> committed the interfaces lib fixes for OSX. Builds OK. >>>Not sure how to test it though. >> >>Well, try starting the Python interpreter in the build directory, >>and then type something like (change opts as needed): >> >> >>> import csnd >> >>> csnd.csoundInitialize(None, None, 0) >> >>> cs=csnd.csoundCreate(None) >> >>> opts=['csound', '-o', 'dac', 'examples/trapped.csd'] >> >>> csnd.csoundCompile(cs, len(opts), opts) >> >>> while (csnd.csoundGetScoreTime(cs) < 20): >>... n=csnd.csoundPerformBuffer(cs) >>... >> >>> csnd.csoundReset(cs) >> >>> >> >>If everything works well, you should hear the first 20 seconds of >>trapped.csd. >> >> >>------------------------------------------------------- >>This SF.Net email is sponsored by the JBoss Inc. >>Get Certified Today * Register for a JBoss Training Course >>Free Certification Exam for All Training Attendees Through End of 2005 >>Visit http://www.jboss.com/services/certification for more information >>_______________________________________________ >>Csound-devel mailing list >>Csound-devel@lists.sourceforge.net >>https://lists.sourceforge.net/lists/listinfo/csound-devel > >Victor Lazzarini >Music Technology Laboratory >Music Department >National University of Ireland, Maynooth > > >------------------------------------------------------- >This SF.Net email is sponsored by the JBoss Inc. >Get Certified Today * Register for a JBoss Training Course >Free Certification Exam for All Training Attendees Through End of 2005 >Visit http://www.jboss.com/services/certification for more information >_______________________________________________ >Csound-devel mailing list >Csound-devel@lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/csound-devel Victor Lazzarini Music Technology Laboratory Music Department National University of Ireland, Maynooth ------------------------------------------------------- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2005-10-25 14:25 |
From | Istvan Varga |
Subject | Re: [Cs-dev] Interfaces |
Victor Lazzarini wrote: > It is complaining it can't find the module csnd. I can't see it either. > I can see csnd.jar, which I reckon is the java one. > > Any reason why it has not been built? > Scons says it is building the Csound interfaces library and > the Java wrappers library (but not Csound VST) Was the Python interface also compiled in ? You should then have files like csnd.py or csnd.pyc. ------------------------------------------------------- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2005-10-25 14:33 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] Interfaces |
yes there is a csnd.py and csnd.pyc in the interfaces directory. If I run python from there and try to import the csnd module, then I get a message saying that _csnd module was not found, because that's one of the lines of csnd.py. Victor At 14:25 25/10/2005, you wrote: >Victor Lazzarini wrote: > >>It is complaining it can't find the module csnd. I can't see it either. >>I can see csnd.jar, which I reckon is the java one. >>Any reason why it has not been built? >>Scons says it is building the Csound interfaces library and >>the Java wrappers library (but not Csound VST) > >Was the Python interface also compiled in ? You should then have >files like csnd.py or csnd.pyc. > > >------------------------------------------------------- >This SF.Net email is sponsored by the JBoss Inc. >Get Certified Today * Register for a JBoss Training Course >Free Certification Exam for All Training Attendees Through End of 2005 >Visit http://www.jboss.com/services/certification for more information >_______________________________________________ >Csound-devel mailing list >Csound-devel@lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/csound-devel Victor Lazzarini Music Technology Laboratory Music Department National University of Ireland, Maynooth ------------------------------------------------------- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2005-10-25 14:42 |
From | Istvan Varga |
Subject | Re: [Cs-dev] Interfaces |
Victor Lazzarini wrote: > yes there is a csnd.py and csnd.pyc in the interfaces directory. > If I run python from there and try to import the csnd module, then > I get a message saying that _csnd module was not found, because > that's one of the lines of csnd.py. Does a file like _csnd.dylib or similar exist ? ------------------------------------------------------- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2005-10-25 14:51 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] Interfaces |
yes there is. I copied the csnd.py and csnd.pyc to the top-level and tried running it, still couldn't find it. Then I copied _csnd.dylib into _csnd, still the same. Looks like a naming issue. Victor At 14:42 25/10/2005, you wrote: >Victor Lazzarini wrote: > >>yes there is a csnd.py and csnd.pyc in the interfaces directory. >>If I run python from there and try to import the csnd module, then >>I get a message saying that _csnd module was not found, because >>that's one of the lines of csnd.py. > >Does a file like _csnd.dylib or similar exist ? > > >------------------------------------------------------- >This SF.Net email is sponsored by the JBoss Inc. >Get Certified Today * Register for a JBoss Training Course >Free Certification Exam for All Training Attendees Through End of 2005 >Visit http://www.jboss.com/services/certification for more information >_______________________________________________ >Csound-devel mailing list >Csound-devel@lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/csound-devel Victor Lazzarini Music Technology Laboratory Music Department National University of Ireland, Maynooth ------------------------------------------------------- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2005-10-27 06:46 |
From | Anthony Kozar |
Subject | Re: [Cs-dev] Interfaces |
Mike, This is great! I would like to try the Python interfaces here on my MacOS 9 machine. I just successfully compiled and loaded an example Python module that comes with SWIG. But I am either not using SWIG correctly with Csound or there are problems with the OS 9 version of SWIG. (I have MacSwig 1.3.19. Perhaps this is too old. It also seems difficult to correctly set all of the include directories and defines needed with the MacSwig GUI ...) Anyways, would it be possible for you to either commit the SWIG-generated files or to email them directly to me so that I may try them here? Thanks. Anthony Kozar anthonykozar AT sbcglobal DOT net http://akozar.spymac.net/ Michael Gogins wrote on 10/24/05 10:30 PM: > Tonight the csnd interfaces library and CsoundVST built for me on Linux and > Windows. ------------------------------------------------------- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |