Csound Csound-dev Csound-tekno Search About

[Csnd] Adding opcodes

Date2010-06-19 04:50
FromBrian Wong
Subject[Csnd] Adding opcodes
Hi folks, I am trying to get the crossfm opcodes working from the Csound Journal Article "Cross Frequency Modulation" by Francois Pinot. Please understand that I am very much a beginner at C programming and could be missing some basic concept. I am running mingw on Windows XP, with Csound 5.11-d.
crossfm.c includes csdl.h, which includes csoundCore.h, which includes (among other files) . Because of the angle brackets I cannot tell whether this file is supposed to be part of Csound or my C compiler install.

sndfile.h is NOT in the csound\include directory, and my build fails (with Codeblocks, Netbeans, and QT) because it cannot find this file. Can someone explain to me what I am doing wrong here?  		 	   		  
_________________________________________________________________
Turn down-time into play-time with Messenger games
http://go.microsoft.com/?linkid=9734385

Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"


Date2010-06-19 07:02
Fromjpff@cs.bath.ac.uk
Subject[Csnd] Re: Adding opcodes
>
> Hi folks, I am trying to get the crossfm opcodes working from the Csound
> Journal Article "Cross Frequency Modulation" by Francois Pinot. Please
> understand that I am very much a beginner at C programming and could be
> missing some basic concept. I am running mingw on Windows XP, with Csound
> 5.11-d.
> crossfm.c includes csdl.h, which includes csoundCore.h, which includes
> (among other files) . Because of the angle brackets I cannot
> tell whether this file is supposed to be part of Csound or my C compiler
> install.
>
> sndfile.h is NOT in the csound\include directory, and my build fails (with
> Codeblocks, Netbeans, and QT) because it cannot find this file. Can
> someone explain to me what I am doing wrong here? 

It is libsndfile header.   You need the development material for
libsndfile.  Not sure about on Windows but this is a -develop package in
Linux

==John ff



Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2010-06-19 07:48
FromBrian Wong
Subject[Csnd] RE: Re: Adding opcodes
Thank you John. Can anyone tell me if the comparable file/package is available for Windows and where I might possibly find it? Is adding opcodes and developing Csound even possible for Windows users?
BW

----------------------------------------
> Date: Sat, 19 Jun 2010 07:02:21 +0100
> From: jpff@cs.bath.ac.uk
> To: csound@lists.bath.ac.uk
> Subject: [Csnd] Re: Adding opcodes
>
>>
>> Hi folks, I am trying to get the crossfm opcodes working from the Csound
>> Journal Article "Cross Frequency Modulation" by Francois Pinot. Please
>> understand that I am very much a beginner at C programming and could be
>> missing some basic concept. I am running mingw on Windows XP, with Csound
>> 5.11-d.
>> crossfm.c includes csdl.h, which includes csoundCore.h, which includes
>> (among other files) . Because of the angle brackets I cannot
>> tell whether this file is supposed to be part of Csound or my C compiler
>> install.
>>
>> sndfile.h is NOT in the csound\include directory, and my build fails (with
>> Codeblocks, Netbeans, and QT) because it cannot find this file. Can
>> someone explain to me what I am doing wrong here?
>
> It is libsndfile header. You need the development material for
> libsndfile. Not sure about on Windows but this is a -develop package in
> Linux
>
> ==John ff
>
>
>
> Send bugs reports to the Sourceforge bug tracker
> https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>
 		 	   		  
_________________________________________________________________
Game on: Challenge friends to great games on Messenger
http://go.microsoft.com/?linkid=9734387

Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"


Date2010-06-19 08:37
Fromjpff@cs.bath.ac.uk
Subject[Csnd] Re: RE: Re: Adding opcodes
http://www.mega-nerd.com/libsndfile/#Download

and take the WIn32 package
http://www.mega-nerd.com/libsndfile/files/libsndfile-1.0.21-w32-setup.exe

If that does not include the header file I will be surprised (but what do
i know...)


> Thank you John. Can anyone tell me if the comparable file/package is
> available for Windows and where I might possibly find it? Is adding
> opcodes and developing Csound even possible for Windows users?
> BW
>
> ----------------------------------------
>> Date: Sat, 19 Jun 2010 07:02:21 +0100
>> From: jpff@cs.bath.ac.uk
>> To: csound@lists.bath.ac.uk
>> Subject: [Csnd] Re: Adding opcodes
>>
>>>
>>> Hi folks, I am trying to get the crossfm opcodes working from the
>>> Csound
>>> Journal Article "Cross Frequency Modulation" by Francois Pinot. Please
>>> understand that I am very much a beginner at C programming and could be
>>> missing some basic concept. I am running mingw on Windows XP, with
>>> Csound
>>> 5.11-d.
>>> crossfm.c includes csdl.h, which includes csoundCore.h, which includes
>>> (among other files) . Because of the angle brackets I cannot
>>> tell whether this file is supposed to be part of Csound or my C
>>> compiler
>>> install.
>>>
>>> sndfile.h is NOT in the csound\include directory, and my build fails
>>> (with
>>> Codeblocks, Netbeans, and QT) because it cannot find this file. Can
>>> someone explain to me what I am doing wrong here?
>>
>> It is libsndfile header. You need the development material for
>> libsndfile. Not sure about on Windows but this is a -develop package in
>> Linux
>>
>> ==John ff
>>
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>>
>
> _________________________________________________________________
> Game on: Challenge friends to great games on Messenger
> http://go.microsoft.com/?linkid=9734387
>
> Send bugs reports to the Sourceforge bug tracker
>             https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
>
>
>
>




Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2010-06-19 09:26
FromBrian Wong
Subject[Csnd] RE: Re: RE: Re: Adding opcodes
Thanks very much John, I am happy to say that with the copy of sndfile.h included in the package you linked to me I finally got the .dll to compile! 
That is the good news; the bad news is that csound does not actually recognize the new crossfm opcodes. From what I read in Victor's article "Extensions to the Csound Language: from User-Defined to Plugin Opcodes and Beyond.", it indicated that Csound would automatically scan the plugins64 directory and get the new opcode from the .dll file. This is not happening, even though the OPCODEDIR64 environment variable is set correctly. So I have to assume that there is something wrong with the xfm.dll that I compiled.
I realize that most of the developers and programmers here are Linux users, but any help would be much appreciated.
Brian

----------------------------------------
> Date: Sat, 19 Jun 2010 08:37:10 +0100
> From: jpff@cs.bath.ac.uk
> To: csound@lists.bath.ac.uk
> Subject: [Csnd] Re: RE: Re: Adding opcodes
>
> http://www.mega-nerd.com/libsndfile/#Download
>
> and take the WIn32 package
> http://www.mega-nerd.com/libsndfile/files/libsndfile-1.0.21-w32-setup.exe
>
> If that does not include the header file I will be surprised (but what do
> i know...)
>
>
>> Thank you John. Can anyone tell me if the comparable file/package is
>> available for Windows and where I might possibly find it? Is adding
>> opcodes and developing Csound even possible for Windows users?
>> BW
>>
>> ----------------------------------------
>>> Date: Sat, 19 Jun 2010 07:02:21 +0100
>>> From: jpff@cs.bath.ac.uk
>>> To: csound@lists.bath.ac.uk
>>> Subject: [Csnd] Re: Adding opcodes
>>>
>>>>
>>>> Hi folks, I am trying to get the crossfm opcodes working from the
>>>> Csound
>>>> Journal Article "Cross Frequency Modulation" by Francois Pinot. Please
>>>> understand that I am very much a beginner at C programming and could be
>>>> missing some basic concept. I am running mingw on Windows XP, with
>>>> Csound
>>>> 5.11-d.
>>>> crossfm.c includes csdl.h, which includes csoundCore.h, which includes
>>>> (among other files) . Because of the angle brackets I cannot
>>>> tell whether this file is supposed to be part of Csound or my C
>>>> compiler
>>>> install.
>>>>
>>>> sndfile.h is NOT in the csound\include directory, and my build fails
>>>> (with
>>>> Codeblocks, Netbeans, and QT) because it cannot find this file. Can
>>>> someone explain to me what I am doing wrong here?
>>>
>>> It is libsndfile header. You need the development material for
>>> libsndfile. Not sure about on Windows but this is a -develop package in
>>> Linux
>>>
>>> ==John ff
>>>
>>>
>>>
>>> Send bugs reports to the Sourceforge bug tracker
>>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>>> csound"
>>>
>>
>> _________________________________________________________________
>> Game on: Challenge friends to great games on Messenger
>> http://go.microsoft.com/?linkid=9734387
>>
>> Send bugs reports to the Sourceforge bug tracker
>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>>
>>
>>
>>
>
>
>
>
> Send bugs reports to the Sourceforge bug tracker
> https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>
 		 	   		  
_________________________________________________________________
Game on: Challenge friends to great games on Messenger
http://go.microsoft.com/?linkid=9734387

Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"


Date2010-06-19 09:40
FromVictor Lazzarini
Subject[Csnd] Re: RE: Re: RE: Re: Adding opcodes
Did you export your symbols? You need to do that on Windows, otherwise  
Csound won't find them.

Victor

On 19 Jun 2010, at 09:26, Brian Wong wrote:

>
> Thanks very much John, I am happy to say that with the copy of  
> sndfile.h included in the package you linked to me I finally got  
> the .dll to compile!
> That is the good news; the bad news is that csound does not actually  
> recognize the new crossfm opcodes. From what I read in Victor's  
> article "Extensions to the Csound Language: from User-Defined to  
> Plugin Opcodes and Beyond.", it indicated that Csound would  
> automatically scan the plugins64 directory and get the new opcode  
> from the .dll file. This is not happening, even though the  
> OPCODEDIR64 environment variable is set correctly. So I have to  
> assume that there is something wrong with the xfm.dll that I compiled.
> I realize that most of the developers and programmers here are Linux  
> users, but any help would be much appreciated.
> Brian
>
> ----------------------------------------
>> Date: Sat, 19 Jun 2010 08:37:10 +0100
>> From: jpff@cs.bath.ac.uk
>> To: csound@lists.bath.ac.uk
>> Subject: [Csnd] Re: RE: Re: Adding opcodes
>>
>> http://www.mega-nerd.com/libsndfile/#Download
>>
>> and take the WIn32 package
>> http://www.mega-nerd.com/libsndfile/files/libsndfile-1.0.21-w32-setup.exe
>>
>> If that does not include the header file I will be surprised (but  
>> what do
>> i know...)
>>
>>
>>> Thank you John. Can anyone tell me if the comparable file/package is
>>> available for Windows and where I might possibly find it? Is adding
>>> opcodes and developing Csound even possible for Windows users?
>>> BW
>>>
>>> ----------------------------------------
>>>> Date: Sat, 19 Jun 2010 07:02:21 +0100
>>>> From: jpff@cs.bath.ac.uk
>>>> To: csound@lists.bath.ac.uk
>>>> Subject: [Csnd] Re: Adding opcodes
>>>>
>>>>>
>>>>> Hi folks, I am trying to get the crossfm opcodes working from the
>>>>> Csound
>>>>> Journal Article "Cross Frequency Modulation" by Francois Pinot.  
>>>>> Please
>>>>> understand that I am very much a beginner at C programming and  
>>>>> could be
>>>>> missing some basic concept. I am running mingw on Windows XP, with
>>>>> Csound
>>>>> 5.11-d.
>>>>> crossfm.c includes csdl.h, which includes csoundCore.h, which  
>>>>> includes
>>>>> (among other files) . Because of the angle brackets I cannot
>>>>> tell whether this file is supposed to be part of Csound or my C
>>>>> compiler
>>>>> install.
>>>>>
>>>>> sndfile.h is NOT in the csound\include directory, and my build  
>>>>> fails
>>>>> (with
>>>>> Codeblocks, Netbeans, and QT) because it cannot find this file.  
>>>>> Can
>>>>> someone explain to me what I am doing wrong here?
>>>>
>>>> It is libsndfile header. You need the development material for
>>>> libsndfile. Not sure about on Windows but this is a -develop  
>>>> package in
>>>> Linux
>>>>
>>>> ==John ff
>>>>
>>>>
>>>>
>>>> Send bugs reports to the Sourceforge bug tracker
>>>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>> Discussions of bugs and features can be posted here
>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>>> "unsubscribe
>>>> csound"
>>>>
>>>
>>> _________________________________________________________________
>>> Game on: Challenge friends to great games on Messenger
>>> http://go.microsoft.com/?linkid=9734387
>>>
>>> Send bugs reports to the Sourceforge bug tracker
>>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>> "unsubscribe
>>> csound"
>>>
>>>
>>>
>>>
>>
>>
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>> "unsubscribe csound"
>>
> 		 	   		
> _________________________________________________________________
> Game on: Challenge friends to great games on Messenger
> http://go.microsoft.com/?linkid=9734387
>
> Send bugs reports to the Sourceforge bug tracker
>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
> "unsubscribe csound"
>



Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2010-06-19 09:46
FromVictor Lazzarini
Subject[Csnd] Re: Re: RE: Re: RE: Re: Adding opcodes
Never mind, these should be exported on Windows by default. Maybe you  
should copy your code here for us to see, but please move to the  
developer's list first.

