Csound Csound-dev Csound-tekno Search About

Het_export

Date2007-09-17 01:31
Frompeiman
SubjectHet_export
Hello,

I am trying to convert some hetro files to text and vise versa on mac osx
ppc. but I keep on gettin this error when using het_export:

peiman-khosravis-powerbook59:~ peimankhosravi$ csound -U het_export
/Users/peimankhosravi/Cecilia/CeciliaAN/africa.aiff.523.het textfile
Localisation of messages is disabled, using default language.
PortMIDI real time MIDI plugin for Csound
PortAudio real-time audio module for Csound
virtual_keyboard real time MIDI plugin for Csound
0dBFS level = 32768.0
Csound version 5.06 (float samples) Jun  8 2007
libsndfile-1.0.16
util het_export:
file /Users/peimankhosravi/Cecilia/CeciliaAN/africa.aiff.523.het (17190
bytes) loaded into memory
Cannot write output file textfile

when doing the reverse with het_import I get this:

 Segmentation fault

Am I doing something wrong here?

Also I was wandering if it is necessary to use het_import to write files for
adsyn or can the file be directly created using a text editor?

Many Thanks in advance
Peiman
-- 
View this message in context: http://www.nabble.com/Het_export-tf4463656.html#a12727679
Sent from the Csound - General mailing list archive at Nabble.com.

Date2007-09-17 16:29
Frompeiman
SubjectRe: Het_export
Hello again,

I have been testing this further. I have tried all my .het files and they
seem OK as far as adsyn in concerned. Also one thing I have noticed is that
the text file is actually created by het_export but it only includes one
single number on the first line.

Is this a bug?

Best
Peiman


peiman wrote:
> 
> Hello,
> 
> I am trying to convert some hetro files to text and vise versa on mac osx
> ppc. but I keep on gettin this error when using het_export:
> 
> peiman-khosravis-powerbook59:~ peimankhosravi$ csound -U het_export
> /Users/peimankhosravi/Cecilia/CeciliaAN/africa.aiff.523.het textfile
> Localisation of messages is disabled, using default language.
> PortMIDI real time MIDI plugin for Csound
> PortAudio real-time audio module for Csound
> virtual_keyboard real time MIDI plugin for Csound
> 0dBFS level = 32768.0
> Csound version 5.06 (float samples) Jun  8 2007
> libsndfile-1.0.16
> util het_export:
> file /Users/peimankhosravi/Cecilia/CeciliaAN/africa.aiff.523.het (17190
> bytes) loaded into memory
> Cannot write output file textfile
> 
> when doing the reverse with het_import I get this:
> 
>  Segmentation fault
> 
> Am I doing something wrong here?
> 
> Also I was wandering if it is necessary to use het_import to write files
> for adsyn or can the file be directly created using a text editor?
> 
> Many Thanks in advance
> Peiman
> 

-- 
View this message in context: http://www.nabble.com/Het_export-tf4463656.html#a12738237
Sent from the Csound - General mailing list archive at Nabble.com.

Date2007-09-25 00:24
Frompeiman
SubjectRe: Het_export
Hello again,

A friend of mine has kindly tested the het_export utility and he has the
same problem on an intel mac (I am on ppc os x). So it must be a bug. Any
chances of a fix? I need the het_import utility (which is also not working)
for converting partial text file from spear to .het files.

Many Thanks
Peiman  


