Re: [PD] polynomial pairs in lpc filter

2018-04-20 Thread IOhannes m zmölnig
On 04/20/2018 11:06 PM, Ed Kelly via Pd-list wrote:
> Code was shared previously on a github, but here's the offending article, and 
> the link.
> 
> The botherer is called mbc_lpc~.c
> 
> edkellytista9/LPCToolkitPd

you know, "edkellytista9/LPCToolkitPd" can be about everything; why
would i have thought about a github project?

anyhow.

compiling your file prints a huge fat warning:
> mbc_lpc~.c:661:1: warning: control reaches end of non-void function
[-Wreturn-type]

which is indeed true, and it is telling you that your constructor
function lpc_new() is not returning anything (and definitely not an object).

the externals howto [1] says:
> The constructor has to return a pointer to the instantiated
> data space.

but even with that fixed, it doesn't load.
now i've asked you to:
- run Pd with "-verbose".
- check the console.

to which you replied:
> tried...(all pd search paths)...and failed
> tried...(current directory)...and failed

however, when i try to load your external i get:
> tried /tmp/zmoelnig/LPCToolkitPd/mbc_lpc~.l_ia64 and succeeded
> load_object: Symbol "mbc_lpc_tilde_setup" not found

which is writing out as plain as possible that your external misses the
only function that it *must* have in order to be any use to Pd: the
callback function that allows your external to bootstrap.
(while blindly copying, you renamed your object but forgot to rename the
setup function).


apart from that:
- please mark all your functions as static. you will get nameclashes
otherwise. making your objects use totally different functions than you
expect (and possible making the object of other people use different
functions).
- template Makefile 1.0.14? seriously? consider switching to
pdlibbuilder. it's much nicer. for starters, it doesn't make bogus
file-extensions on linux/amd64.


gfmdsar
IOhannes

[1]
https://github.com/pure-data/externals-howto#constructor-instantiation-of-an-object




> 
> 
> | 
> | 
> | 
> |  |  |
> 
>  |
> 
>  |
> | 
> |  | 
> edkellytista9/LPCToolkitPd
> 
> LPCToolkitPd - Mark Cartwright's LPC Toolkit for Pure Data
>  |
> 
>  |
> 
>  |
> 
> 
> 
> 
> 
> _-_-_-_-_-_-_-^-_-_-_-_-_-_-_
> 
> For Lone Shark releases, Pure Data software and published Research, go to 
> http://sharktracks.co.uk  
> 
> On Friday, 20 April 2018, 22:02:16 GMT+1, IOhannes m zmölnig 
>  wrote:  
>  
>  On 04/20/2018 04:38 PM, Ed Kelly via Pd-list wrote:
>> Apologies - I'm trying to do this while buying a house...I don't know if 
>> that is simple in Austria but it isn't here.
> 
> good luck.
> i'm sure it is a hell of stuff to do.
> 
>> After reading your email I assumed it was something new, but of course I had 
>> just copied, pasted and altered code from a previous external (and forgot> 
>> Perhaps it's to do with linking to libm, so I'll check the makefile
> once I'm back in a reasonably stable (time-wise) environment.
> 
> in the meantime, you could also share your code with us.
> 
>> BUT - I've never really understood (in ~13 years of external development) 
>> what all those args to class_new() did before, and you've forced me to look 
>> deeper into m_pd.h
> 
> fwiw, each and every argument to class_new() is covered by the externals
> howto.
> 
>> I should thank you for that - and yes, I learned how to write externals by 
>> reading your howto, in 2005 I believe.
> 
> :-)
> 
> 
> gdsamr
> IOhannes
> ___
> Pd-list@lists.iem.at mailing list
> UNSUBSCRIBE and account-management -> 
> https://lists.puredata.info/listinfo/pd-list
>   
> 
> 
> 
> ___
> Pd-list@lists.iem.at mailing list
> UNSUBSCRIBE and account-management -> 
> https://lists.puredata.info/listinfo/pd-list
> 




signature.asc
Description: OpenPGP digital signature
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] polynomial pairs in lpc filter