Victor
On 19 Jun 2010, at 09:40, Victor Lazzarini wrote:

> Did you export your symbols? You need to do that on Windows,  
> otherwise Csound won't find them.
>
> Victor
>
> On 19 Jun 2010, at 09:26, Brian Wong wrote:
>
>>
>> Thanks very much John, I am happy to say that with the copy of  
>> sndfile.h included in the package you linked to me I finally got  
>> the .dll to compile!
>> That is the good news; the bad news is that csound does not  
>> actually recognize the new crossfm opcodes. From what I read in  
>> Victor's article "Extensions to the Csound Language: from User- 
>> Defined to Plugin Opcodes and Beyond.", it indicated that Csound  
>> would automatically scan the plugins64 directory and get the new  
>> opcode from the .dll file. This is not happening, even though the  
>> OPCODEDIR64 environment variable is set correctly. So I have to  
>> assume that there is something wrong with the xfm.dll that I  
>> compiled.
>> I realize that most of the developers and programmers here are  
>> Linux users, but any help would be much appreciated.
>> Brian
>>
>> ----------------------------------------
>>> Date: Sat, 19 Jun 2010 08:37:10 +0100
>>> From: jpff@cs.bath.ac.uk
>>> To: csound@lists.bath.ac.uk
>>> Subject: [Csnd] Re: RE: Re: Adding opcodes
>>>
>>> http://www.mega-nerd.com/libsndfile/#Download
>>>
>>> and take the WIn32 package
>>> http://www.mega-nerd.com/libsndfile/files/libsndfile-1.0.21-w32-setup.exe
>>>
>>> If that does not include the header file I will be surprised (but  
>>> what do
>>> i know...)
>>>
>>>
>>>> Thank you John. Can anyone tell me if the comparable file/package  
>>>> is
>>>> available for Windows and where I might possibly find it? Is adding
>>>> opcodes and developing Csound even possible for Windows users?
>>>> BW
>>>>
>>>> ----------------------------------------
>>>>> Date: Sat, 19 Jun 2010 07:02:21 +0100
>>>>> From: jpff@cs.bath.ac.uk
>>>>> To: csound@lists.bath.ac.uk
>>>>> Subject: [Csnd] Re: Adding opcodes
>>>>>
>>>>>>
>>>>>> Hi folks, I am trying to get the crossfm opcodes working from the
>>>>>> Csound
>>>>>> Journal Article "Cross Frequency Modulation" by Francois Pinot.  
>>>>>> Please
>>>>>> understand that I am very much a beginner at C programming and  
>>>>>> could be
>>>>>> missing some basic concept. I am running mingw on Windows XP,  
>>>>>> with
>>>>>> Csound
>>>>>> 5.11-d.
>>>>>> crossfm.c includes csdl.h, which includes csoundCore.h, which  
>>>>>> includes
>>>>>> (among other files) . Because of the angle brackets I cannot
>>>>>> tell whether this file is supposed to be part of Csound or my C
>>>>>> compiler
>>>>>> install.
>>>>>>
>>>>>> sndfile.h is NOT in the csound\include directory, and my build  
>>>>>> fails
>>>>>> (with
>>>>>> Codeblocks, Netbeans, and QT) because it cannot find this file.  
>>>>>> Can
>>>>>> someone explain to me what I am doing wrong here?
>>>>>
>>>>> It is libsndfile header. You need the development material for
>>>>> libsndfile. Not sure about on Windows but this is a -develop  
>>>>> package in
>>>>> Linux
>>>>>
>>>>> ==John ff
>>>>>
>>>>>
>>>>>
>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>> Discussions of bugs and features can be posted here
>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>>>> "unsubscribe
>>>>> csound"
>>>>>
>>>>
>>>> _________________________________________________________________
>>>> Game on: Challenge friends to great games on Messenger
>>>> http://go.microsoft.com/?linkid=9734387
>>>>
>>>> Send bugs reports to the Sourceforge bug tracker
>>>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>> Discussions of bugs and features can be posted here
>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>>> "unsubscribe
>>>> csound"
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>>
>>> Send bugs reports to the Sourceforge bug tracker
>>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>> "unsubscribe csound"
>>>
>> 		 	   		
>> _________________________________________________________________
>> Game on: Challenge friends to great games on Messenger
>> http://go.microsoft.com/?linkid=9734387
>>
>> Send bugs reports to the Sourceforge bug tracker
>>           https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>> "unsubscribe csound"
>>
>
>
>
> Send bugs reports to the Sourceforge bug tracker
>           https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
> "unsubscribe csound"
>



Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2010-06-19 10:00
Fromjpff@cs.bath.ac.uk
Subject[Csnd] Re: RE: Re: RE: Re: Adding opcodes
Suggests the dll does not load.  There is a flag in Linux to pront the
messgaes, but I think it is not in Windows.  It calls LoadLibrary (line
890 of Top/csmodules.c)

>
> Thanks very much John, I am happy to say that with the copy of sndfile.h
> included in the package you linked to me I finally got the .dll to
> compile! 
> That is the good news; the bad news is that csound does not actually
> recognize the new crossfm opcodes. From what I read in Victor's article
> "Extensions to the Csound Language: from User-Defined to Plugin Opcodes
> and Beyond.", it indicated that Csound would automatically scan the
> plugins64 directory and get the new opcode from the .dll file. This is not
> happening, even though the OPCODEDIR64 environment variable is set
> correctly. So I have to assume that there is something wrong with the
> xfm.dll that I compiled.
> I realize that most of the developers and programmers here are Linux
> users, but any help would be much appreciated.
> Brian
>
> ----------------------------------------
>> Date: Sat, 19 Jun 2010 08:37:10 +0100
>> From: jpff@cs.bath.ac.uk
>> To: csound@lists.bath.ac.uk
>> Subject: [Csnd] Re: RE: Re: Adding opcodes
>>
>> http://www.mega-nerd.com/libsndfile/#Download
>>
>> and take the WIn32 package
>> http://www.mega-nerd.com/libsndfile/files/libsndfile-1.0.21-w32-setup.exe
>>
>> If that does not include the header file I will be surprised (but what
>> do
>> i know...)
>>
>>
>>> Thank you John. Can anyone tell me if the comparable file/package is
>>> available for Windows and where I might possibly find it? Is adding
>>> opcodes and developing Csound even possible for Windows users?
>>> BW
>>>
>>> ----------------------------------------
>>>> Date: Sat, 19 Jun 2010 07:02:21 +0100
>>>> From: jpff@cs.bath.ac.uk
>>>> To: csound@lists.bath.ac.uk
>>>> Subject: [Csnd] Re: Adding opcodes
>>>>
>>>>>
>>>>> Hi folks, I am trying to get the crossfm opcodes working from the
>>>>> Csound
>>>>> Journal Article "Cross Frequency Modulation" by Francois Pinot.
>>>>> Please
>>>>> understand that I am very much a beginner at C programming and could
>>>>> be
>>>>> missing some basic concept. I am running mingw on Windows XP, with
>>>>> Csound
>>>>> 5.11-d.
>>>>> crossfm.c includes csdl.h, which includes csoundCore.h, which
>>>>> includes
>>>>> (among other files) . Because of the angle brackets I cannot
>>>>> tell whether this file is supposed to be part of Csound or my C
>>>>> compiler
>>>>> install.
>>>>>
>>>>> sndfile.h is NOT in the csound\include directory, and my build fails
>>>>> (with
>>>>> Codeblocks, Netbeans, and QT) because it cannot find this file. Can
>>>>> someone explain to me what I am doing wrong here?
>>>>
>>>> It is libsndfile header. You need the development material for
>>>> libsndfile. Not sure about on Windows but this is a -develop package
>>>> in
>>>> Linux
>>>>
>>>> ==John ff
>>>>
>>>>
>>>>
>>>> Send bugs reports to the Sourceforge bug tracker
>>>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>> Discussions of bugs and features can be posted here
>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>>>> "unsubscribe
>>>> csound"
>>>>
>>>
>>> _________________________________________________________________
>>> Game on: Challenge friends to great games on Messenger
>>> http://go.microsoft.com/?linkid=9734387
>>>
>>> Send bugs reports to the Sourceforge bug tracker
>>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>>> "unsubscribe
>>> csound"
>>>
>>>
>>>
>>>
>>
>>
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>>
>
> _________________________________________________________________
> Game on: Challenge friends to great games on Messenger
> http://go.microsoft.com/?linkid=9734387
>
> Send bugs reports to the Sourceforge bug tracker
>             https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
>
>
>
>




Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2010-06-19 10:11
FromFrancois PINOT
Subject[Csnd] Re: Adding opcodes
Hello Brian,

I've been using Csound on linux for two years now. But when I developped the crossfm plugin, I was working on Windows with the csound 5.01 binary distro as far as I remember. You can see below the makefile I was using at that time. It can be used to compile other plugins, as chown here with the fluidOpdodes plugin.

-------------------------------------------------------------------------------------------------------------

USEDOUBLE = yes

CC = C:/MinGW/bin/gcc
CXX = C:/MinGW/bin/g++
CFLAGS = -Wall -O3 -fno-inline-functions
ifeq ($(strip $(USEDOUBLE)),yes)
CFLAGS += -march=i586 -mtune=pentium3 -fomit-frame-pointer -ffast-math
CFLAGS += -DUSE_DOUBLE -DUSE_LRINT
else
CFLAGS += -march=pentium3 -fomit-frame-pointer -ffast-math
endif
H = C:/csound5/src/H
CFLAGS += -I. -I$(H) -IC:/fltk/include -DWIN32 -DPIPES -DHAVE_STDINT_H -DHAVE_DIRENT_H
CFLAGS += -DHAVE_UNISTD_H -DHAVE_FCNTL_H -DHAVE_SYS_TIME_H-DHAVE_SYS_TYPES_H
CFLAGS += -DPIC
LDFLAGS = -L.
LIBS = C:/MinGW/bin/libsndfile-1.dll C:/MinGW/bin/fluidsynth.dll
LIBS += -lgdi32 -luser32 -lkernel32 -lm

PLUGINS =    crossfm.dll fluidOpcodes.dll

all: $(PLUGINS)

Opcodes/%.o: Opcodes/%.c
    $(CC) $(CFLAGS) -c $< -o $@

%.oo: %.cpp
    $(CXX) $(CFLAGS) -c $< -o $@

crossfm.dll: Opcodes/crossfm.o
    $(CC) -O2 -s -shared -o $@ $< $(LDFLAGS) $(LIBS)

fluidOpcodes.dll: Opcodes/fluidOpcodes.o
    $(CC) -O2 -s -shared -o $@ $< $(LDFLAGS) $(LIBS)

-------------------------------------------------------------------------------------------------------------

Otherwise, crossfm is included in the 5.12 distro isn't it?

Finally, you might consider switching to linux. My current configuration is Ubuntu, with Windows XP running in a virtual machine (Virtual Box from sun site) when I (rarely) need it.

Hope this helps

Francois Pinot

2010/6/19 Brian Wong <brian.wong1@hotmail.com>

Hi folks, I am trying to get the crossfm opcodes working from the Csound Journal Article "Cross Frequency Modulation" by Francois Pinot. Please understand that I am very much a beginner at C programming and could be missing some basic concept. I am running mingw on Windows XP, with Csound 5.11-d.
crossfm.c includes csdl.h, which includes csoundCore.h, which includes (among other files) <sndfile.h>. Because of the angle brackets I cannot tell whether this file is supposed to be part of Csound or my C compiler install.

sndfile.h is NOT in the csound\include directory, and my build fails (with Codeblocks, Netbeans, and QT) because it cannot find this file. Can someone explain to me what I am doing wrong here? 
_________________________________________________________________
Turn down-time into play-time with Messenger games
http://go.microsoft.com/?linkid=9734385

Send bugs reports to the Sourceforge bug tracker
           https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"