peiman wrote:
> 
> Hello again,
> 
> I have been testing this further. I have tried all my .het files and they
> seem OK as far as adsyn in concerned. Also one thing I have noticed is
> that the text file is actually created by het_export but it only includes
> one single number on the first line.
> 
> Is this a bug?
> 
> Best
> Peiman
> 
> 
> peiman wrote:
>> 
>> Hello,
>> 
>> I am trying to convert some hetro files to text and vise versa on mac osx
>> ppc. but I keep on gettin this error when using het_export:
>> 
>> peiman-khosravis-powerbook59:~ peimankhosravi$ csound -U het_export
>> /Users/peimankhosravi/Cecilia/CeciliaAN/africa.aiff.523.het textfile
>> Localisation of messages is disabled, using default language.
>> PortMIDI real time MIDI plugin for Csound
>> PortAudio real-time audio module for Csound
>> virtual_keyboard real time MIDI plugin for Csound
>> 0dBFS level = 32768.0
>> Csound version 5.06 (float samples) Jun  8 2007
>> libsndfile-1.0.16
>> util het_export:
>> file /Users/peimankhosravi/Cecilia/CeciliaAN/africa.aiff.523.het (17190
>> bytes) loaded into memory
>> Cannot write output file textfile
>> 
>> when doing the reverse with het_import I get this:
>> 
>>  Segmentation fault
>> 
>> Am I doing something wrong here?
>> 
>> Also I was wandering if it is necessary to use het_import to write files
>> for adsyn or can the file be directly created using a text editor?
>> 
>> Many Thanks in advance
>> Peiman
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Het_export-tf4463656.html#a12870453
Sent from the Csound - General mailing list archive at Nabble.com.

Date2007-09-25 18:20
FromAnthony Kozar
SubjectRe: Het_export
Hi Peiman,

Since you are on a PPC Mac, as a temporary workaround you may want to try a
Classic (OS 9) version of Csound.  het_export/import are broken in Csound 5
for OS 9 too, but I have older versions of these utilities compiled as
standalone applications on my web site.  Just download this file, mount the
disk image, and copy the distribution to your hard drive:

http://www.anthonykozar.net/csound-macos/Csound-20050223.img.bin

Then look in the "utilities" folder of the distribution.  The applications
in this folder are not OS X commandline apps -- they will pop up a dialog
when run asking you to type in the commandline arguments (just the
pathnames** of the input and output files, don't include the name of the
program at the beginning).  Hetro export and Hetro import both seem to be
working in this distribution but some of the other utilities do not.

You may also want to try the (very old) Classic utility called Mr. Tweaky
which performs similar conversions between Csound analysis files and text
files.  I believe the text format of the Mr. Tweaky files will be different
than het_export and het_import though.

http://www.anthonykozar.net/csound-macos/MrTweaky.img.bin

Hope this helps.

Anthony Kozar
anthonykozar AT sbcglobal DOT net
http://anthonykozar.net/

** Note: Pathnames must be OS 9-style, not Unix-style.  It may be easier to
just temporarily move your files into the same directory as the utilities so
that you do not have to type paths.

peiman wrote on 9/24/07 7:24 PM:

> A friend of mine has kindly tested the het_export utility and he has the
> same problem on an intel mac (I am on ppc os x). So it must be a bug. Any
> chances of a fix? I need the het_import utility (which is also not working)
> for converting partial text file from spear to .het files.
> 
> Many Thanks
> Peiman  

Date2007-09-25 21:17
FromAndres Cabrera
SubjectRe: Het_export
Hi peiman,
Is het_import also broken with csound -U?

http://www.csounds.com/manual/html/het_import.html

Cheers,
Andrés