2018-04-20 Thread Ed Kelly via Pd-list
Code was shared previously on a github, but here's the offending article, and 
the link.

The botherer is called mbc_lpc~.c

edkellytista9/LPCToolkitPd


| 
| 
| 
|  |  |

 |

 |
| 
|  | 
edkellytista9/LPCToolkitPd

LPCToolkitPd - Mark Cartwright's LPC Toolkit for Pure Data
 |

 |

 |





_-_-_-_-_-_-_-^-_-_-_-_-_-_-_

For Lone Shark releases, Pure Data software and published Research, go to 
http://sharktracks.co.uk  

On Friday, 20 April 2018, 22:02:16 GMT+1, IOhannes m zmölnig 
 wrote:  
 
 On 04/20/2018 04:38 PM, Ed Kelly via Pd-list wrote:
> Apologies - I'm trying to do this while buying a house...I don't know if that 
> is simple in Austria but it isn't here.

good luck.
i'm sure it is a hell of stuff to do.

> After reading your email I assumed it was something new, but of course I had 
> just copied, pasted and altered code from a previous external (and forgot> 
> Perhaps it's to do with linking to libm, so I'll check the makefile
once I'm back in a reasonably stable (time-wise) environment.

in the meantime, you could also share your code with us.

> BUT - I've never really understood (in ~13 years of external development) 
> what all those args to class_new() did before, and you've forced me to look 
> deeper into m_pd.h

fwiw, each and every argument to class_new() is covered by the externals
howto.

> I should thank you for that - and yes, I learned how to write externals by 
> reading your howto, in 2005 I believe.

:-)


gdsamr
IOhannes
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list
  /*
 *   LPC Toolkit
 *   By Mark Cartwright
 *   Pure Data port by Edward Kelly 2018
 *   BSD licence
 *
 *
 */

#include "m_pd.h"
#include 
//#include 
//#include 

#ifdef _WIN32
# include  /* MSVC or mingw on windows */
#elif defined(__linux__) || defined(__APPLE__)
# include  /* linux, mac, mingw, cygwin */
#else
# include  /* BSDs for example */
#endif

static t_class *mbc_lpc_class;

#define MAX_ORDER 200
#define NLOG2(x) (ceil(log2(x)))
#define POW2(x) (1 << x)
#define TWOPI M_PI * 2
#define DEFAULT_FS 44100
#define DEFAULT_FRAMERATE 100
#define DEFAULT_V_SIZE 64
#define DEFAULT_ORDER 32

typedef struct _DSPcomplex
{
  //gsl_vector_float* real;
  //gsl_vector_float* imag;
  t_float* fReal;
  t_float* fImag;

} t_DSPcomplex;

//#define REAL(z,i) gsl_vector_float_set(z,2*(i))
//#define IMAG(z,i) gsl_vector_float_setz(z,2*(i)+1)