Date2010-06-19 10:35
FromVictor Lazzarini
Subject[Csnd] Re: Re: Adding opcodes
One typical mistake would be not to add -DUSE_DOUBLE. If the opcode is 32bit , csound will not load the DLL.

Victor

On 19 Jun 2010, at 10:11, Francois PINOT wrote:

Hello Brian,

I've been using Csound on linux for two years now. But when I developped the crossfm plugin, I was working on Windows with the csound 5.01 binary distro as far as I remember. You can see below the makefile I was using at that time. It can be used to compile other plugins, as chown here with the fluidOpdodes plugin.

-------------------------------------------------------------------------------------------------------------

USEDOUBLE = yes

CC = C:/MinGW/bin/gcc
CXX = C:/MinGW/bin/g++
CFLAGS = -Wall -O3 -fno-inline-functions
ifeq ($(strip $(USEDOUBLE)),yes)
CFLAGS += -march=i586 -mtune=pentium3 -fomit-frame-pointer -ffast-math
CFLAGS += -DUSE_DOUBLE -DUSE_LRINT
else
CFLAGS += -march=pentium3 -fomit-frame-pointer -ffast-math
endif
H = C:/csound5/src/H
CFLAGS += -I. -I$(H) -IC:/fltk/include -DWIN32 -DPIPES -DHAVE_STDINT_H -DHAVE_DIRENT_H
CFLAGS += -DHAVE_UNISTD_H -DHAVE_FCNTL_H -DHAVE_SYS_TIME_H-DHAVE_SYS_TYPES_H
CFLAGS += -DPIC
LDFLAGS = -L.
LIBS = C:/MinGW/bin/libsndfile-1.dll C:/MinGW/bin/fluidsynth.dll
LIBS += -lgdi32 -luser32 -lkernel32 -lm

PLUGINS =    crossfm.dll fluidOpcodes.dll

all: $(PLUGINS)

Opcodes/%.o: Opcodes/%.c
    $(CC) $(CFLAGS) -c $< -o $@

%.oo: %.cpp
    $(CXX) $(CFLAGS) -c $< -o $@

crossfm.dll: Opcodes/crossfm.o
    $(CC) -O2 -s -shared -o $@ $< $(LDFLAGS) $(LIBS)

fluidOpcodes.dll: Opcodes/fluidOpcodes.o
    $(CC) -O2 -s -shared -o $@ $< $(LDFLAGS) $(LIBS)

-------------------------------------------------------------------------------------------------------------

Otherwise, crossfm is included in the 5.12 distro isn't it?

Finally, you might consider switching to linux. My current configuration is Ubuntu, with Windows XP running in a virtual machine (Virtual Box from sun site) when I (rarely) need it.

Hope this helps

Francois Pinot

2010/6/19 Brian Wong <brian.wong1@hotmail.com>

Hi folks, I am trying to get the crossfm opcodes working from the Csound Journal Article "Cross Frequency Modulation" by Francois Pinot. Please understand that I am very much a beginner at C programming and could be missing some basic concept. I am running mingw on Windows XP, with Csound 5.11-d.
crossfm.c includes csdl.h, which includes csoundCore.h, which includes (among other files) <sndfile.h>. Because of the angle brackets I cannot tell whether this file is supposed to be part of Csound or my C compiler install.

sndfile.h is NOT in the csound\include directory, and my build fails (with Codeblocks, Netbeans, and QT) because it cannot find this file. Can someone explain to me what I am doing wrong here? 
_________________________________________________________________
Turn down-time into play-time with Messenger games
http://go.microsoft.com/?linkid=9734385

Send bugs reports to the Sourceforge bug tracker
           https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"




Date2010-06-19 11:06
FromBrian Wong
Subject[Csnd] RE: Re: Re: Adding opcodes
Thanks very much for your responses. As per Victor's request I have started a thread in the developers forum with respect to this. I will try to adapt your makefile Francois. 5.12 is not yet available for Windows, and in any case my main interest is in this is understanding HOW to get plugins to work, though I admit I would really like to check out your opcodes as well. Although I have thought about it a lot, I really don't much want to switch to Linux, I have plenty of frustration in my life without adding the pain and suffering that will entail. Maybe if I was 30 years younger I might consider spending the tens of thousands of hours needed needed to master Linux, but life is just too short for that. It is different for academics who get paid to do it and have experts all around you every day, but for isolated home users like myself with limited time to spend, things are not so easy.
I probably spent about 200 hours on this opcode thing already, just to get THIS far, trying 5 different C++ packages, having Visual C++ Express semi-destroy my computer (still not really fixed), futilely downloading copies of sndfile.h from various packages, figuring out Make and makefiles, etc etc etc. ANd I am still nowhere near getting anything working. I can just imagine what switching to Linux would be like, an all-encompassing ever-increasing frustration crescendo for the rest of my life.
BW

________________________________
> From: Victor.Lazzarini@nuim.ie
> To: csound@lists.bath.ac.uk
> Date: Sat, 19 Jun 2010 10:35:20 +0100
> Subject: [Csnd] Re: Re: Adding opcodes
>
> One typical mistake would be not to add -DUSE_DOUBLE. If the opcode is 32bit , csound will not load the DLL.
>
> Victor
>
> On 19 Jun 2010, at 10:11, Francois PINOT wrote:
>
> Hello Brian,
>
> I've been using Csound on linux for two years now. But when I developped the crossfm plugin, I was working on Windows with the csound 5.01 binary distro as far as I remember. You can see below the makefile I was using at that time. It can be used to compile other plugins, as chown here with the fluidOpdodes plugin.
>
> -------------------------------------------------------------------------------------------------------------
>
> USEDOUBLE = yes
>
> CC = C:/MinGW/bin/gcc
> CXX = C:/MinGW/bin/g++
> CFLAGS = -Wall -O3 -fno-inline-functions
> ifeq ($(strip $(USEDOUBLE)),yes)
> CFLAGS += -march=i586 -mtune=pentium3 -fomit-frame-pointer -ffast-math
> CFLAGS += -DUSE_DOUBLE -DUSE_LRINT
> else
> CFLAGS += -march=pentium3 -fomit-frame-pointer -ffast-math
> endif
> H = C:/csound5/src/H
> CFLAGS += -I. -I$(H) -IC:/fltk/include -DWIN32 -DPIPES -DHAVE_STDINT_H -DHAVE_DIRENT_H
> CFLAGS += -DHAVE_UNISTD_H -DHAVE_FCNTL_H -DHAVE_SYS_TIME_H-DHAVE_SYS_TYPES_H
> CFLAGS += -DPIC
> LDFLAGS = -L.
> LIBS = C:/MinGW/bin/libsndfile-1.dll C:/MinGW/bin/fluidsynth.dll
> LIBS += -lgdi32 -luser32 -lkernel32 -lm
>
> PLUGINS = crossfm.dll fluidOpcodes.dll
>
> all: $(PLUGINS)
>
> Opcodes/%.o: Opcodes/%.c
> $(CC) $(CFLAGS) -c $< -o $@
>
> %.oo: %.cpp
> $(CXX) $(CFLAGS) -c $< -o $@
>
> crossfm.dll: Opcodes/crossfm.o
> $(CC) -O2 -s -shared -o $@ $< $(LDFLAGS) $(LIBS)
>
> fluidOpcodes.dll: Opcodes/fluidOpcodes.o
> $(CC) -O2 -s -shared -o $@ $< $(LDFLAGS) $(LIBS)
>
> -------------------------------------------------------------------------------------------------------------
>
> Otherwise, crossfm is included in the 5.12 distro isn't it?
>
> Finally, you might consider switching to linux. My current configuration is Ubuntu, with Windows XP running in a virtual machine (Virtual Box from sun site) when I (rarely) need it.
>
> Hope this helps
>
> Francois Pinot
>
> 2010/6/19 Brian Wong>
>
> Hi folks, I am trying to get the crossfm opcodes working from the Csound Journal Article "Cross Frequency Modulation" by Francois Pinot. Please understand that I am very much a beginner at C programming and could be missing some basic concept. I am running mingw on Windows XP, with Csound 5.11-d.
> crossfm.c includes csdl.h, which includes csoundCore.h, which includes (among other files) . Because of the angle brackets I cannot tell whether this file is supposed to be part of Csound or my C compiler install.
>
> sndfile.h is NOT in the csound\include directory, and my build fails (with Codeblocks, Netbeans, and QT) because it cannot find this file. Can someone explain to me what I am doing wrong here?
> _________________________________________________________________
> Turn down-time into play-time with Messenger games
> http://go.microsoft.com/?linkid=9734385
>
> Send bugs reports to the Sourceforge bug tracker
> https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>
>
>
 		 	   		  
_________________________________________________________________
Look 'em in the eye: FREE Messenger video chat
http://go.microsoft.com/?linkid=9734386

Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"


Date2010-06-19 11:34
FromVictor Lazzarini
Subject[Csnd] Re: RE: Re: Re: Adding opcodes
Well, for one thing, Linux generally has all the tools for building  
programs, which windows does not have. For that alone, if you are  
thinking of developing, it makes sense. Looks like most of the trouble  
you had was related to the fact that you are on windows.

Victor
On 19 Jun 2010, at 11:06, Brian Wong wrote:

>
> Thanks very much for your responses. As per Victor's request I have  
> started a thread in the developers forum with respect to this. I  
> will try to adapt your makefile Francois. 5.12 is not yet available  
> for Windows, and in any case my main interest is in this is  
> understanding HOW to get plugins to work, though I admit I would  
> really like to check out your opcodes as well. Although I have  
> thought about it a lot, I really don't much want to switch to Linux,  
> I have plenty of frustration in my life without adding the pain and  
> suffering that will entail. Maybe if I was 30 years younger I might  
> consider spending the tens of thousands of hours needed needed to  
> master Linux, but life is just too short for that. It is different  
> for academics who get paid to do it and have experts all around you  
> every day, but for isolated home users like myself with limited time  
> to spend, things are not so easy.
> I probably spent about 200 hours on this opcode thing already, just  
> to get THIS far, trying 5 different C++ packages, having Visual C++  
> Express semi-destroy my computer (still not really fixed), futilely  
> downloading copies of sndfile.h from various packages, figuring out  
> Make and makefiles, etc etc etc. ANd I am still nowhere near getting  
> anything working. I can just imagine what switching to Linux would  
> be like, an all-encompassing ever-increasing frustration crescendo  
> for the rest of my life.
> BW
>
> ________________________________
>> From: Victor.Lazzarini@nuim.ie
>> To: csound@lists.bath.ac.uk
>> Date: Sat, 19 Jun 2010 10:35:20 +0100
>> Subject: [Csnd] Re: Re: Adding opcodes
>>
>> One typical mistake would be not to add -DUSE_DOUBLE. If the opcode  
>> is 32bit , csound will not load the DLL.
>>
>> Victor
>>
>> On 19 Jun 2010, at 10:11, Francois PINOT wrote:
>>
>> Hello Brian,
>>
>> I've been using Csound on linux for two years now. But when I  
>> developped the crossfm plugin, I was working on Windows with the  
>> csound 5.01 binary distro as far as I remember. You can see below  
>> the makefile I was using at that time. It can be used to compile  
>> other plugins, as chown here with the fluidOpdodes plugin.
>>
>> -------------------------------------------------------------------------------------------------------------
>>
>> USEDOUBLE = yes
>>
>> CC = C:/MinGW/bin/gcc
>> CXX = C:/MinGW/bin/g++
>> CFLAGS = -Wall -O3 -fno-inline-functions
>> ifeq ($(strip $(USEDOUBLE)),yes)
>> CFLAGS += -march=i586 -mtune=pentium3 -fomit-frame-pointer -ffast- 
>> math
>> CFLAGS += -DUSE_DOUBLE -DUSE_LRINT
>> else
>> CFLAGS += -march=pentium3 -fomit-frame-pointer -ffast-math
>> endif
>> H = C:/csound5/src/H
>> CFLAGS += -I. -I$(H) -IC:/fltk/include -DWIN32 -DPIPES - 
>> DHAVE_STDINT_H -DHAVE_DIRENT_H
>> CFLAGS += -DHAVE_UNISTD_H -DHAVE_FCNTL_H -DHAVE_SYS_TIME_H- 
>> DHAVE_SYS_TYPES_H
>> CFLAGS += -DPIC
>> LDFLAGS = -L.
>> LIBS = C:/MinGW/bin/libsndfile-1.dll C:/MinGW/bin/fluidsynth.dll
>> LIBS += -lgdi32 -luser32 -lkernel32 -lm
>>
>> PLUGINS = crossfm.dll fluidOpcodes.dll
>>
>> all: $(PLUGINS)
>>
>> Opcodes/%.o: Opcodes/%.c
>> $(CC) $(CFLAGS) -c $< -o $@
>>
>> %.oo: %.cpp
>> $(CXX) $(CFLAGS) -c $< -o $@
>>
>> crossfm.dll: Opcodes/crossfm.o
>> $(CC) -O2 -s -shared -o $@ $< $(LDFLAGS) $(LIBS)
>>
>> fluidOpcodes.dll: Opcodes/fluidOpcodes.o
>> $(CC) -O2 -s -shared -o $@ $< $(LDFLAGS) $(LIBS)
>>
>> -------------------------------------------------------------------------------------------------------------
>>
>> Otherwise, crossfm is included in the 5.12 distro isn't it?
>>
>> Finally, you might consider switching to linux. My current  
>> configuration is Ubuntu, with Windows XP running in a virtual  
>> machine (Virtual Box from sun site) when I (rarely) need it.
>>
>> Hope this helps
>>
>> Francois Pinot
>>
>> 2010/6/19 Brian Wong>
>>
>> Hi folks, I am trying to get the crossfm opcodes working from the  
>> Csound Journal Article "Cross Frequency Modulation" by Francois  
>> Pinot. Please understand that I am very much a beginner at C  
>> programming and could be missing some basic concept. I am running  
>> mingw on Windows XP, with Csound 5.11-d.
>> crossfm.c includes csdl.h, which includes csoundCore.h, which  
>> includes (among other files) . Because of the angle brackets I  
>> cannot tell whether this file is supposed to be part of Csound or  
>> my C compiler install.
>>
>> sndfile.h is NOT in the csound\include directory, and my build  
>> fails (with Codeblocks, Netbeans, and QT) because it cannot find  
>> this file. Can someone explain to me what I am doing wrong here?
>> _________________________________________________________________
>> Turn down-time into play-time with Messenger games
>> http://go.microsoft.com/?linkid=9734385
>>
>> Send bugs reports to the Sourceforge bug tracker
>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>> "unsubscribe csound"
>>
>>
>>
> 		 	   		
> _________________________________________________________________
> Look 'em in the eye: FREE Messenger video chat
> http://go.microsoft.com/?linkid=9734386
>
> Send bugs reports to the Sourceforge bug tracker
>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
> "unsubscribe csound"
>



Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2010-06-19 11:37
FromVictor Lazzarini
Subject[Csnd] Re: Re: RE: Re: Re: Adding opcodes
I meant 'comes with'  when I said have. Of course there are  
development tools for Windows, but you need to look for them and  
install. Much more cumbersome, IMHO.
On 19 Jun 2010, at 11:34, Victor Lazzarini wrote:

> Well, for one thing, Linux generally has all the tools for building  
> programs, which windows does not have. For that alone, if you are  
> thinking of developing, it makes sense. Looks like most of the  
> trouble you had was related to the fact that you are on windows.
>
> Victor
> On 19 Jun 2010, at 11:06, Brian Wong wrote:
>
>>
>> Thanks very much for your responses. As per Victor's request I have  
>> started a thread in the developers forum with respect to this. I  
>> will try to adapt your makefile Francois. 5.12 is not yet available  
>> for Windows, and in any case my main interest is in this is  
>> understanding HOW to get plugins to work, though I admit I would  
>> really like to check out your opcodes as well. Although I have  
>> thought about it a lot, I really don't much want to switch to  
>> Linux, I have plenty of frustration in my life without adding the  
>> pain and suffering that will entail. Maybe if I was 30 years  
>> younger I might consider spending the tens of thousands of hours  
>> needed needed to master Linux, but life is just too short for that.  
>> It is different for academics who get paid to do it and have  
>> experts all around you every day, but for isolated home users like  
>> myself with limited time to spend, things are not so easy.
>> I probably spent about 200 hours on this opcode thing already, just  
>> to get THIS far, trying 5 different C++ packages, having Visual C++  
>> Express semi-destroy my computer (still not really fixed), futilely  
>> downloading copies of sndfile.h from various packages, figuring out  
>> Make and makefiles, etc etc etc. ANd I am still nowhere near  
>> getting anything working. I can just imagine what switching to  
>> Linux would be like, an all-encompassing ever-increasing  
>> frustration crescendo for the rest of my life.
>> BW
>>
>> ________________________________
>>> From: Victor.Lazzarini@nuim.ie
>>> To: csound@lists.bath.ac.uk
>>> Date: Sat, 19 Jun 2010 10:35:20 +0100
>>> Subject: [Csnd] Re: Re: Adding opcodes
>>>
>>> One typical mistake would be not to add -DUSE_DOUBLE. If the  
>>> opcode is 32bit , csound will not load the DLL.
>>>
>>> Victor
>>>
>>> On 19 Jun 2010, at 10:11, Francois PINOT wrote:
>>>
>>> Hello Brian,
>>>
>>> I've been using Csound on linux for two years now. But when I  
>>> developped the crossfm plugin, I was working on Windows with the  
>>> csound 5.01 binary distro as far as I remember. You can see below  
>>> the makefile I was using at that time. It can be used to compile  
>>> other plugins, as chown here with the fluidOpdodes plugin.
>>>
>>> -------------------------------------------------------------------------------------------------------------
>>>
>>> USEDOUBLE = yes
>>>
>>> CC = C:/MinGW/bin/gcc
>>> CXX = C:/MinGW/bin/g++
>>> CFLAGS = -Wall -O3 -fno-inline-functions
>>> ifeq ($(strip $(USEDOUBLE)),yes)
>>> CFLAGS += -march=i586 -mtune=pentium3 -fomit-frame-pointer -ffast- 
>>> math
>>> CFLAGS += -DUSE_DOUBLE -DUSE_LRINT
>>> else
>>> CFLAGS += -march=pentium3 -fomit-frame-pointer -ffast-math
>>> endif
>>> H = C:/csound5/src/H
>>> CFLAGS += -I. -I$(H) -IC:/fltk/include -DWIN32 -DPIPES - 
>>> DHAVE_STDINT_H -DHAVE_DIRENT_H
>>> CFLAGS += -DHAVE_UNISTD_H -DHAVE_FCNTL_H -DHAVE_SYS_TIME_H- 
>>> DHAVE_SYS_TYPES_H
>>> CFLAGS += -DPIC
>>> LDFLAGS = -L.
>>> LIBS = C:/MinGW/bin/libsndfile-1.dll C:/MinGW/bin/fluidsynth.dll
>>> LIBS += -lgdi32 -luser32 -lkernel32 -lm
>>>
>>> PLUGINS = crossfm.dll fluidOpcodes.dll
>>>
>>> all: $(PLUGINS)
>>>
>>> Opcodes/%.o: Opcodes/%.c
>>> $(CC) $(CFLAGS) -c $< -o $@
>>>
>>> %.oo: %.cpp
>>> $(CXX) $(CFLAGS) -c $< -o $@
>>>
>>> crossfm.dll: Opcodes/crossfm.o
>>> $(CC) -O2 -s -shared -o $@ $< $(LDFLAGS) $(LIBS)
>>>
>>> fluidOpcodes.dll: Opcodes/fluidOpcodes.o
>>> $(CC) -O2 -s -shared -o $@ $< $(LDFLAGS) $(LIBS)
>>>
>>> -------------------------------------------------------------------------------------------------------------
>>>
>>> Otherwise, crossfm is included in the 5.12 distro isn't it?
>>>
>>> Finally, you might consider switching to linux. My current  
>>> configuration is Ubuntu, with Windows XP running in a virtual  
>>> machine (Virtual Box from sun site) when I (rarely) need it.
>>>
>>> Hope this helps
>>>
>>> Francois Pinot
>>>
>>> 2010/6/19 Brian Wong>
>>>
>>> Hi folks, I am trying to get the crossfm opcodes working from the  
>>> Csound Journal Article "Cross Frequency Modulation" by Francois  
>>> Pinot. Please understand that I am very much a beginner at C  
>>> programming and could be missing some basic concept. I am running  
>>> mingw on Windows XP, with Csound 5.11-d.
>>> crossfm.c includes csdl.h, which includes csoundCore.h, which  
>>> includes (among other files) . Because of the angle brackets I  
>>> cannot tell whether this file is supposed to be part of Csound or  
>>> my C compiler install.
>>>
>>> sndfile.h is NOT in the csound\include directory, and my build  
>>> fails (with Codeblocks, Netbeans, and QT) because it cannot find  
>>> this file. Can someone explain to me what I am doing wrong here?
>>> _________________________________________________________________
>>> Turn down-time into play-time with Messenger games
>>> http://go.microsoft.com/?linkid=9734385
>>>
>>> Send bugs reports to the Sourceforge bug tracker
>>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>> "unsubscribe csound"
>>>
>>>
>>>
>> 		 	   		
>> _________________________________________________________________
>> Look 'em in the eye: FREE Messenger video chat
>> http://go.microsoft.com/?linkid=9734386
>>
>> Send bugs reports to the Sourceforge bug tracker
>>           https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>> "unsubscribe csound"
>>
>
>
>
> Send bugs reports to the Sourceforge bug tracker
>           https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
> "unsubscribe csound"
>



Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2010-06-19 11:47
FromBrian Wong
Subject[Csnd] RE: Re: Re: RE: Re: Re: Adding opcodes
Well, I broke down and bought some cigarettes so I have calmed down. :)
Maybe you are right and I should try out Linux again. From what I read previously here it seemed like Fedora 12 was recommended? What other additional packages should I install?
Brian