peiman escribió:
> Hello again,
>
> A friend of mine has kindly tested the het_export utility and he has the
> same problem on an intel mac (I am on ppc os x). So it must be a bug. Any
> chances of a fix? I need the het_import utility (which is also not working)
> for converting partial text file from spear to .het files.
>
> Many Thanks
> Peiman  
>
>
> peiman wrote:
>   
>> Hello again,
>>
>> I have been testing this further. I have tried all my .het files and they
>> seem OK as far as adsyn in concerned. Also one thing I have noticed is
>> that the text file is actually created by het_export but it only includes
>> one single number on the first line.
>>
>> Is this a bug?
>>
>> Best
>> Peiman
>>
>>
>> peiman wrote:
>>     
>>> Hello,
>>>
>>> I am trying to convert some hetro files to text and vise versa on mac osx
>>> ppc. but I keep on gettin this error when using het_export:
>>>
>>> peiman-khosravis-powerbook59:~ peimankhosravi$ csound -U het_export
>>> /Users/peimankhosravi/Cecilia/CeciliaAN/africa.aiff.523.het textfile
>>> Localisation of messages is disabled, using default language.
>>> PortMIDI real time MIDI plugin for Csound
>>> PortAudio real-time audio module for Csound
>>> virtual_keyboard real time MIDI plugin for Csound
>>> 0dBFS level = 32768.0
>>> Csound version 5.06 (float samples) Jun  8 2007
>>> libsndfile-1.0.16
>>> util het_export:
>>> file /Users/peimankhosravi/Cecilia/CeciliaAN/africa.aiff.523.het (17190
>>> bytes) loaded into memory
>>> Cannot write output file textfile
>>>
>>> when doing the reverse with het_import I get this:
>>>
>>>  Segmentation fault
>>>
>>> Am I doing something wrong here?
>>>
>>> Also I was wandering if it is necessary to use het_import to write files
>>> for adsyn or can the file be directly created using a text editor?
>>>
>>> Many Thanks in advance
>>> Peiman
>>>
>>>       
>>     
>
>   

Date2007-09-25 22:01
Frompeiman
SubjectRe: Het_export
Hi Andres,
Yes I have tried both (with -U and as standalone) and they both give the
same result.

Thanks
Peiman


Andres Cabrera wrote:
> 
> Hi peiman,
> Is het_import also broken with csound -U?
> 
> http://www.csounds.com/manual/html/het_import.html
> 
> Cheers,
> Andrés
> 
> 
> peiman escribió:
>> Hello again,
>>
>> A friend of mine has kindly tested the het_export utility and he has the
>> same problem on an intel mac (I am on ppc os x). So it must be a bug. Any
>> chances of a fix? I need the het_import utility (which is also not
>> working)
>> for converting partial text file from spear to .het files.
>>
>> Many Thanks
>> Peiman  
>>
>>
>> peiman wrote:
>>   
>>> Hello again,
>>>
>>> I have been testing this further. I have tried all my .het files and
>>> they
>>> seem OK as far as adsyn in concerned. Also one thing I have noticed is
>>> that the text file is actually created by het_export but it only
>>> includes
>>> one single number on the first line.
>>>
>>> Is this a bug?
>>>
>>> Best
>>> Peiman
>>>
>>>
>>> peiman wrote:
>>>     
>>>> Hello,
>>>>
>>>> I am trying to convert some hetro files to text and vise versa on mac
>>>> osx
>>>> ppc. but I keep on gettin this error when using het_export:
>>>>
>>>> peiman-khosravis-powerbook59:~ peimankhosravi$ csound -U het_export
>>>> /Users/peimankhosravi/Cecilia/CeciliaAN/africa.aiff.523.het textfile
>>>> Localisation of messages is disabled, using default language.
>>>> PortMIDI real time MIDI plugin for Csound
>>>> PortAudio real-time audio module for Csound
>>>> virtual_keyboard real time MIDI plugin for Csound
>>>> 0dBFS level = 32768.0
>>>> Csound version 5.06 (float samples) Jun  8 2007
>>>> libsndfile-1.0.16
>>>> util het_export:
>>>> file /Users/peimankhosravi/Cecilia/CeciliaAN/africa.aiff.523.het (17190
>>>> bytes) loaded into memory
>>>> Cannot write output file textfile
>>>>
>>>> when doing the reverse with het_import I get this:
>>>>
>>>>  Segmentation fault
>>>>
>>>> Am I doing something wrong here?
>>>>
>>>> Also I was wandering if it is necessary to use het_import to write
>>>> files
>>>> for adsyn or can the file be directly created using a text editor?
>>>>
>>>> Many Thanks in advance
>>>> Peiman
>>>>
>>>>       
>>>     
>>
>>   
> -- 
> Send bugs reports to this list.
> To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk
> 
> 