typedef struct _lpc 
{
  t_object  x_obj;	   // the object itself (t_pxobject in MSP)
  t_float dummy;
  //t_float*  l_frame_buff;	   //input frame buffer
  //gsl_vector_float*  l_frame_buff;	   //input frame buffer
  //t_float*  l_winframe_buff;   //windowed input frame buffer
  //gsl_vector_float*  l_winframe_buff;   //windowed input frame buffer
  //t_float*	l_outCoeff_buff;   //coefficient signal
  //gsl_vector_float*	l_outCoeff_buff;   //coefficient signal
  //t_float*	l_outParcor_buff; 	   //PARCOR coeffs
  //gsl_vector_float*	l_outParcor_buff; 	   //PARCOR coeffs
  //t_float*  l_outError_buff;	   //error signal
  //gsl_vector_float*  l_outError_buff;	   //error signal
  //t_float*  l_win;	   //analysis window
  //gsl_vector_float*  l_win;	   //analysis window
  //t_float*	l_R;
  //gsl_vector_float*	l_R;
  /*-- non-GSL versions --*/

  t_float*  frameBuffer;
  t_float*  winFrameBuffer;
  t_float*  outCoeffBuffer;
  t_float*  parcorBuffer;
  t_float*  errorSigBuffer;
  t_float*  window;
  t_float*  lR;
  //  t_float*  vectorBuffer;
  
  double*	l_W;
  double*	l_E;
  double*	l_K;
  double 	l_G;
  double**	l_A;
  double 	l_x1;  //last samples of pre-emphasis filter
  float 	l_b1;	   //pre-emph coefficient
  int 	l_order;	   //predictor order
  int 	l_order_max;   //max order according to fs = order * frame_rate
  int 	l_preemph; //pre-epmhasis filter on/off
  int 	l_frame_rate;  //analysis frame rate
  int 	l_frame_size;  //analysis frame size, where fs = frame_rate * frame_size * 2
  int 	l_hop_size;//hop_size = frame_size * 2 (b/c of overlap)
  int 	l_inframe_idx; //current inframe buffer index
  int 	l_outframe_idx;	   //current outframe buffer index
  long 	l_v_size;	   //vector size
  float 	l_fs;  //sampling rate
  int 	l_maxnfft; //fft length
  int 	l_log2nfft;	   //log2(fft length)
  int initOrder, initFramerate, initPreemph; // initialization values
  int j;

  //  FFTSetup  l_fftsetup;//FFTSetup for vDSP FFT functions
  t_DSPcomplex  split;
  //  

Re: [PD] polynomial pairs in lpc filter

2018-04-20 Thread IOhannes m zmölnig
On 04/20/2018 04:38 PM, Ed Kelly via Pd-list wrote:
> Apologies - I'm trying to do this while buying a house...I don't know if that 
> is simple in Austria but it isn't here.

good luck.
i'm sure it is a hell of stuff to do.

> After reading your email I assumed it was something new, but of course I had 
> just copied, pasted and altered code from a previous external (and forgot> 
> Perhaps it's to do with linking to libm, so I'll check the makefile
once I'm back in a reasonably stable (time-wise) environment.

in the meantime, you could also share your code with us.

> BUT - I've never really understood (in ~13 years of external development) 
> what all those args to class_new() did before, and you've forced me to look 
> deeper into m_pd.h

fwiw, each and every argument to class_new() is covered by the externals
howto.

> I should thank you for that - and yes, I learned how to write externals by 
> reading your howto, in 2005 I believe.

:-)


gdsamr
IOhannes



signature.asc
Description: OpenPGP digital signature
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] How to declare custom libraries in abstractions

2018-04-20 Thread Alexandre Torres Porres
2018-04-13 17:03 GMT-03:00 José Rafael Subía Valdez 
:
>
>
> so if let's say "cyclone" decides to compile it into one file, I am not
> sure if objects created with [library/object] in a patch will
> successfully create.
>

ok, so, as of now, cyclone officially needs to be loaded only as a library,
but all this does is that it automatically adds cyclone's path to Pd's
search paths, so you can load the majority of objects without the
"cyclone/" prefix. Please note the commonly neglected fact that cyclone
needs to load as a library in order to load the non alphanumeric objects.

Having said all that, I can say cyclone won't likely ever decide to compile
as a single file, I think we reached the perfect spot here.

cheers
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


[PD] why doesn't "libdir" work in Pd Vanilla?

2018-04-20 Thread Alexandre Torres Porres
I'm trying to test libdir in Pd Vanilla, I used Pd 32 bits (0.48-1-i3866)
on macOS, and got the [libdir] from deken that seems to work only on it.
This is the one that comes with Pd Extended.

I added "libdir" to startup, but I get a "libdir: can't load library" error.

So, any ideas why it wouldn't work?

thanks
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] Gem automatically loads a path? (was Re: How to declare custom libraries in abstractions)

2018-04-20 Thread Alexandre Torres Porres
2018-04-20 4:06 GMT-03:00 Alexandre Torres Porres :
>
>
> I tested the "new way" with cyclone and it kinda works, despite the
> consistency error.
>

yeah, to avoid the error, the path just needs to start with a "+"
character. I learned that after I opened an issue about it here
https://github.com/pure-data/pure-data/issues/351 - which I guess I can
close as there's nothing too weird about all this, but i'd like an answer
why the "+" is needed.

