Re: [PD] Porting Max MSP externals to Pure Data

2018-03-07 Thread Ed Kelly via Pd-list
Hi Jamie,
Yes, I should probably look at that - I can see the limitations of GSL vectors, 
platform-wise.
I think I needed to wrap my head around that before unpicking the algorithms of 
this library though, so I'll be going through a rewrite of the rewrite before 
it becomes a Pd fact!Ed


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

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

On Wednesday, 7 March 2018, 14:22:45 GMT, Jamie Bullock 
 wrote:  
 
 
Hi Ed,
I’d highly recommend porting to Flext rather than Pure Data. Then you have one 
codebase for both Max and Pd with the added benefit of Flext’s higher level C++ 
syntax. https://github.com/g/flext/
Jamie


On 4 Mar 2018, at 14:30, Ed Kelly via Pd-list  wrote:
Hi List,
I'm porting a library of LPC externals from Max/MSP to Pd.I wonder if someone 
could point me towards an example of another MSP external that has successfully 
been ported to Pd - preferably a DSP external that has creation arguments, with 
code for both so I can identify the differences between coding for the two 
platforms.
Cheers,Ed

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

For Lone Shark releases, Pure Data software and published Research, go to 
http://sharktracks.co.uk ___
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] Porting Max MSP externals to Pure Data

2018-03-07 Thread Jamie Bullock

Hi Ed,

I’d highly recommend porting to Flext rather than Pure Data. Then you have one 
codebase for both Max and Pd with the added benefit of Flext’s higher level C++ 
syntax. https://github.com/g/flext/ 

Jamie


> On 4 Mar 2018, at 14:30, Ed Kelly via Pd-list  wrote:
> 
> Hi List,
> 
> I'm porting a library of LPC externals from Max/MSP to Pd.
> I wonder if someone could point me towards an example of another MSP external 
> that has successfully been ported to Pd - preferably a DSP external that has 
> creation arguments, with code for both so I can identify the differences 
> between coding for the two platforms.
> Cheers,
> Ed
> 
> _-_-_-_-_-_-_-^-_-_-_-_-_-_-_
> 
> For Lone Shark releases, Pure Data software and published Research, go to 
> http://sharktracks.co.uk  
> ___
> 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] Porting Max MSP externals to Pure Data

2018-03-06 Thread Ed Kelly via Pd-list
Hey Patrick,
So, I've probably screwed up some stuff here with GSL, but I've been learning a 
hell of a lot with regards to vector operations, and porting the vDSP 
accelerate stuff to GSL. Eventually I suppose it would be good to get rid of 
that, and only use standard libs, except where the FFT stuff is concerned when 
we'll use either d_fft_fftdg.c or d_fft_fftw.c from pd src.
Also, I was reading an article about dereferencing, and I think I might have 
used > where just x-> is needed for gsl_vector_float operations, and I know 
the initialization functions gsl_vector_float_calloc() are wrong sized - I need 
to work out which need to be MAX_ORDER and which to be sized and initialized at 
size = nfft or size = nfft02 (It's 10pm and I'm also trying to master an album!)

Well, it's messy right now. Don't bust a gut on working all of it out, but if 
you can speed me up by spotting a few things it'd be appreciated.
I feel like I've absorbed a couple of megabytes in my head since the weekend.

Cheers,Ed
Enclosed - the original Max code and my incomplete hash of it - but I'm trying 
to port the hardest bit I think...Things will be renamed before a release to 
acknowledge Mark Cartwright, (as in mbc.lpc~ for the original MSP extern) but I 
haven't decided on the namespace options yet.


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

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

On Tuesday, 6 March 2018, 19:41:16 GMT, Pagano, Patrick 
<patrick.pag...@uconn.edu> wrote:  
 
 #yiv6390742159 #yiv6390742159 -- P 
{margin-top:0;margin-bottom:0;}#yiv6390742159 
Let me know how i can help ed




pp




Patrick Pagano B.S, M.F.A

Assistant Professor in Residence

Digital Media & Design


Web & Interactive Technologies

UCONN ECE Faculty Coordinator

University of Connecticut, Stamford

(352)-226-2016
From: Pd-list <pd-list-boun...@lists.iem.at> on behalf of Simon Iten 
<itensi...@gmail.com>
Sent: Tuesday, March 6, 2018 2:22:54 PM
To: Ed Kelly
Cc: pd list
Subject: Re: [PD] Porting Max MSP externals to Pure Data cool, thanks!

On 6 Mar 2018, at 17:25, Ed Kelly <morph_2...@yahoo.co.uk> wrote:
Encoding and decoding of LPC streams.I know you eagerly anticipate this! I have 
a lot of work to do...Ed


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

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

On Sunday, 4 March 2018, 22:11:46 GMT, Simon Iten <itensi...@gmail.com> wrote:

you are my hero. what will they do exactly? lcp encoding, decoding? lcp-streams 
to audio?
cheers

On 4 Mar 2018, at 15:30, Ed Kelly via Pd-list <pd-list@lists.iem.at> wrote:
Hi List,
I'm porting a library of LPC externals from Max/MSP to Pd.I wonder if someone 
could point me towards an example of another MSP external that has successfully 
been ported to Pd - preferably a DSP external that has creation arguments, with 
code for both so I can identify the differences between coding for the two 
platforms.
Cheers,Ed

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

For Lone Shark releases, Pure Data software and published Research, go 
tohttp://sharktracks.co.uk ___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list




  /**
	@file
	mbc.lpc~ - an MSP object shell
	mark cartwright - mcartwri...@gmail.com	

	@ingroup	lpcToolkit	
*/

#include "ext.h"			// standard Max include, always required (except in Jitter)
#include "ext_obex.h"		// required for new style objects
#include "z_dsp.h"			// required for MSP objects
#include 
#include 

#define MAX_ORDER 200
#define NLOG2(x) (ceil(log2(x)))
#define POW2(x) (1 << x);
#define DEFAULT_FS 44100
#define DEFAULT_FRAMERATE 100
#define DEFAULT_V_SIZE 64

// object struct
typedef struct _lpc 
{
	t_pxobject	ob;	// the object itself (t_pxobject in MSP)
	t_float*	l_frame_buff;		//input frame buffer
	t_float*	l_winframe_buff;	//windowed input frame buffer
	t_float*	l_outCoeff_buff;	//coefficient signal
	t_float*	l_outParcor_buff; 	//PARCOR coeffs
	t_float*	l_outError_buff;	//error signal
	t_float*	l_win;//analysis window
	t_float*	l_R;
	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;

Re: [PD] Porting Max MSP externals to Pure Data

2018-03-06 Thread Pagano, Patrick
Let me know how i can help ed


pp


Patrick Pagano B.S, M.F.A

Assistant Professor in Residence

Digital Media & Design

Web & Interactive Technologies

UCONN ECE Faculty Coordinator

University of Connecticut, Stamford

(352)-226-2016


From: Pd-list <pd-list-boun...@lists.iem.at> on behalf of Simon Iten 
<itensi...@gmail.com>
Sent: Tuesday, March 6, 2018 2:22:54 PM
To: Ed Kelly
Cc: pd list
Subject: Re: [PD] Porting Max MSP externals to Pure Data

cool, thanks!
On 6 Mar 2018, at 17:25, Ed Kelly 
<morph_2...@yahoo.co.uk<mailto:morph_2...@yahoo.co.uk>> wrote:

Encoding and decoding of LPC streams.
I know you eagerly anticipate this! I have a lot of work to do...
Ed


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

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


On Sunday, 4 March 2018, 22:11:46 GMT, Simon Iten 
<itensi...@gmail.com<mailto:itensi...@gmail.com>> wrote:


you are my hero. what will they do exactly? lcp encoding, decoding? lcp-streams 
to audio?

cheers

On 4 Mar 2018, at 15:30, Ed Kelly via Pd-list 
<pd-list@lists.iem.at<mailto:pd-list@lists.iem.at>> wrote:

Hi List,

I'm porting a library of LPC externals from Max/MSP to Pd.
I wonder if someone could point me towards an example of another MSP external 
that has successfully been ported to Pd - preferably a DSP external that has 
creation arguments, with code for both so I can identify the differences 
between coding for the two platforms.
Cheers,
Ed

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

For Lone Shark releases, Pure Data software and published Research, go to 
http://sharktracks.co.uk<http://sharktracks.co.uk/>
___
Pd-list@lists.iem.at<mailto: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] Porting Max MSP externals to Pure Data

2018-03-06 Thread Simon Iten
cool, thanks!
> On 6 Mar 2018, at 17:25, Ed Kelly  wrote:
> 
> Encoding and decoding of LPC streams.
> I know you eagerly anticipate this! I have a lot of work to do...
> Ed
> 
> 
> _-_-_-_-_-_-_-^-_-_-_-_-_-_-_
> 
> For Lone Shark releases, Pure Data software and published Research, go to 
> http://sharktracks.co.uk  
> 
> 
> On Sunday, 4 March 2018, 22:11:46 GMT, Simon Iten  wrote:
> 
> 
> you are my hero. what will they do exactly? lcp encoding, decoding? 
> lcp-streams to audio?
> 
> cheers
> 
>> On 4 Mar 2018, at 15:30, Ed Kelly via Pd-list > > wrote:
>> 
>> Hi List,
>> 
>> I'm porting a library of LPC externals from Max/MSP to Pd.
>> I wonder if someone could point me towards an example of another MSP 
>> external that has successfully been ported to Pd - preferably a DSP external 
>> that has creation arguments, with code for both so I can identify the 
>> differences between coding for the two platforms.
>> Cheers,
>> Ed
>> 
>> _-_-_-_-_-_-_-^-_-_-_-_-_-_-_
>> 
>> For Lone Shark releases, Pure Data software and published Research, go to 
>> http://sharktracks.co.uk  
>> ___
>> 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] Porting Max MSP externals to Pure Data