-- 
View this message in context: http://www.nabble.com/Het_export-tf4463656.html#a12888580
Sent from the Csound - General mailing list archive at Nabble.com.

Date2007-09-25 22:04
Frompeiman
SubjectRe: Het_export
Thanks for the information Anthony. I will definitely download them. I don't
think I ever did install os 9 runtime on my mac though, and if I am correct
it does take a bit of space. So I will have to take some things of my laptop
first before installing os 9 (all those samples and protools sessions!). 

Thanks again

Best
Peiman


Anthony Kozar wrote:
> 
> Hi Peiman,
> 
> Since you are on a PPC Mac, as a temporary workaround you may want to try
> a
> Classic (OS 9) version of Csound.  het_export/import are broken in Csound
> 5
> for OS 9 too, but I have older versions of these utilities compiled as
> standalone applications on my web site.  Just download this file, mount
> the
> disk image, and copy the distribution to your hard drive:
> 
> http://www.anthonykozar.net/csound-macos/Csound-20050223.img.bin
> 
> Then look in the "utilities" folder of the distribution.  The applications
> in this folder are not OS X commandline apps -- they will pop up a dialog
> when run asking you to type in the commandline arguments (just the
> pathnames** of the input and output files, don't include the name of the
> program at the beginning).  Hetro export and Hetro import both seem to be
> working in this distribution but some of the other utilities do not.
> 
> You may also want to try the (very old) Classic utility called Mr. Tweaky
> which performs similar conversions between Csound analysis files and text
> files.  I believe the text format of the Mr. Tweaky files will be
> different
> than het_export and het_import though.
> 
> http://www.anthonykozar.net/csound-macos/MrTweaky.img.bin
> 
> Hope this helps.
> 
> Anthony Kozar
> anthonykozar AT sbcglobal DOT net
> http://anthonykozar.net/
> 
> ** Note: Pathnames must be OS 9-style, not Unix-style.  It may be easier
> to
> just temporarily move your files into the same directory as the utilities
> so
> that you do not have to type paths.
> 
> peiman wrote on 9/24/07 7:24 PM:
> 
>> A friend of mine has kindly tested the het_export utility and he has the
>> same problem on an intel mac (I am on ppc os x). So it must be a bug. Any
>> chances of a fix? I need the het_import utility (which is also not
>> working)
>> for converting partial text file from spear to .het files.
>> 
>> Many Thanks
>> Peiman  
> 
> -- 
> Send bugs reports to this list.
> To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk
> 
> 

-- 
View this message in context: http://www.nabble.com/Het_export-tf4463656.html#a12888622
Sent from the Csound - General mailing list archive at Nabble.com.

Date2007-09-25 23:24
FromAnthony Kozar
SubjectRe: Het_export
Oh ... I had not considered that you might not have Classic installed.  In
that case, you may not wish to use the OS 9 stuff.  I suppose if you are up
to it, you could find or compile the old Csound 4.23 versions of het_export
and het_import for OS X since they should work.

Anthony

peiman wrote on 9/25/07 5:04 PM:

> 
> Thanks for the information Anthony. I will definitely download them. I don't
> think I ever did install os 9 runtime on my mac though, and if I am correct
> it does take a bit of space. So I will have to take some things of my laptop
> first before installing os 9 (all those samples and protools sessions!).
> 
> Thanks again
> 
> Best
> Peiman

Date2007-09-26 00:12
From"Steven Yi"
SubjectRe: Het_export
AttachmentsNone  

Date2007-09-26 07:21
Frompeiman
SubjectRe: Het_export
I will try to compile csound 4 as you suggested (hopefully it should be
relatively simple). It's a pity that Cecilia's csound 4 doesn't come with
all the utilities.

Thanks
Peiman