So, anyway, if the thing about Gem comes from this new code, I already
figured it out and am including it in Cyclone, so we're good. I'm just
curious if this was supposed to be working on old Pd extended and with the
Gem available in deken.

cheers
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] parametric equalizer

2018-04-20 Thread Raphaël Ilias
Thanks Alex and Dan,
I am very busy now but I'll look into your solutions ASAP.

I am aware of ggee objects for biquad~ coefficient calculations.
Tough I understand the idea to "split the spectra" of a signal with
low-pass, band-pass and high-pass filters...  what is still unclear to me
is : since the outputs of the filters are then mixed together, how to make
sure that overlap correctly so that if the 3 (low, band and high) filters
have 0db gain ([*~1]) the sum of the 3 together will be similar to the
input (flat response), like it does when your mixer's EQ knobs are all
centered...
and what does it really mean when you turn it counter-clockwise, for
example "MID knob" to -6 dB ?
I suppose it isn't a rejection/notch filter ? So it's just a bandpass
filter with amplitude 0.5 / -6 dB and then mixed with the outputs of the
lowpass and highpass filters ?
Probably there is no perfect design, but I wonder what details I should be
aware of.

But I will study the abstractions/objects you mentioned.

++

2018-04-19 20:11 GMT+02:00 Dan Wilcox :

> Check out [e_3bandeq] in rc-patches: https://github.
> com/danomatika/rc-patches
>
> On Apr 19, 2018, at 11:55 AM, pd-list-requ...@lists.iem.at wrote:
>
> From: Raphaël Ilias 
> To: pd-list 
> Subject: [PD] parametric equalizer
> Message-ID:
> 
> Content-Type: text/plain; charset="utf-8"
>
> Hello dear pd lovers,
>
> I wonder if someone as implemented a parametric equalizer similar to the
> ones you find on mixer : like three band LOW MID HIGH, with -/+ X dB so
> that when everything is +0 dB, the output is flat and similar to input.
> And eventually with Q/curve/spectral transistion parameters ?
>
> I know this is a very large question and that there might be a lot of
> different implementations, but I wondered if there are "standard"
> solutions.
> Vanilla preferred or stable libraries...
>
> Thanks !
>
> --
> Raphaël Ilias
>
>
> 
> Dan Wilcox
> @danomatika 
> danomatika.com
> robotcowboy.com
>
>
>
>


-- 
Raphaël Ilias
  ___
* phae.fr *
 17 places des Halles - Ingrandes
 49123 Ingrandes Le Fresne s/ Loire
 phae.il...@gmail.com / +33 (0) 6 04 45 79 78
  ___
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] polynomial pairs in lpc filter

2018-04-20 Thread Ed Kelly via Pd-list
Apologies - I'm trying to do this while buying a house...I don't know if that 
is simple in Austria but it isn't here.

But, I was indeed firing blind myself. I assume you are referring to line 665 
to 668 in mbc_lpc~.c:
  mbc_lpc_class = class_new(gensym("mbc_lpc~"), 
  (t_newmethod)lpc_new, 
  0, sizeof(t_lpc),
  CLASS_DEFAULT, A_DEFFLOAT, 0);

After reading your email I assumed it was something new, but of course I had 
just copied, pasted and altered code from a previous external (and forgot)
Perhaps it's to do with linking to libm, so I'll check the makefile once I'm 
back in a reasonably stable (time-wise) environment.

BUT - I've never really understood (in ~13 years of external development) what 
all those args to class_new() did before, and you've forced me to look deeper 
into m_pd.h
I should thank you for that - and yes, I learned how to write externals by 
reading your howto, in 2005 I believe.

Thanks,
Ed


_-_-_-_-_-_-_-^-_-_-_-_-_-_-_

For Lone Shark releases, Pure Data software and published Research, go to 
http://sharktracks.co.uk  

On Friday, 20 April 2018, 10:50:27 GMT+1, IOhannes m zmoelnig 
 wrote:  
 
 On 2018-04-20 11:31, Ed Kelly via Pd-list wrote:
>> it seems that you are making it deliberately hard to help... :-)
> 
> I am taking a stab at doind things I've never done before, and I'm quite out 
> of my depth! :~}
> 
>> also, if the *only* external function you are using from m_pd.h is
> [i]fft_mayer(), then it is pretty clear that the external cannot load:
> you need at least class_new() and pd_new() as well...
> 
> Ok. I've never used class_new() and pd_new() before. Can you point me in the 
> direction of an external that uses it?

hmm... each and every one?

just to make sure: with "external" you mean some dynamically loadable
file that somehow adds new [object]s to Pd?

if we can agree on that, you might want to read my externals howto [1].
(for completeness sake, there are other ways to write externals; but so
far the only thing i've understood so far is that "it doesn't work",
making it impossible to tell which path you took before you lost your way).


fgmasdr
IOhannes


[1] https://github.com/pure-data/externals-howto
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list
  ___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] CONTEXT V3.0.2 tests. (was: How to declare custom libraries in abstractions)

2018-04-20 Thread Liam Goodacre
What do you usually do to use objects from these libraries? All externals 
objects are declared as [library/object] inside Context, so it it works outside 
the patch, I don't understand why it wouldn't work inside. Can you for instance 
create [iemguts/canvasargs] in a regular patch?



From: Raphaël Ilias 
Sent: 19 April 2018 16:26
To: Liam Goodacre
Cc: PD list
Subject: Re: [PD] CONTEXT V3.0.2 tests. (was: How to declare custom libraries 
in abstractions)

Good to know that my testing was useful.

However, I don't know if this is important for your testings, but I DO have 
iemguts and zexy (and cyclone, flatgui, hcs and list-abs... for the ones you 
use) already installed via Deken (so on Mac OS X now they're put in 
/Users/myuseraccount/Library/Pd/).

I'll look deeper into Context when I have time, but it looks a huge amount of 
work.

all the best,

Raphaël


2018-04-19 16:55 GMT+02:00 Liam Goodacre 
>:
Thanks Raphaël. It's especially good to know that Context works on Mac, since I 
haven't tested it there myself.

It looks like you don't have the zexy, iemguts or else installed. You can get 
them from Help-->Find Externals if you want, but the important thing is that 
Context works with the built in externals.

If you want to understand about resizing and shifting toggle floats, you can 
look at helpfiles/GUI_manioulation.pd

Let me know if you have any questions or suggestions!

Liam

From: Raphaël Ilias >
Sent: 19 April 2018 12:56
Cc: Liam Goodacre; PD list
Subject: Re: [PD] CONTEXT V3.0.2 tests. (was: How to declare custom libraries 
in abstractions)

Hi,

I might be late for the answer... I didn't know Context, but I just had a quick 
look about it and seems interesting concept.
I am trying "externs-test.pd". I am using Macbook Pro 2012 with OS X 10.10.5 
Yosemite and pd-vanilla 0.48-1

1. I don't have any "couldn't create" on load

2. I don't really know yet how to "resizing and shifting toggle floats"

3. The 4 objects seems to create but none of their help-files open with 
"right-click > Help"

4. I quit pd, renamed the 8 libraries folder as "_OUT_libraryname/" and 
re-opened "externs-test.pd" :

1B. Now I have a lot of "couldn't create" on load :
- demux
- l2s
- sort
- mux
- urn
- else/break &
- msgfile
- iemguts/initbang
- else/fromany
- else/toany
- else/routeall
- s2l
- time
- iemmatrix/matrix
- iemmatrix/mtx_check
...
and a few chords that couldn't be created, and missing arrays (0-IDshare)

2B : still don't know how to "resize and shift toggle floats"

3B : [s2l] and [else/toany] don't create. The other two do open their 
help-patches with "right-click > Help"

NB : i don't have else library installed originally


Hope this helps !

cheers,

Raphaël


2018-04-15 6:26 GMT+02:00 Lucas Cordiviola 
>:

Hi Liam,

Amazing patching!

-


1: When you open this patch, are there any "couldn't create" messages in the 
console? If so, tell me!


There are not "couldn't create" on "externs-test.pd" but I found:

 cyclone/tanh~
... couldn't create

going through examples that use [docfiles/glock~].