----------------------------------------
> From: Victor.Lazzarini@nuim.ie
> To: csound@lists.bath.ac.uk
> Date: Sat, 19 Jun 2010 11:37:55 +0100
> Subject: [Csnd] Re: Re: RE: Re: Re: Adding opcodes
>
> I meant 'comes with' when I said have. Of course there are
> development tools for Windows, but you need to look for them and
> install. Much more cumbersome, IMHO.
> On 19 Jun 2010, at 11:34, Victor Lazzarini wrote:
>
>> Well, for one thing, Linux generally has all the tools for building
>> programs, which windows does not have. For that alone, if you are
>> thinking of developing, it makes sense. Looks like most of the
>> trouble you had was related to the fact that you are on windows.
>>
>> Victor
>> On 19 Jun 2010, at 11:06, Brian Wong wrote:
>>
>>>
>>> Thanks very much for your responses. As per Victor's request I have
>>> started a thread in the developers forum with respect to this. I
>>> will try to adapt your makefile Francois. 5.12 is not yet available
>>> for Windows, and in any case my main interest is in this is
>>> understanding HOW to get plugins to work, though I admit I would
>>> really like to check out your opcodes as well. Although I have
>>> thought about it a lot, I really don't much want to switch to
>>> Linux, I have plenty of frustration in my life without adding the
>>> pain and suffering that will entail. Maybe if I was 30 years
>>> younger I might consider spending the tens of thousands of hours
>>> needed needed to master Linux, but life is just too short for that.
>>> It is different for academics who get paid to do it and have
>>> experts all around you every day, but for isolated home users like
>>> myself with limited time to spend, things are not so easy.
>>> I probably spent about 200 hours on this opcode thing already, just
>>> to get THIS far, trying 5 different C++ packages, having Visual C++
>>> Express semi-destroy my computer (still not really fixed), futilely
>>> downloading copies of sndfile.h from various packages, figuring out
>>> Make and makefiles, etc etc etc. ANd I am still nowhere near
>>> getting anything working. I can just imagine what switching to
>>> Linux would be like, an all-encompassing ever-increasing
>>> frustration crescendo for the rest of my life.
>>> BW
>>>
>>> ________________________________
>>>> From: Victor.Lazzarini@nuim.ie
>>>> To: csound@lists.bath.ac.uk
>>>> Date: Sat, 19 Jun 2010 10:35:20 +0100
>>>> Subject: [Csnd] Re: Re: Adding opcodes
>>>>
>>>> One typical mistake would be not to add -DUSE_DOUBLE. If the
>>>> opcode is 32bit , csound will not load the DLL.
>>>>
>>>> Victor
>>>>
>>>> On 19 Jun 2010, at 10:11, Francois PINOT wrote:
>>>>
>>>> Hello Brian,
>>>>
>>>> I've been using Csound on linux for two years now. But when I
>>>> developped the crossfm plugin, I was working on Windows with the
>>>> csound 5.01 binary distro as far as I remember. You can see below
>>>> the makefile I was using at that time. It can be used to compile
>>>> other plugins, as chown here with the fluidOpdodes plugin.
>>>>
>>>> -------------------------------------------------------------------------------------------------------------
>>>>
>>>> USEDOUBLE = yes
>>>>
>>>> CC = C:/MinGW/bin/gcc
>>>> CXX = C:/MinGW/bin/g++
>>>> CFLAGS = -Wall -O3 -fno-inline-functions
>>>> ifeq ($(strip $(USEDOUBLE)),yes)
>>>> CFLAGS += -march=i586 -mtune=pentium3 -fomit-frame-pointer -ffast-
>>>> math
>>>> CFLAGS += -DUSE_DOUBLE -DUSE_LRINT
>>>> else
>>>> CFLAGS += -march=pentium3 -fomit-frame-pointer -ffast-math
>>>> endif
>>>> H = C:/csound5/src/H
>>>> CFLAGS += -I. -I$(H) -IC:/fltk/include -DWIN32 -DPIPES -
>>>> DHAVE_STDINT_H -DHAVE_DIRENT_H
>>>> CFLAGS += -DHAVE_UNISTD_H -DHAVE_FCNTL_H -DHAVE_SYS_TIME_H-
>>>> DHAVE_SYS_TYPES_H
>>>> CFLAGS += -DPIC
>>>> LDFLAGS = -L.
>>>> LIBS = C:/MinGW/bin/libsndfile-1.dll C:/MinGW/bin/fluidsynth.dll
>>>> LIBS += -lgdi32 -luser32 -lkernel32 -lm
>>>>
>>>> PLUGINS = crossfm.dll fluidOpcodes.dll
>>>>
>>>> all: $(PLUGINS)
>>>>
>>>> Opcodes/%.o: Opcodes/%.c
>>>> $(CC) $(CFLAGS) -c $< -o $@
>>>>
>>>> %.oo: %.cpp
>>>> $(CXX) $(CFLAGS) -c $< -o $@
>>>>
>>>> crossfm.dll: Opcodes/crossfm.o
>>>> $(CC) -O2 -s -shared -o $@ $< $(LDFLAGS) $(LIBS)
>>>>
>>>> fluidOpcodes.dll: Opcodes/fluidOpcodes.o
>>>> $(CC) -O2 -s -shared -o $@ $< $(LDFLAGS) $(LIBS)
>>>>
>>>> -------------------------------------------------------------------------------------------------------------
>>>>
>>>> Otherwise, crossfm is included in the 5.12 distro isn't it?
>>>>
>>>> Finally, you might consider switching to linux. My current
>>>> configuration is Ubuntu, with Windows XP running in a virtual
>>>> machine (Virtual Box from sun site) when I (rarely) need it.
>>>>
>>>> Hope this helps
>>>>
>>>> Francois Pinot
>>>>
>>>> 2010/6/19 Brian Wong>
>>>>
>>>> Hi folks, I am trying to get the crossfm opcodes working from the
>>>> Csound Journal Article "Cross Frequency Modulation" by Francois
>>>> Pinot. Please understand that I am very much a beginner at C
>>>> programming and could be missing some basic concept. I am running
>>>> mingw on Windows XP, with Csound 5.11-d.
>>>> crossfm.c includes csdl.h, which includes csoundCore.h, which
>>>> includes (among other files) . Because of the angle brackets I
>>>> cannot tell whether this file is supposed to be part of Csound or
>>>> my C compiler install.
>>>>
>>>> sndfile.h is NOT in the csound\include directory, and my build
>>>> fails (with Codeblocks, Netbeans, and QT) because it cannot find
>>>> this file. Can someone explain to me what I am doing wrong here?
>>>> _________________________________________________________________
>>>> Turn down-time into play-time with Messenger games
>>>> http://go.microsoft.com/?linkid=9734385
>>>>
>>>> Send bugs reports to the Sourceforge bug tracker
>>>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>> Discussions of bugs and features can be posted here
>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>>>> "unsubscribe csound"
>>>>
>>>>
>>>>
>>>
>>> _________________________________________________________________
>>> Look 'em in the eye: FREE Messenger video chat
>>> http://go.microsoft.com/?linkid=9734386
>>>
>>> Send bugs reports to the Sourceforge bug tracker
>>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>>> "unsubscribe csound"
>>>
>>
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>> "unsubscribe csound"
>>
>
>
>
> Send bugs reports to the Sourceforge bug tracker
> https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>
 		 	   		  
_________________________________________________________________
MSN Dating: Find someone special. Start now.
http://go.microsoft.com/?linkid=9734384

Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"


Date2010-06-19 12:30
Frommenno
Subject[Csnd] Re: Adding opcodes
Hi Brian,
i understand your frustration completly, perhaps it is an incent to try out a Linux distro. 
I work with UbuntuStudio10.04 and have a blog on the subject of installing Csound from CVS, so the latest (but beta) version possible.
http://www.csounds.com/node/1373
I tried OpenSuse but got problems with installing Portmidi, and Ubuntu worked so i concentrated on that one. Also i got good performance using Jack and Ardour. I do not know about Fedora, because that would give issues when you want to use the Nvidia-drivers which i do.

good luck
Menno

--- On Sat, 6/19/10, Brian Wong  wrote:

> From: Brian Wong 
> Subject: [Csnd] RE: Re: Re: RE: Re: Re: Adding opcodes
> To: csound@lists.bath.ac.uk
> Date: Saturday, June 19, 2010, 12:47 PM
> 
> Well, I broke down and bought some cigarettes so I have
> calmed down. :)
> Maybe you are right and I should try out Linux again. From
> what I read previously here it seemed like Fedora 12 was
> recommended? What other additional packages should I
> install?
> Brian
> 
> ----------------------------------------
> > From: Victor.Lazzarini@nuim.ie
> > To: csound@lists.bath.ac.uk
> > Date: Sat, 19 Jun 2010 11:37:55 +0100
> > Subject: [Csnd] Re: Re: RE: Re: Re: Adding opcodes
> >
> > I meant 'comes with' when I said have. Of course there
> are
> > development tools for Windows, but you need to look
> for them and
> > install. Much more cumbersome, IMHO.
> > On 19 Jun 2010, at 11:34, Victor Lazzarini wrote:
> >
> >> Well, for one thing, Linux generally has all the
> tools for building
> >> programs, which windows does not have. For that
> alone, if you are
> >> thinking of developing, it makes sense. Looks like
> most of the
> >> trouble you had was related to the fact that you
> are on windows.
> >>
> >> Victor
> >> On 19 Jun 2010, at 11:06, Brian Wong wrote:
> >>
> >>>
> >>> Thanks very much for your responses. As per
> Victor's request I have
> >>> started a thread in the developers forum with
> respect to this. I
> >>> will try to adapt your makefile Francois. 5.12
> is not yet available
> >>> for Windows, and in any case my main interest
> is in this is
> >>> understanding HOW to get plugins to work,
> though I admit I would
> >>> really like to check out your opcodes as well.
> Although I have
> >>> thought about it a lot, I really don't much
> want to switch to
> >>> Linux, I have plenty of frustration in my life
> without adding the
> >>> pain and suffering that will entail. Maybe if
> I was 30 years
> >>> younger I might consider spending the tens of
> thousands of hours
> >>> needed needed to master Linux, but life is
> just too short for that.
> >>> It is different for academics who get paid to
> do it and have
> >>> experts all around you every day, but for
> isolated home users like
> >>> myself with limited time to spend, things are
> not so easy.
> >>> I probably spent about 200 hours on this
> opcode thing already, just
> >>> to get THIS far, trying 5 different C++
> packages, having Visual C++
> >>> Express semi-destroy my computer (still not
> really fixed), futilely
> >>> downloading copies of sndfile.h from various
> packages, figuring out
> >>> Make and makefiles, etc etc etc. ANd I am
> still nowhere near
> >>> getting anything working. I can just imagine
> what switching to
> >>> Linux would be like, an all-encompassing
> ever-increasing
> >>> frustration crescendo for the rest of my
> life.
> >>> BW
> >>>
> >>> ________________________________
> >>>> From: Victor.Lazzarini@nuim.ie
> >>>> To: csound@lists.bath.ac.uk
> >>>> Date: Sat, 19 Jun 2010 10:35:20 +0100
> >>>> Subject: [Csnd] Re: Re: Adding opcodes
> >>>>
> >>>> One typical mistake would be not to add
> -DUSE_DOUBLE. If the
> >>>> opcode is 32bit , csound will not load the
> DLL.
> >>>>
> >>>> Victor
> >>>>
> >>>> On 19 Jun 2010, at 10:11, Francois PINOT
> wrote:
> >>>>
> >>>> Hello Brian,
> >>>>
> >>>> I've been using Csound on linux for two
> years now. But when I
> >>>> developped the crossfm plugin, I was
> working on Windows with the
> >>>> csound 5.01 binary distro as far as I
> remember. You can see below
> >>>> the makefile I was using at that time. It
> can be used to compile
> >>>> other plugins, as chown here with the
> fluidOpdodes plugin.
> >>>>
> >>>>
> -------------------------------------------------------------------------------------------------------------
> >>>>
> >>>> USEDOUBLE = yes
> >>>>
> >>>> CC = C:/MinGW/bin/gcc
> >>>> CXX = C:/MinGW/bin/g++
> >>>> CFLAGS = -Wall -O3 -fno-inline-functions
> >>>> ifeq ($(strip $(USEDOUBLE)),yes)
> >>>> CFLAGS += -march=i586 -mtune=pentium3
> -fomit-frame-pointer -ffast-
> >>>> math
> >>>> CFLAGS += -DUSE_DOUBLE -DUSE_LRINT
> >>>> else
> >>>> CFLAGS += -march=pentium3
> -fomit-frame-pointer -ffast-math
> >>>> endif
> >>>> H = C:/csound5/src/H
> >>>> CFLAGS += -I. -I$(H) -IC:/fltk/include
> -DWIN32 -DPIPES -
> >>>> DHAVE_STDINT_H -DHAVE_DIRENT_H
> >>>> CFLAGS += -DHAVE_UNISTD_H -DHAVE_FCNTL_H
> -DHAVE_SYS_TIME_H-
> >>>> DHAVE_SYS_TYPES_H
> >>>> CFLAGS += -DPIC
> >>>> LDFLAGS = -L.
> >>>> LIBS = C:/MinGW/bin/libsndfile-1.dll
> C:/MinGW/bin/fluidsynth.dll
> >>>> LIBS += -lgdi32 -luser32 -lkernel32 -lm
> >>>>
> >>>> PLUGINS = crossfm.dll fluidOpcodes.dll
> >>>>
> >>>> all: $(PLUGINS)
> >>>>
> >>>> Opcodes/%.o: Opcodes/%.c
> >>>> $(CC) $(CFLAGS) -c $< -o $@
> >>>>
> >>>> %.oo: %.cpp
> >>>> $(CXX) $(CFLAGS) -c $< -o $@
> >>>>
> >>>> crossfm.dll: Opcodes/crossfm.o
> >>>> $(CC) -O2 -s -shared -o $@ $<
> $(LDFLAGS) $(LIBS)
> >>>>
> >>>> fluidOpcodes.dll: Opcodes/fluidOpcodes.o
> >>>> $(CC) -O2 -s -shared -o $@ $<
> $(LDFLAGS) $(LIBS)
> >>>>
> >>>>
> -------------------------------------------------------------------------------------------------------------
> >>>>
> >>>> Otherwise, crossfm is included in the 5.12
> distro isn't it?
> >>>>
> >>>> Finally, you might consider switching to
> linux. My current
> >>>> configuration is Ubuntu, with Windows XP
> running in a virtual
> >>>> machine (Virtual Box from sun site) when I
> (rarely) need it.
> >>>>
> >>>> Hope this helps
> >>>>
> >>>> Francois Pinot
> >>>>
> >>>> 2010/6/19 Brian Wong>
> >>>>
> >>>> Hi folks, I am trying to get the crossfm
> opcodes working from the
> >>>> Csound Journal Article "Cross Frequency
> Modulation" by Francois
> >>>> Pinot. Please understand that I am very
> much a beginner at C
> >>>> programming and could be missing some
> basic concept. I am running
> >>>> mingw on Windows XP, with Csound 5.11-d.
> >>>> crossfm.c includes csdl.h, which includes
> csoundCore.h, which
> >>>> includes (among other files) . Because of
> the angle brackets I
> >>>> cannot tell whether this file is supposed
> to be part of Csound or
> >>>> my C compiler install.
> >>>>
> >>>> sndfile.h is NOT in the csound\include
> directory, and my build
> >>>> fails (with Codeblocks, Netbeans, and QT)
> because it cannot find
> >>>> this file. Can someone explain to me what
> I am doing wrong here?
> >>>>
> _________________________________________________________________
> >>>> Turn down-time into play-time with
> Messenger games
> >>>> http://go.microsoft.com/?linkid=9734385
> >>>>
> >>>> Send bugs reports to the Sourceforge bug
> tracker
> >>>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
> >>>> Discussions of bugs and features can be
> posted here
> >>>> To unsubscribe, send email sympa@lists.bath.ac.uk
> with body
> >>>> "unsubscribe csound"
> >>>>
> >>>>
> >>>>
> >>>
> >>>
> _________________________________________________________________
> >>> Look 'em in the eye: FREE Messenger video
> chat
> >>> http://go.microsoft.com/?linkid=9734386
> >>>
> >>> Send bugs reports to the Sourceforge bug
> tracker
> >>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
> >>> Discussions of bugs and features can be posted
> here
> >>> To unsubscribe, send email sympa@lists.bath.ac.uk
> with body
> >>> "unsubscribe csound"
> >>>
> >>
> >>
> >>
> >> Send bugs reports to the Sourceforge bug tracker
> >> https://sourceforge.net/tracker/?group_id=81968&atid=564599
> >> Discussions of bugs and features can be posted
> here
> >> To unsubscribe, send email sympa@lists.bath.ac.uk
> with body
> >> "unsubscribe csound"
> >>
> >
> >
> >
> > Send bugs reports to the Sourceforge bug tracker
> > https://sourceforge.net/tracker/?group_id=81968&atid=564599
> > Discussions of bugs and features can be posted here
> > To unsubscribe, send email sympa@lists.bath.ac.uk
> with body "unsubscribe csound"
> >
>     
>         
>           
>   
> _________________________________________________________________
> MSN Dating: Find someone special. Start now.
> http://go.microsoft.com/?linkid=9734384
> 
> Send bugs reports to the Sourceforge bug tracker
>             https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk
> with body "unsubscribe csound"
> 
> 






Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"