2018-03-06 Thread Ed Kelly via Pd-list
Encoding and decoding of LPC streams.I know you eagerly anticipate this! I have 
a lot of work to do...Ed


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

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

On Sunday, 4 March 2018, 22:11:46 GMT, Simon Iten  
wrote:  
 
 you are my hero. what will they do exactly? lcp encoding, decoding? 
lcp-streams to audio?
cheers

On 4 Mar 2018, at 15:30, Ed Kelly via Pd-list  wrote:
Hi List,
I'm porting a library of LPC externals from Max/MSP to Pd.I wonder if someone 
could point me towards an example of another MSP external that has successfully 
been ported to Pd - preferably a DSP external that has creation arguments, with 
code for both so I can identify the differences between coding for the two 
platforms.
Cheers,Ed

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

For Lone Shark releases, Pure Data software and published Research, go to 
http://sharktracks.co.uk ___
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] Porting Max MSP externals to Pure Data

2018-03-04 Thread Simon Iten
you are my hero. what will they do exactly? lcp encoding, decoding? lcp-streams 
to audio?

cheers

> On 4 Mar 2018, at 15:30, Ed Kelly via Pd-list  wrote:
> 
> Hi List,
> 
> I'm porting a library of LPC externals from Max/MSP to Pd.
> I wonder if someone could point me towards an example of another MSP external 
> that has successfully been ported to Pd - preferably a DSP external that has 
> creation arguments, with code for both so I can identify the differences 
> between coding for the two platforms.
> Cheers,
> Ed
> 
> _-_-_-_-_-_-_-^-_-_-_-_-_-_-_
> 
> For Lone Shark releases, Pure Data software and published Research, go to 
> http://sharktracks.co.uk  
> ___
> 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] Porting Max MSP externals to Pure Data

2018-03-04 Thread Ed Kelly via Pd-list
Ah, a book? By Eric Lyons?That's manna from heaven!I have the gigaverb code 
now. I will investigate it thoroughly. Thanks,Ed

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

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

On Sunday, 4 March 2018, 15:05:09 GMT, Marco Matteo Markidis 
 wrote:  
 
 Hi,
you can take a look of gigaverb~. Moreover there is Eric Lyon's book on writing 
externals in max and pd.Best,Marco
2018-03-04 15:30 GMT+01:00 Ed Kelly via Pd-list :

Hi List,
I'm porting a library of LPC externals from Max/MSP to Pd.I wonder if someone 
could point me towards an example of another MSP external that has successfully 
been ported to Pd - preferably a DSP external that has creation arguments, with 
code for both so I can identify the differences between coding for the two 
platforms.
Cheers,Ed

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

For Lone Shark releases, Pure Data software and published Research, go to 
http://sharktracks.co.uk 
__ _
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> https://lists.puredata.info/ 
listinfo/pd-list





-- 
Ho cambiato l'indirizzo email in mm.marki...@autistici.org . Se non è un 
problema, scrivimi a questo nuovo indirizzo email.
I changed my email address in mm.marki...@autistici.org . If it is ok for you, 
please write me to this new email 
address.___
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] Porting Max MSP externals to Pure Data

2018-03-04 Thread Marco Matteo Markidis
Hi,

you can take a look of gigaverb~. Moreover there is Eric Lyon's book on
writing externals in max and pd.
Best,
Marco

2018-03-04 15:30 GMT+01:00 Ed Kelly via Pd-list :

> Hi List,
>
> I'm porting a library of LPC externals from Max/MSP to Pd.
> I wonder if someone could point me towards an example of another MSP
> external that has successfully been ported to Pd - preferably a DSP
> external that has creation arguments, with code for both so I can identify
> the differences between coding for the two platforms.
> Cheers,
> Ed
>
> _-_-_-_-_-_-_-^-_-_-_-_-_-_-_
>
> For *Lone Shark *releases, *Pure Data *software and published *Research*,
> go to http://sharktracks.co.uk
>
> ___
> Pd-list@lists.iem.at mailing list
> UNSUBSCRIBE and account-management -> https://lists.puredata.info/
> listinfo/pd-list
>
>


-- 
Ho cambiato l'indirizzo email in mm.marki...@autistici.org . Se non è un
problema, scrivimi a questo nuovo indirizzo email.

I changed my email address in mm.marki...@autistici.org . If it is ok for
you, please write me to this new email address.
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list