Anthony Kozar wrote:
> 
> Oh ... I had not considered that you might not have Classic installed.  In
> that case, you may not wish to use the OS 9 stuff.  I suppose if you are
> up
> to it, you could find or compile the old Csound 4.23 versions of
> het_export
> and het_import for OS X since they should work.
> 
> Anthony
> 
> peiman wrote on 9/25/07 5:04 PM:
> 
>> 
>> Thanks for the information Anthony. I will definitely download them. I
>> don't
>> think I ever did install os 9 runtime on my mac though, and if I am
>> correct
>> it does take a bit of space. So I will have to take some things of my
>> laptop
>> first before installing os 9 (all those samples and protools sessions!).
>> 
>> Thanks again
>> 
>> Best
>> Peiman
> 
> -- 
> Send bugs reports to this list.
> To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk
> 
> 

-- 
View this message in context: http://www.nabble.com/Het_export-tf4463656.html#a12894707
Sent from the Csound - General mailing list archive at Nabble.com.

Date2007-09-26 07:27
Frompeiman
SubjectRe: Het_export
Hi Steven,
Thanks for checking this. I have been using binaries so far but maybe it's
about time to start compiling :-) Although I have no idea how many
dependencies are needed and how complicated the whole thing is... I would of
course more than grateful if someone could send the compiled
het_import/export utilities...

Thanks again
Best
Peiman



Steven Yi wrote:
> 
> Hi All,
> 
> I took a look at het_export.c and there's a bad check going on that
> throws it off; it was commited in May with the comment of "Additional
> Checking".  I reverted that little bit of code and was able to export
> a het file and import seemed to have worked, though I'm only testing
> they don't crash and don't know  about if they "work".  I *can* see my
> exported text though and things seem right. (Another note, I've never
> used het_export or het_import, so woudl be good to get confirmation).
> 
> Peiman: not sure if you're compiling Csound on mac or using binaries.
> If binaries, perhaps someone here could compile and send along just
> the het_export executable (?).
> 
> steven
> 
> 
> On 9/25/07, Anthony Kozar  wrote:
>> Oh ... I had not considered that you might not have Classic installed. 
>> In
>> that case, you may not wish to use the OS 9 stuff.  I suppose if you are
>> up
>> to it, you could find or compile the old Csound 4.23 versions of
>> het_export
>> and het_import for OS X since they should work.
>>
>> Anthony
>>
>> peiman wrote on 9/25/07 5:04 PM:
>>
>> >
>> > Thanks for the information Anthony. I will definitely download them. I
>> don't
>> > think I ever did install os 9 runtime on my mac though, and if I am
>> correct
>> > it does take a bit of space. So I will have to take some things of my
>> laptop
>> > first before installing os 9 (all those samples and protools
>> sessions!).
>> >
>> > Thanks again
>> >
>> > Best
>> > Peiman
>>
>> --
>> Send bugs reports to this list.
>> To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk
>>
> -- 
> Send bugs reports to this list.
> To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk
> 
> 

-- 
View this message in context: http://www.nabble.com/Het_export-tf4463656.html#a12894729
Sent from the Csound - General mailing list archive at Nabble.com.

Date2007-09-26 09:49
FromVictor Lazzarini
SubjectRe: Het_export
We'll include them on Monday's release. If there is a problem, I
can re-do the package straight after.

Victor

At 07:27 26/09/2007, you wrote:

>Hi Steven,
>Thanks for checking this. I have been using binaries so far but maybe it's
>about time to start compiling :-) Although I have no idea how many
>dependencies are needed and how complicated the whole thing is... I would of
>course more than grateful if someone could send the compiled
>het_import/export utilities...
>
>Thanks again
>Best
>Peiman
>
>
>
>Steven Yi wrote:
> >
> > Hi All,
> >
> > I took a look at het_export.c and there's a bad check going on that
> > throws it off; it was commited in May with the comment of "Additional
> > Checking".  I reverted that little bit of code and was able to export
> > a het file and import seemed to have worked, though I'm only testing
> > they don't crash and don't know  about if they "work".  I *can* see my
> > exported text though and things seem right. (Another note, I've never
> > used het_export or het_import, so woudl be good to get confirmation).
> >
> > Peiman: not sure if you're compiling Csound on mac or using binaries.
> > If binaries, perhaps someone here could compile and send along just
> > the het_export executable (?).
> >
> > steven
> >
> >
> > On 9/25/07, Anthony Kozar  wrote:
> >> Oh ... I had not considered that you might not have Classic installed.
> >> In
> >> that case, you may not wish to use the OS 9 stuff.  I suppose if you are
> >> up
> >> to it, you could find or compile the old Csound 4.23 versions of
> >> het_export
> >> and het_import for OS X since they should work.
> >>
> >> Anthony
> >>
> >> peiman wrote on 9/25/07 5:04 PM:
> >>
> >> >
> >> > Thanks for the information Anthony. I will definitely download them. I
> >> don't
> >> > think I ever did install os 9 runtime on my mac though, and if I am
> >> correct
> >> > it does take a bit of space. So I will have to take some things of my
> >> laptop
> >> > first before installing os 9 (all those samples and protools
> >> sessions!).
> >> >
> >> > Thanks again
> >> >
> >> > Best
> >> > Peiman
> >>
> >> --
> >> Send bugs reports to this list.
> >> To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk
> >>
> > --
> > Send bugs reports to this list.
> > To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk
> >
> >
>
>--
>View this message in context: 
>http://www.nabble.com/Het_export-tf4463656.html#a12894729
>Sent from the Csound - General mailing list archive at Nabble.com.
>
>--
>Send bugs reports to this list.
>To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk

Victor Lazzarini
Music Technology Laboratory
Music Department
National University of Ireland, Maynooth

Date2007-09-26 15:59
From"Boenn G (CCI)"
SubjectWriting a GEN plugin (64 bit)
Hi,

After reading Victor's tutorial: 
http://csounds.com/articles/Extensions_to_Csound.pdf
and building the example under 3.3.2 "plugin function tables",
csound tells me that the GEN number 44 is unknown (see test.csd below).
Is there a way of getting feedback when a GEN plugin was loaded and
which number it has?
The tutorial says that there are 43 internal GEN routines and GEN
plugins are numbered according to their loading order but according to
the manual the highest GEN number is 52. I tried out 53 but that didn't
work either.
I am sure that the new shared library is in the right place.

Georg


C code and test.csd as follows:

///////////////// GEN plugin ///////////////////////////
#define USE_DOUBLE 1
#include "csdl.h"
#include 
void tanhtable(CSOUND *csound, FUNC *ftp, FGDATA *ff)
{
/* the function table */
MYFLT* fp = ftp->ftable;
/* f-statement p5, the range */
MYFLT range = ff->e.p[5];
/* step is range/tablesize */
double step = (double)
range/(ff->e.p[3]);
int i;
double x;
/* table-filling loop */
for(i=0, x=FL(0.0); ie.p[3];
i++,x+=step)
*fp++ = (MYFLT)tanh(x);
}

static NGFENS localfgens[] = {
{ "tanh", (void(*)(void))tanhtable},
{ NULL, NULL}
};

#define S sizeof
static OENTRY *localops = NULL;
FLINKAGE

;----------- test.csd -------------------
; dumps the content of an f table to
; the file "test.txt"




-odac


sr=44100
ksmps=1
nchnls=1

gisize init 32
 gitest ftgen 1,0,gisize,44,2
;gitest ftgen 1,0,gisize,10,1
; tabnum ftgen ifn, itime, isize, igen, arg1 .... argn

instr 1

kndx init 0