Date2010-06-19 14:33
FromFrancois PINOT
Subject[Csnd] Re: Adding opcodes
Come on Brian. Don't be so pessimistic! Ubuntu for example is really simple to install and use, and most of the packages needed are already there. There's a lot of documentation and help forums on the web and the community is really very active. The few hours spent to start are nothing compared to the benefits you'd get. And, as I said in my previous message, you still can use Windows in a virtual machine.

Francois Pinot



2010/6/19 menno <nabob_cd@yahoo.com>
Hi Brian,
i understand your frustration completly, perhaps it is an incent to try out a Linux distro.
I work with UbuntuStudio10.04 and have a blog on the subject of installing Csound from CVS, so the latest (but beta) version possible.
http://www.csounds.com/node/1373
I tried OpenSuse but got problems with installing Portmidi, and Ubuntu worked so i concentrated on that one. Also i got good performance using Jack and Ardour. I do not know about Fedora, because that would give issues when you want to use the Nvidia-drivers which i do.

good luck
Menno

--- On Sat, 6/19/10, Brian Wong <brian.wong1@hotmail.com> wrote:

> From: Brian Wong <brian.wong1@hotmail.com>
> Subject: [Csnd] RE: Re: Re: RE: Re: Re: Adding opcodes
> Date: Saturday, June 19, 2010, 12:47 PM
>
> Well, I broke down and bought some cigarettes so I have
> calmed down. :)
> Maybe you are right and I should try out Linux again. From
> what I read previously here it seemed like Fedora 12 was
> recommended? What other additional packages should I
> install?
> Brian
>
> ----------------------------------------
> > From: Victor.Lazzarini@nuim.ie
> > To: csound@lists.bath.ac.uk
> > Date: Sat, 19 Jun 2010 11:37:55 +0100
> > Subject: [Csnd] Re: Re: RE: Re: Re: Adding opcodes
> >
> > I meant 'comes with' when I said have. Of course there
> are
> > development tools for Windows, but you need to look
> for them and
> > install. Much more cumbersome, IMHO.
> > On 19 Jun 2010, at 11:34, Victor Lazzarini wrote:
> >
> >> Well, for one thing, Linux generally has all the
> tools for building
> >> programs, which windows does not have. For that
> alone, if you are
> >> thinking of developing, it makes sense. Looks like
> most of the
> >> trouble you had was related to the fact that you
> are on windows.
> >>
> >> Victor
> >> On 19 Jun 2010, at 11:06, Brian Wong wrote:
> >>
> >>>
> >>> Thanks very much for your responses. As per
> Victor's request I have
> >>> started a thread in the developers forum with
> respect to this. I
> >>> will try to adapt your makefile Francois. 5.12
> is not yet available
> >>> for Windows, and in any case my main interest
> is in this is
> >>> understanding HOW to get plugins to work,
> though I admit I would
> >>> really like to check out your opcodes as well.
> Although I have
> >>> thought about it a lot, I really don't much
> want to switch to
> >>> Linux, I have plenty of frustration in my life
> without adding the
> >>> pain and suffering that will entail. Maybe if
> I was 30 years
> >>> younger I might consider spending the tens of
> thousands of hours
> >>> needed needed to master Linux, but life is
> just too short for that.
> >>> It is different for academics who get paid to
> do it and have
> >>> experts all around you every day, but for
> isolated home users like
> >>> myself with limited time to spend, things are
> not so easy.
> >>> I probably spent about 200 hours on this
> opcode thing already, just
> >>> to get THIS far, trying 5 different C++
> packages, having Visual C++
> >>> Express semi-destroy my computer (still not
> really fixed), futilely
> >>> downloading copies of sndfile.h from various
> packages, figuring out
> >>> Make and makefiles, etc etc etc. ANd I am
> still nowhere near
> >>> getting anything working. I can just imagine
> what switching to
> >>> Linux would be like, an all-encompassing
> ever-increasing
> >>> frustration crescendo for the rest of my
> life.
> >>> BW
> >>>
> >>> ________________________________
> >>>> From: Victor.Lazzarini@nuim.ie
> >>>> To: csound@lists.bath.ac.uk
> >>>> Date: Sat, 19 Jun 2010 10:35:20 +0100
> >>>> Subject: [Csnd] Re: Re: Adding opcodes
> >>>>
> >>>> One typical mistake would be not to add
> -DUSE_DOUBLE. If the
> >>>> opcode is 32bit , csound will not load the
> DLL.
> >>>>
> >>>> Victor
> >>>>
> >>>> On 19 Jun 2010, at 10:11, Francois PINOT
> wrote:
> >>>>
> >>>> Hello Brian,
> >>>>
> >>>> I've been using Csound on linux for two
> years now. But when I
> >>>> developped the crossfm plugin, I was
> working on Windows with the
> >>>> csound 5.01 binary distro as far as I
> remember. You can see below
> >>>> the makefile I was using at that time. It
> can be used to compile
> >>>> other plugins, as chown here with the
> fluidOpdodes plugin.
> >>>>
> >>>>
> -------------------------------------------------------------------------------------------------------------
> >>>>
> >>>> USEDOUBLE = yes
> >>>>
> >>>> CC = C:/MinGW/bin/gcc
> >>>> CXX = C:/MinGW/bin/g++
> >>>> CFLAGS = -Wall -O3 -fno-inline-functions
> >>>> ifeq ($(strip $(USEDOUBLE)),yes)
> >>>> CFLAGS += -march=i586 -mtune=pentium3
> -fomit-frame-pointer -ffast-
> >>>> math
> >>>> CFLAGS += -DUSE_DOUBLE -DUSE_LRINT
> >>>> else
> >>>> CFLAGS += -march=pentium3
> -fomit-frame-pointer -ffast-math
> >>>> endif
> >>>> H = C:/csound5/src/H
> >>>> CFLAGS += -I. -I$(H) -IC:/fltk/include
> -DWIN32 -DPIPES -
> >>>> DHAVE_STDINT_H -DHAVE_DIRENT_H
> >>>> CFLAGS += -DHAVE_UNISTD_H -DHAVE_FCNTL_H
> -DHAVE_SYS_TIME_H-
> >>>> DHAVE_SYS_TYPES_H
> >>>> CFLAGS += -DPIC
> >>>> LDFLAGS = -L.
> >>>> LIBS = C:/MinGW/bin/libsndfile-1.dll
> C:/MinGW/bin/fluidsynth.dll
> >>>> LIBS += -lgdi32 -luser32 -lkernel32 -lm
> >>>>
> >>>> PLUGINS = crossfm.dll fluidOpcodes.dll
> >>>>
> >>>> all: $(PLUGINS)
> >>>>
> >>>> Opcodes/%.o: Opcodes/%.c
> >>>> $(CC) $(CFLAGS) -c $< -o $@
> >>>>
> >>>> %.oo: %.cpp
> >>>> $(CXX) $(CFLAGS) -c $< -o $@
> >>>>
> >>>> crossfm.dll: Opcodes/crossfm.o
> >>>> $(CC) -O2 -s -shared -o $@ $<
> $(LDFLAGS) $(LIBS)
> >>>>
> >>>> fluidOpcodes.dll: Opcodes/fluidOpcodes.o
> >>>> $(CC) -O2 -s -shared -o $@ $<
> $(LDFLAGS) $(LIBS)
> >>>>
> >>>>
> -------------------------------------------------------------------------------------------------------------
> >>>>
> >>>> Otherwise, crossfm is included in the 5.12
> distro isn't it?
> >>>>
> >>>> Finally, you might consider switching to
> linux. My current
> >>>> configuration is Ubuntu, with Windows XP
> running in a virtual
> >>>> machine (Virtual Box from sun site) when I
> (rarely) need it.
> >>>>
> >>>> Hope this helps
> >>>>
> >>>> Francois Pinot
> >>>>
> >>>> 2010/6/19 Brian Wong>
> >>>>
> >>>> Hi folks, I am trying to get the crossfm
> opcodes working from the
> >>>> Csound Journal Article "Cross Frequency
> Modulation" by Francois
> >>>> Pinot. Please understand that I am very
> much a beginner at C
> >>>> programming and could be missing some
> basic concept. I am running
> >>>> mingw on Windows XP, with Csound 5.11-d.
> >>>> crossfm.c includes csdl.h, which includes
> csoundCore.h, which
> >>>> includes (among other files) . Because of
> the angle brackets I
> >>>> cannot tell whether this file is supposed
> to be part of Csound or
> >>>> my C compiler install.
> >>>>
> >>>> sndfile.h is NOT in the csound\include
> directory, and my build
> >>>> fails (with Codeblocks, Netbeans, and QT)
> because it cannot find
> >>>> this file. Can someone explain to me what
> I am doing wrong here?
> >>>>
> _________________________________________________________________
> >>>> Turn down-time into play-time with
> Messenger games
> >>>> http://go.microsoft.com/?linkid=9734385
> >>>>
> >>>> Send bugs reports to the Sourceforge bug
> tracker
> >>>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
> >>>> Discussions of bugs and features can be
> posted here
> >>>> To unsubscribe, send email sympa@lists.bath.ac.uk
> with body
> >>>> "unsubscribe csound"
> >>>>
> >>>>
> >>>>
> >>>
> >>>
> _________________________________________________________________
> >>> Look 'em in the eye: FREE Messenger video
> chat
> >>> http://go.microsoft.com/?linkid=9734386
> >>>
> >>> Send bugs reports to the Sourceforge bug
> tracker
> >>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
> >>> Discussions of bugs and features can be posted
> here
> >>> To unsubscribe, send email sympa@lists.bath.ac.uk
> with body
> >>> "unsubscribe csound"
> >>>
> >>
> >>
> >>
> >> Send bugs reports to the Sourceforge bug tracker
> >> https://sourceforge.net/tracker/?group_id=81968&atid=564599
> >> Discussions of bugs and features can be posted
> here
> >> To unsubscribe, send email sympa@lists.bath.ac.uk
> with body
> >> "unsubscribe csound"
> >>
> >
> >
> >
> > Send bugs reports to the Sourceforge bug tracker
> > https://sourceforge.net/tracker/?group_id=81968&atid=564599
> > Discussions of bugs and features can be posted here
> > To unsubscribe, send email sympa@lists.bath.ac.uk
> with body "unsubscribe csound"
> >
>     
>         
>           
>  
> _________________________________________________________________
> MSN Dating: Find someone special. Start now.
> http://go.microsoft.com/?linkid=9734384
>
> Send bugs reports to the Sourceforge bug tracker
>             https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk
> with body "unsubscribe csound"
>
>