On "12_overlay_examples.pd" & 
"13_embedding_(takes_several_minutes_to_load!).pd" i get:


 <~
... couldn't create
 &&~
... couldn't create
 <~
... couldn't create
 &&~
... couldn't create
 <~
... couldn't create
 &&~
... couldn't create



2: Does Context seem to be working correctly? Try resizing it and shifting 
toggle floats to see.;


Resizing seems to work. I don't know what you mean with "shifting toggle floats 
to see".

Notes: when using "externs-test.pd" if I click on the *lower left toggle* i get:

0-crxyoff: no such object
0-roff: no such object
0-notsafe: no such object
0-roff2: no such object
0-crxyoff: no such object

But is not the case if I create a new patch and a new [context].

3: If the following objects have created correctly, can you call the helpfiles?


I can not open the help files.

Note: I have temporarily switched off my normal externals folder.

---

I can not open "00_first_time_tutorial.pd" it crashes Pd.






--

Mensaje telepatico asistido por maquinas.

On 4/14/2018 9:10 AM, Liam Goodacre wrote:
I figured out what the difference was between mine and Alex's screenshots. In 
my case, the "custom search location" was also the folder that the patch was 
saved into. So it was loading an external relative to this, not the custom 
search folder.

I've uploaded a draft of Context with externals which I hope will work "out of 
the box". The idea is that if a user wants to use their own externals, they 
simply delete the relevant folders from the main Context folder, and then the 
patch goes back to searching for the externals in the regular places. This is 
based on the assumption that PD searches for externals in the 

Re: [PD] [shell] - shell scripts on osx, solved !

2018-04-20 Thread IOhannes m zmoelnig
On 2018-04-20 11:50, oliver wrote:
> 
> your first answer pointed to the right direction.
> i found the solution after digging a bit more in the archives:
> 
> for non-native executables (FFPLAY in my case) you need to provide
> absolute paths in the shell scripts.

i figure this just a PATH issue (PATH missing "/usr/local/bin")

for interactive shells (which is what you get by opening Terminal.app),
this seems to be automatically handled by ~/.bashrc.
at least mine (on an OSX machine) looks like:

~~~
# only run in interactive mode:
[ -z "$PS1" ] && return

export CVS_RSH=ssh
export PATH=${PATH}:/usr/local/bin
if [  "x${EDITOR}" = "x" ]
then
 export EDITOR=/usr/bin/vi
fi
~~~

which makes it clear that non-interactive shells (and non-bash) shells
do not get the merits of /usr/local/bin/...

you could:
- call programs by absolute paths (which is what you already do; it's
somewhat ugly as it breaks everything if the paths ever change)
- add something like "PATH=/usr/local/bin:${PATH}" at the beginning of
your script (after the hashbang) and don't worry any more.
- add /usr/local/bin to your global search paths. e.g. [1].

fgmasdrt
IOhannes

[1] https://docs.brew.sh/FAQ#my-mac-apps-dont-find-usrlocalbin-utilities



signature.asc
Description: OpenPGP digital signature
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] polynomial pairs in lpc filter

2018-04-20 Thread IOhannes m zmoelnig
On 2018-04-20 11:31, Ed Kelly via Pd-list wrote:
>> it seems that you are making it deliberately hard to help... :-)
> 
> I am taking a stab at doind things I've never done before, and I'm quite out 
> of my depth! :~}
> 
>> also, if the *only* external function you are using from m_pd.h is
> [i]fft_mayer(), then it is pretty clear that the external cannot load:
> you need at least class_new() and pd_new() as well...
> 
> Ok. I've never used class_new() and pd_new() before. Can you point me in the 
> direction of an external that uses it?

hmm... each and every one?

just to make sure: with "external" you mean some dynamically loadable
file that somehow adds new [object]s to Pd?

if we can agree on that, you might want to read my externals howto [1].
(for completeness sake, there are other ways to write externals; but so
far the only thing i've understood so far is that "it doesn't work",
making it impossible to tell which path you took before you lost your way).


fgmasdr
IOhannes


[1] https://github.com/pure-data/externals-howto



signature.asc
Description: OpenPGP digital signature
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] polynomial pairs in lpc filter