if (kndx



i1 0.0 1

e



Date2007-09-26 16:11
From"Boenn G (CCI)"
SubjectRe: Writing a GEN plugin (64 bit)
Oops, GEN routine 53 is recognised but csound says:

GEN53: invalid source table number

Georg


> -----Original Message-----
> From: Boenn G (CCI) [mailto:gboenn@glam.ac.uk] 
> Sent: 26 September 2007 15:59
> To: csound@lists.bath.ac.uk
> Subject: [Csnd] Writing a GEN plugin (64 bit)
> 
> Hi,
> 
> After reading Victor's tutorial: 
> http://csounds.com/articles/Extensions_to_Csound.pdf
> and building the example under 3.3.2 "plugin function tables",
> csound tells me that the GEN number 44 is unknown (see 
> test.csd below).
> Is there a way of getting feedback when a GEN plugin was loaded and
> which number it has?
> The tutorial says that there are 43 internal GEN routines and GEN
> plugins are numbered according to their loading order but according to
> the manual the highest GEN number is 52. I tried out 53 but 
> that didn't
> work either.
> I am sure that the new shared library is in the right place.
> 
> Georg
> 
> 
> C code and test.csd as follows:
> 
> ///////////////// GEN plugin ///////////////////////////
> #define USE_DOUBLE 1
> #include "csdl.h"
> #include 
> void tanhtable(CSOUND *csound, FUNC *ftp, FGDATA *ff)
> {
> /* the function table */
> MYFLT* fp = ftp->ftable;
> /* f-statement p5, the range */
> MYFLT range = ff->e.p[5];
> /* step is range/tablesize */
> double step = (double)
> range/(ff->e.p[3]);
> int i;
> double x;
> /* table-filling loop */
> for(i=0, x=FL(0.0); ie.p[3];
> i++,x+=step)
> *fp++ = (MYFLT)tanh(x);
> }
> 
> static NGFENS localfgens[] = {
> { "tanh", (void(*)(void))tanhtable},
> { NULL, NULL}
> };
> 
> #define S sizeof
> static OENTRY *localops = NULL;
> FLINKAGE
> 
> ;----------- test.csd -------------------
> ; dumps the content of an f table to
> ; the file "test.txt"
> 
> 
> 
> 
> -odac
> 
> 
> sr=44100
> ksmps=1
> nchnls=1
> 
> gisize init 32
>  gitest ftgen 1,0,gisize,44,2
> ;gitest ftgen 1,0,gisize,10,1
> ; tabnum ftgen ifn, itime, isize, igen, arg1 .... argn
> 
> instr 1
> 
> kndx init 0
> 
> if (kndx 	kres tab kndx, gitest
> 	fprintks "table.txt", "%2.2f\\n", kres
> 	kndx = kndx+1
> endif
> 
> endin
> 
> 
> 
> 
> 
> i1 0.0 1
> 
> e
> 
> 
> 
> -- 
> Send bugs reports to this list.
> To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk
> 

Date2007-09-26 16:53
FromJ P Fitch
SubjectRe: Writing a GEN plugin (64 bit)
I thought that fgen plugins were given internal umbes and a macro created 
to saw what the number is.  Is thsi not the case?  All very hazy at 
present!
==John ff

Date2007-09-26 18:40
FromAnthony Kozar
SubjectRe: Writing a GEN plugin (64 bit)
Hi Georg,

Plugin GEN routines are named instead of numbered.

Boenn G (CCI) wrote on 9/26/07 10:59 AM:

> static NGFENS localfgens[] = {
> { "tanh", (void(*)(void))tanhtable},
> { NULL, NULL}
> };

This adds a GEN routine named "tanh".  To invoke it try something like this:

f1 0 4096 "tanh" 3.14159

> I am sure that the new shared library is in the right place.

Make sure that you do not already have a libftest in your plugins folder.
The "tanh" GEN is part of a standard plugin built with Csound 5.

Anthony Kozar
anthonykozar AT sbcglobal DOT net
http://anthonykozar.net/