Send bugs reports to the Sourceforge bug tracker
           https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"



Date2010-06-19 20:07
FromBrian Wong
Subject[Csnd] RE: Re: Adding opcodes
Ok, I am going to try Ubuntu.

________________________________
> Date: Sat, 19 Jun 2010 15:33:31 +0200
> From: fggpinot@gmail.com
> To: csound@lists.bath.ac.uk
> Subject: [Csnd] Re: Adding opcodes
>
> Come on Brian. Don't be so pessimistic! Ubuntu for example is really simple to install and use, and most of the packages needed are already there. There's a lot of documentation and help forums on the web and the community is really very active. The few hours spent to start are nothing compared to the benefits you'd get. And, as I said in my previous message, you still can use Windows in a virtual machine.
>
> Francois Pinot
>
>
>
> 2010/6/19 menno>
> Hi Brian,
> i understand your frustration completly, perhaps it is an incent to try out a Linux distro.
> I work with UbuntuStudio10.04 and have a blog on the subject of installing Csound from CVS, so the latest (but beta) version possible.
> http://www.csounds.com/node/1373
> I tried OpenSuse but got problems with installing Portmidi, and Ubuntu worked so i concentrated on that one. Also i got good performance using Jack and Ardour. I do not know about Fedora, because that would give issues when you want to use the Nvidia-drivers which i do.
>
> good luck
> Menno
>
> --- On Sat, 6/19/10, Brian Wong> wrote:
>
>> From: Brian Wong>
>> Subject: [Csnd] RE: Re: Re: RE: Re: Re: Adding opcodes
>> To: csound@lists.bath.ac.uk
>> Date: Saturday, June 19, 2010, 12:47 PM
>>
>> Well, I broke down and bought some cigarettes so I have
>> calmed down. :)
>> Maybe you are right and I should try out Linux again. From
>> what I read previously here it seemed like Fedora 12 was
>> recommended? What other additional packages should I
>> install?
>> Brian
>>
>> ----------------------------------------
>>> From: Victor.Lazzarini@nuim.ie
>>> To: csound@lists.bath.ac.uk
>>> Date: Sat, 19 Jun 2010 11:37:55 +0100
>>> Subject: [Csnd] Re: Re: RE: Re: Re: Adding opcodes
>>>
>>> I meant 'comes with' when I said have. Of course there
>> are
>>> development tools for Windows, but you need to look
>> for them and
>>> install. Much more cumbersome, IMHO.
>>> On 19 Jun 2010, at 11:34, Victor Lazzarini wrote:
>>>
>>>> Well, for one thing, Linux generally has all the
>> tools for building
>>>> programs, which windows does not have. For that
>> alone, if you are
>>>> thinking of developing, it makes sense. Looks like
>> most of the
>>>> trouble you had was related to the fact that you
>> are on windows.
>>>>
>>>> Victor
>>>> On 19 Jun 2010, at 11:06, Brian Wong wrote:
>>>>
>>>>>
>>>>> Thanks very much for your responses. As per
>> Victor's request I have
>>>>> started a thread in the developers forum with
>> respect to this. I
>>>>> will try to adapt your makefile Francois. 5.12
>> is not yet available
>>>>> for Windows, and in any case my main interest
>> is in this is
>>>>> understanding HOW to get plugins to work,
>> though I admit I would
>>>>> really like to check out your opcodes as well.
>> Although I have
>>>>> thought about it a lot, I really don't much
>> want to switch to
>>>>> Linux, I have plenty of frustration in my life
>> without adding the
>>>>> pain and suffering that will entail. Maybe if
>> I was 30 years
>>>>> younger I might consider spending the tens of
>> thousands of hours
>>>>> needed needed to master Linux, but life is
>> just too short for that.
>>>>> It is different for academics who get paid to
>> do it and have
>>>>> experts all around you every day, but for
>> isolated home users like
>>>>> myself with limited time to spend, things are
>> not so easy.
>>>>> I probably spent about 200 hours on this
>> opcode thing already, just
>>>>> to get THIS far, trying 5 different C++
>> packages, having Visual C++
>>>>> Express semi-destroy my computer (still not
>> really fixed), futilely
>>>>> downloading copies of sndfile.h from various
>> packages, figuring out
>>>>> Make and makefiles, etc etc etc. ANd I am
>> still nowhere near
>>>>> getting anything working. I can just imagine
>> what switching to
>>>>> Linux would be like, an all-encompassing
>> ever-increasing
>>>>> frustration crescendo for the rest of my
>> life.
>>>>> BW
>>>>>
>>>>> ________________________________
>>>>>> From: Victor.Lazzarini@nuim.ie
>>>>>> To: csound@lists.bath.ac.uk
>>>>>> Date: Sat, 19 Jun 2010 10:35:20 +0100
>>>>>> Subject: [Csnd] Re: Re: Adding opcodes
>>>>>>
>>>>>> One typical mistake would be not to add
>> -DUSE_DOUBLE. If the
>>>>>> opcode is 32bit , csound will not load the
>> DLL.
>>>>>>
>>>>>> Victor
>>>>>>
>>>>>> On 19 Jun 2010, at 10:11, Francois PINOT
>> wrote:
>>>>>>
>>>>>> Hello Brian,
>>>>>>
>>>>>> I've been using Csound on linux for two
>> years now. But when I
>>>>>> developped the crossfm plugin, I was
>> working on Windows with the
>>>>>> csound 5.01 binary distro as far as I
>> remember. You can see below
>>>>>> the makefile I was using at that time. It
>> can be used to compile
>>>>>> other plugins, as chown here with the
>> fluidOpdodes plugin.
>>>>>>
>>>>>>
>> -------------------------------------------------------------------------------------------------------------
>>>>>>
>>>>>> USEDOUBLE = yes
>>>>>>
>>>>>> CC = C:/MinGW/bin/gcc
>>>>>> CXX = C:/MinGW/bin/g++
>>>>>> CFLAGS = -Wall -O3 -fno-inline-functions
>>>>>> ifeq ($(strip $(USEDOUBLE)),yes)
>>>>>> CFLAGS += -march=i586 -mtune=pentium3
>> -fomit-frame-pointer -ffast-
>>>>>> math
>>>>>> CFLAGS += -DUSE_DOUBLE -DUSE_LRINT
>>>>>> else
>>>>>> CFLAGS += -march=pentium3
>> -fomit-frame-pointer -ffast-math
>>>>>> endif
>>>>>> H = C:/csound5/src/H
>>>>>> CFLAGS += -I. -I$(H) -IC:/fltk/include
>> -DWIN32 -DPIPES -
>>>>>> DHAVE_STDINT_H -DHAVE_DIRENT_H
>>>>>> CFLAGS += -DHAVE_UNISTD_H -DHAVE_FCNTL_H
>> -DHAVE_SYS_TIME_H-
>>>>>> DHAVE_SYS_TYPES_H
>>>>>> CFLAGS += -DPIC
>>>>>> LDFLAGS = -L.
>>>>>> LIBS = C:/MinGW/bin/libsndfile-1.dll
>> C:/MinGW/bin/fluidsynth.dll
>>>>>> LIBS += -lgdi32 -luser32 -lkernel32 -lm
>>>>>>
>>>>>> PLUGINS = crossfm.dll fluidOpcodes.dll
>>>>>>
>>>>>> all: $(PLUGINS)
>>>>>>
>>>>>> Opcodes/%.o: Opcodes/%.c
>>>>>> $(CC) $(CFLAGS) -c $< -o $@
>>>>>>
>>>>>> %.oo: %.cpp
>>>>>> $(CXX) $(CFLAGS) -c $< -o $@
>>>>>>
>>>>>> crossfm.dll: Opcodes/crossfm.o
>>>>>> $(CC) -O2 -s -shared -o $@ $<
>> $(LDFLAGS) $(LIBS)
>>>>>>
>>>>>> fluidOpcodes.dll: Opcodes/fluidOpcodes.o
>>>>>> $(CC) -O2 -s -shared -o $@ $<
>> $(LDFLAGS) $(LIBS)
>>>>>>
>>>>>>
>> -------------------------------------------------------------------------------------------------------------
>>>>>>
>>>>>> Otherwise, crossfm is included in the 5.12
>> distro isn't it?
>>>>>>
>>>>>> Finally, you might consider switching to
>> linux. My current
>>>>>> configuration is Ubuntu, with Windows XP
>> running in a virtual
>>>>>> machine (Virtual Box from sun site) when I
>> (rarely) need it.
>>>>>>
>>>>>> Hope this helps
>>>>>>
>>>>>> Francois Pinot
>>>>>>
>>>>>> 2010/6/19 Brian Wong>
>>>>>>
>>>>>> Hi folks, I am trying to get the crossfm
>> opcodes working from the
>>>>>> Csound Journal Article "Cross Frequency
>> Modulation" by Francois
>>>>>> Pinot. Please understand that I am very
>> much a beginner at C
>>>>>> programming and could be missing some
>> basic concept. I am running
>>>>>> mingw on Windows XP, with Csound 5.11-d.
>>>>>> crossfm.c includes csdl.h, which includes
>> csoundCore.h, which
>>>>>> includes (among other files) . Because of
>> the angle brackets I
>>>>>> cannot tell whether this file is supposed
>> to be part of Csound or
>>>>>> my C compiler install.
>>>>>>
>>>>>> sndfile.h is NOT in the csound\include
>> directory, and my build
>>>>>> fails (with Codeblocks, Netbeans, and QT)
>> because it cannot find
>>>>>> this file. Can someone explain to me what
>> I am doing wrong here?
>>>>>>
>> _________________________________________________________________
>>>>>> Turn down-time into play-time with
>> Messenger games
>>>>>> http://go.microsoft.com/?linkid=9734385
>>>>>>
>>>>>> Send bugs reports to the Sourceforge bug
>> tracker
>>>>>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>>> Discussions of bugs and features can be
>> posted here
>>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk
>> with body
>>>>>> "unsubscribe csound"
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>> _________________________________________________________________
>>>>> Look 'em in the eye: FREE Messenger video
>> chat
>>>>> http://go.microsoft.com/?linkid=9734386
>>>>>
>>>>> Send bugs reports to the Sourceforge bug
>> tracker
>>>>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>> Discussions of bugs and features can be posted
>> here
>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk
>> with body
>>>>> "unsubscribe csound"
>>>>>
>>>>
>>>>
>>>>
>>>> Send bugs reports to the Sourceforge bug tracker
>>>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>> Discussions of bugs and features can be posted
>> here
>>>> To unsubscribe, send email sympa@lists.bath.ac.uk
>> with body
>>>> "unsubscribe csound"
>>>>
>>>
>>>
>>>
>>> Send bugs reports to the Sourceforge bug tracker
>>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email sympa@lists.bath.ac.uk
>> with body "unsubscribe csound"
>>>
>>
>>
>>
>>
>> _________________________________________________________________
>> MSN Dating: Find someone special. Start now.
>> http://go.microsoft.com/?linkid=9734384
>>
>> Send bugs reports to the Sourceforge bug tracker
>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk
>> with body "unsubscribe csound"
>>
>>
>
>
>
>
>
>
> Send bugs reports to the Sourceforge bug tracker
> https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>
>
 		 	   		  
_________________________________________________________________
MSN Dating: Find someone special. Start now.
http://go.microsoft.com/?linkid=9734384

Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"


Date2010-06-19 20:10
FromFrancois PINOT
Subject[Csnd] Re: Adding opcodes
If you need help, you can contact me privately

Francois Pinot


2010/6/19 Brian Wong <brian.wong1@hotmail.com>

Ok, I am going to try Ubuntu.