2018-04-20 Thread Ed Kelly via Pd-list
> it seems that you are making it deliberately hard to help... :-)

I am taking a stab at doind things I've never done before, and I'm quite out of 
my depth! :~}

> also, if the *only* external function you are using from m_pd.h is
[i]fft_mayer(), then it is pretty clear that the external cannot load:
you need at least class_new() and pd_new() as well...

Ok. I've never used class_new() and pd_new() before. Can you point me in the 
direction of an external that uses it?
Ed



_-_-_-_-_-_-_-^-_-_-_-_-_-_-_

For Lone Shark releases, Pure Data software and published Research, go to 
http://sharktracks.co.uk  

On Friday, 20 April 2018, 07:38:32 GMT+1, IOhannes m zmoelnig 
 wrote:  
 
 On 2018-04-19 23:11, Ed Kelly via Pd-list wrote:
> verbose...
> 
> tried...(all pd search paths)...and failed
> tried...(current directory)...and failed

it seems that you are making it deliberately hard to help... :-)

does Pd find your external?
if so, does it print an error message? (raise verbosity in the
Pd-console to "DEBUG" as well).

> I will probably work it out sooner or later. The only external functions I'm 
> using are fabs() from  and fft_mayer/ifft_mayer from m_pd.h

for fabs() you must link against libm.

also, if the *only* external function you are using from m_pd.h is
[i]fft_mayer(), then it is pretty clear that the external cannot load:
you need at least class_new() and pd_new() as well...

fgamsdr
IOhannes
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list
  ___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] avoid "properities"/"open" options in abstractions

2018-04-20 Thread IOhannes m zmoelnig
On 2018-04-20 05:52, Alexandre Torres Porres wrote:
> well, I'm now confused, cause it was mentioned how Gem automatically adds a
> path to Pd to load abstractions, so I was testing that even though I never
> used Gem, and I was checking its abstractions, like gemmouse, to see if it
> was instantiated without the path added. It got created, but I couldn't
> open it as a normal abstraction in the patch. But it seems actually that
> there is also a [gemmouse] object inside Gem... which would explain all
> this...

yes.
but i wasn't talking about this.

gmasdr
IOhannes



signature.asc
Description: OpenPGP digital signature
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] Gem automatically loads a path? (was Re: How to declare custom libraries in abstractions)

2018-04-20 Thread IOhannes m zmoelnig
On 2018-04-20 05:54, Alexandre Torres Porres wrote:
> 2018-04-14 17:39 GMT-03:00 IOhannes m zmölnig :
> 
>>
>> Gem is special, as it adds its own path to Pd's search path and the user
>> shouldn't manually do that.
>>
> 
> Hi, how can I test this and check it? I was doing this on my own but it
> seems I just got confused.


- remove all (Gem-related) paths and libs from your startup settings (or
start Pd with "-noprefs".
- instantiate one of Gem's abstractions, e.g. [hsv2rgb] -- it should fail
- load the Gem library (e.g. "-lib Gem" or [declare -lib Gem])
- instantiate one of Gem's abstractions, e.g. [hsv2rgb] -- it should
instantiate.

fgmasdr
IOhannes



signature.asc
Description: OpenPGP digital signature
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] polynomial pairs in lpc filter

2018-04-20 Thread IOhannes m zmoelnig
On 2018-04-19 23:11, Ed Kelly via Pd-list wrote:
> verbose...
> 
> tried...(all pd search paths)...and failed
> tried...(current directory)...and failed

it seems that you are making it deliberately hard to help... :-)

does Pd find your external?
if so, does it print an error message? (raise verbosity in the
Pd-console to "DEBUG" as well).

> I will probably work it out sooner or later. The only external functions I'm 
> using are fabs() from  and fft_mayer/ifft_mayer from m_pd.h

for fabs() you must link against libm.

also, if the *only* external function you are using from m_pd.h is
[i]fft_mayer(), then it is pretty clear that the external cannot load:
you need at least class_new() and pd_new() as well...

fgamsdr
IOhannes



signature.asc
Description: OpenPGP digital signature
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list