________________________________
> Date: Sat, 19 Jun 2010 15:33:31 +0200
> From: fggpinot@gmail.com
> Subject: [Csnd] Re: Adding opcodes
>
> Come on Brian. Don't be so pessimistic! Ubuntu for example is really simple to install and use, and most of the packages needed are already there. There's a lot of documentation and help forums on the web and the community is really very active. The few hours spent to start are nothing compared to the benefits you'd get. And, as I said in my previous message, you still can use Windows in a virtual machine.
>
> Francois Pinot
>
>
>
> 2010/6/19 menno>
> Hi Brian,
> i understand your frustration completly, perhaps it is an incent to try out a Linux distro.
> I work with UbuntuStudio10.04 and have a blog on the subject of installing Csound from CVS, so the latest (but beta) version possible.
> http://www.csounds.com/node/1373
> I tried OpenSuse but got problems with installing Portmidi, and Ubuntu worked so i concentrated on that one. Also i got good performance using Jack and Ardour. I do not know about Fedora, because that would give issues when you want to use the Nvidia-drivers which i do.
>
> good luck
> Menno
>
> --- On Sat, 6/19/10, Brian Wong> wrote:
>
>> From: Brian Wong>
>> Subject: [Csnd] RE: Re: Re: RE: Re: Re: Adding opcodes
>> To: csound@lists.bath.ac.uk
>> Date: Saturday, June 19, 2010, 12:47 PM
>>
>> Well, I broke down and bought some cigarettes so I have
>> calmed down. :)
>> Maybe you are right and I should try out Linux again. From
>> what I read previously here it seemed like Fedora 12 was
>> recommended? What other additional packages should I
>> install?
>> Brian
>>
>> ----------------------------------------
>>> From: Victor.Lazzarini@nuim.ie
>>> To: csound@lists.bath.ac.uk
>>> Date: Sat, 19 Jun 2010 11:37:55 +0100
>>> Subject: [Csnd] Re: Re: RE: Re: Re: Adding opcodes
>>>
>>> I meant 'comes with' when I said have. Of course there
>> are
>>> development tools for Windows, but you need to look
>> for them and
>>> install. Much more cumbersome, IMHO.
>>> On 19 Jun 2010, at 11:34, Victor Lazzarini wrote:
>>>
>>>> Well, for one thing, Linux generally has all the
>> tools for building
>>>> programs, which windows does not have. For that
>> alone, if you are
>>>> thinking of developing, it makes sense. Looks like
>> most of the
>>>> trouble you had was related to the fact that you
>> are on windows.
>>>>
>>>> Victor
>>>> On 19 Jun 2010, at 11:06, Brian Wong wrote:
>>>>
>>>>>
>>>>> Thanks very much for your responses. As per
>> Victor's request I have
>>>>> started a thread in the developers forum with
>> respect to this. I
>>>>> will try to adapt your makefile Francois. 5.12
>> is not yet available
>>>>> for Windows, and in any case my main interest
>> is in this is
>>>>> understanding HOW to get plugins to work,
>> though I admit I would
>>>>> really like to check out your opcodes as well.
>> Although I have
>>>>> thought about it a lot, I really don't much
>> want to switch to
>>>>> Linux, I have plenty of frustration in my life
>> without adding the
>>>>> pain and suffering that will entail. Maybe if
>> I was 30 years
>>>>> younger I might consider spending the tens of
>> thousands of hours
>>>>> needed needed to master Linux, but life is
>> just too short for that.
>>>>> It is different for academics who get paid to
>> do it and have
>>>>> experts all around you every day, but for
>> isolated home users like
>>>>> myself with limited time to spend, things are
>> not so easy.
>>>>> I probably spent about 200 hours on this
>> opcode thing already, just
>>>>> to get THIS far, trying 5 different C++
>> packages, having Visual C++
>>>>> Express semi-destroy my computer (still not
>> really fixed), futilely
>>>>> downloading copies of sndfile.h from various
>> packages, figuring out
>>>>> Make and makefiles, etc etc etc. ANd I am
>> still nowhere near
>>>>> getting anything working. I can just imagine
>> what switching to
>>>>> Linux would be like, an all-encompassing
>> ever-increasing
>>>>> frustration crescendo for the rest of my
>> life.
>>>>> BW
>>>>>
>>>>> ________________________________
>>>>>> From: Victor.Lazzarini@nuim.ie
>>>>>> To: csound@lists.bath.ac.uk
>>>>>> Date: Sat, 19 Jun 2010 10:35:20 +0100
>>>>>> Subject: [Csnd] Re: Re: Adding opcodes
>>>>>>
>>>>>> One typical mistake would be not to add
>> -DUSE_DOUBLE. If the
>>>>>> opcode is 32bit , csound will not load the
>> DLL.
>>>>>>
>>>>>> Victor
>>>>>>
>>>>>> On 19 Jun 2010, at 10:11, Francois PINOT
>> wrote:
>>>>>>
>>>>>> Hello Brian,
>>>>>>
>>>>>> I've been using Csound on linux for two
>> years now. But when I
>>>>>> developped the crossfm plugin, I was
>> working on Windows with the
>>>>>> csound 5.01 binary distro as far as I
>> remember. You can see below
>>>>>> the makefile I was using at that time. It
>> can be used to compile
>>>>>> other plugins, as chown here with the
>> fluidOpdodes plugin.
>>>>>>
>>>>>>
>> -------------------------------------------------------------------------------------------------------------
>>>>>>
>>>>>> USEDOUBLE = yes
>>>>>>
>>>>>> CC = C:/MinGW/bin/gcc
>>>>>> CXX = C:/MinGW/bin/g++
>>>>>> CFLAGS = -Wall -O3 -fno-inline-functions
>>>>>> ifeq ($(strip $(USEDOUBLE)),yes)
>>>>>> CFLAGS += -march=i586 -mtune=pentium3
>> -fomit-frame-pointer -ffast-
>>>>>> math
>>>>>> CFLAGS += -DUSE_DOUBLE -DUSE_LRINT
>>>>>> else
>>>>>> CFLAGS += -march=pentium3
>> -fomit-frame-pointer -ffast-math
>>>>>> endif
>>>>>> H = C:/csound5/src/H
>>>>>> CFLAGS += -I. -I$(H) -IC:/fltk/include
>> -DWIN32 -DPIPES -
>>>>>> DHAVE_STDINT_H -DHAVE_DIRENT_H
>>>>>> CFLAGS += -DHAVE_UNISTD_H -DHAVE_FCNTL_H
>> -DHAVE_SYS_TIME_H-
>>>>>> DHAVE_SYS_TYPES_H
>>>>>> CFLAGS += -DPIC
>>>>>> LDFLAGS = -L.
>>>>>> LIBS = C:/MinGW/bin/libsndfile-1.dll
>> C:/MinGW/bin/fluidsynth.dll
>>>>>> LIBS += -lgdi32 -luser32 -lkernel32 -lm
>>>>>>
>>>>>> PLUGINS = crossfm.dll fluidOpcodes.dll
>>>>>>
>>>>>> all: $(PLUGINS)
>>>>>>
>>>>>> Opcodes/%.o: Opcodes/%.c
>>>>>> $(CC) $(CFLAGS) -c $< -o $@
>>>>>>
>>>>>> %.oo: %.cpp
>>>>>> $(CXX) $(CFLAGS) -c $< -o $@
>>>>>>
>>>>>> crossfm.dll: Opcodes/crossfm.o
>>>>>> $(CC) -O2 -s -shared -o $@ $<
>> $(LDFLAGS) $(LIBS)
>>>>>>
>>>>>> fluidOpcodes.dll: Opcodes/fluidOpcodes.o
>>>>>> $(CC) -O2 -s -shared -o $@ $<
>> $(LDFLAGS) $(LIBS)
>>>>>>
>>>>>>
>> -------------------------------------------------------------------------------------------------------------
>>>>>>
>>>>>> Otherwise, crossfm is included in the 5.12
>> distro isn't it?
>>>>>>
>>>>>> Finally, you might consider switching to
>> linux. My current
>>>>>> configuration is Ubuntu, with Windows XP
>> running in a virtual
>>>>>> machine (Virtual Box from sun site) when I
>> (rarely) need it.
>>>>>>
>>>>>> Hope this helps
>>>>>>
>>>>>> Francois Pinot
>>>>>>
>>>>>> 2010/6/19 Brian Wong>
>>>>>>
>>>>>> Hi folks, I am trying to get the crossfm
>> opcodes working from the
>>>>>> Csound Journal Article "Cross Frequency
>> Modulation" by Francois
>>>>>> Pinot. Please understand that I am very
>> much a beginner at C
>>>>>> programming and could be missing some
>> basic concept. I am running
>>>>>> mingw on Windows XP, with Csound 5.11-d.
>>>>>> crossfm.c includes csdl.h, which includes
>> csoundCore.h, which
>>>>>> includes (among other files) . Because of
>> the angle brackets I
>>>>>> cannot tell whether this file is supposed
>> to be part of Csound or
>>>>>> my C compiler install.
>>>>>>
>>>>>> sndfile.h is NOT in the csound\include
>> directory, and my build
>>>>>> fails (with Codeblocks, Netbeans, and QT)
>> because it cannot find
>>>>>> this file. Can someone explain to me what
>> I am doing wrong here?
>>>>>>
>> _________________________________________________________________
>>>>>> Turn down-time into play-time with
>> Messenger games
>>>>>> http://go.microsoft.com/?linkid=9734385
>>>>>>
>>>>>> Send bugs reports to the Sourceforge bug
>> tracker
>>>>>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>>> Discussions of bugs and features can be
>> posted here
>>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk
>> with body
>>>>>> "unsubscribe csound"
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>> _________________________________________________________________
>>>>> Look 'em in the eye: FREE Messenger video
>> chat
>>>>> http://go.microsoft.com/?linkid=9734386
>>>>>
>>>>> Send bugs reports to the Sourceforge bug
>> tracker
>>>>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>> Discussions of bugs and features can be posted
>> here
>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk
>> with body
>>>>> "unsubscribe csound"
>>>>>
>>>>
>>>>
>>>>
>>>> Send bugs reports to the Sourceforge bug tracker
>>>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>> Discussions of bugs and features can be posted
>> here
>>>> To unsubscribe, send email sympa@lists.bath.ac.uk
>> with body
>>>> "unsubscribe csound"
>>>>
>>>
>>>
>>>
>>> Send bugs reports to the Sourceforge bug tracker
>>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email sympa@lists.bath.ac.uk
>> with body "unsubscribe csound"
>>>
>>
>>
>>
>>
>> _________________________________________________________________
>> MSN Dating: Find someone special. Start now.
>> http://go.microsoft.com/?linkid=9734384
>>
>> Send bugs reports to the Sourceforge bug tracker
>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk
>> with body "unsubscribe csound"
>>
>>
>
>
>
>
>
>
> Send bugs reports to the Sourceforge bug tracker
> https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>
>

_________________________________________________________________
MSN Dating: Find someone special. Start now.
http://go.microsoft.com/?linkid=9734384

Send bugs reports to the Sourceforge bug tracker
           https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"



Date2010-06-19 20:41
FromMichael Gogins
Subject[Csnd] Re: Re: Adding opcodes

On windows install mingw from twilight dragon media, then install msys. Then follow instructions in csound-build.tex in csound cvs to build all of csound. To build only an opcode, just make a .bat file to call gcc with the right options.

Building on windows is not harder than on Linux except for installing gcc and libraries and figuring gcc options.

MKG from cell phone

On Jun 19, 2010 3:11 PM, "Francois PINOT" <fggpinot@gmail.com> wrote:

If you need help, you can contact me privately

Francois Pinot


2010/6/19 Brian Wong <brian.wong1@hotmail.com>


>
>
> Ok, I am going to try Ubuntu.
>
> ________________________________
> > Date: Sat, 19 Jun 2010...



Date2010-06-20 09:32
FromBrian Wong
Subject[Csnd] RE: Re: Re: Adding opcodes
Thanks Michael, I will give that a try. I have installed Ubuntu and played around with it a bit, but for now doing things on Windows is easier for me.
BW

________________________________
> Date: Sat, 19 Jun 2010 15:41:44 -0400
> From: michael.gogins@gmail.com
> To: csound@lists.bath.ac.uk
> Subject: [Csnd] Re: Re: Adding opcodes
>
>
> On windows install mingw from twilight dragon media, then install msys. Then follow instructions in csound-build.tex in csound cvs to build all of csound. To build only an opcode, just make a .bat file to call gcc with the right options.
>
>
>
> Building on windows is not harder than on Linux except for installing gcc and libraries and figuring gcc options.
>
>
> MKG from cell phone
>
>
> On Jun 19, 2010 3:11 PM, "Francois PINOT"> wrote:
>
> If you need help, you can contact me privately
>
> Francois Pinot
>
>
>
> 2010/6/19 Brian Wong>
>
>>
>>
>> Ok, I am going to try Ubuntu.
>
>>
>> ________________________________
>>> Date: Sat, 19 Jun 2010...
>
>
 		 	   		  
_________________________________________________________________
Game on: Challenge friends to great games on Messenger
http://go.microsoft.com/?linkid=9734387

Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"