[PD] problem loading many objects with newest extended on Mac

2014-10-12 Thread david medine
Another thing I noticed today was that a fresh install of the latest pd-extended compiled for Mac seems not to have a large number of objects at its fingertips (including [metro], [lshift~] and [rshift~] and a whole mess of other stuff). Anyone else run into this bug? -David

Re: [PD] assistive music technology

2014-12-02 Thread david medine
Very cool! BTW, there is a stub of a Pd extern that does use sphinx on github. The extern simply outputs the text that it decodes from the speech input. This project needs some work to make it more useful (and the coding style is embarrassingly crude), but it builds and works on both linux

Re: [PD] moog

2014-12-29 Thread David Medine
I believe, though I may be wrong, that the Moog vcf object is based on the algorithm described in the 2004 Huovalainen paper (citation [6] in the Fontana): http://www.mirlab.org/conference_papers/International_Conference/DAFx%202004/Proc/P_061.pdf I am a little confused here (in the Fontana)

Re: [PD] moog

2014-12-31 Thread David Medine
-29 17:20 GMT-02:00 David Medine dmed...@ucsd.edu mailto:dmed...@ucsd.edu: I believe, though I may be wrong, that the Moog vcf object is based on the algorithm described in the 2004 Huovalainen paper (citation [6] in the Fontana): http://www.mirlab.org/conference_papers

Re: [PD] speech recognition and ethics

2015-02-07 Thread david medine
One of the bad things about Google is that it is essentially a giant billboard. Having said that, I am going to advertise a couple of things. If you want a speech recognition API that doesn't rely on a tax-exempt corporation that has more money than the nation of Russia, builds its products

Re: [PD] speech recognition and ethics

2015-02-07 Thread David Medine
AM, Jonathan Wilkes wrote: Thanks, I didn't know there was a Sphinx external. It also looks like the Sphinx website got a face-lift-- hopefully the software is also more approachable than the last time I looked. -Jonathan On Saturday, February 7, 2015 2:16 PM, david medine dmed...@ucsd.edu

Re: [PD] Miller's Moogfilter

2015-01-14 Thread David Medine
I can do it. If not this afternoon, in a day or two... On 1/14/2015 3:25 PM, Joel Matthys wrote: Is there anyone out there who could compile a Win32 version for me? I need a patch to work cross-platform, and I can handle the Linux and Darwin compiles but I don't have build access to a Windoze

Re: [PD] meaning of delay(msec) and use callbacks in audio settings

2015-02-17 Thread David Medine
Basically these things have to do with performance. 'Use callbacks' has to do with how Pd communicates with your soundcard. There are two options, using callbacks, and blocking. In the callbacks scenario, your computer processes samples then asks the sound card to 'call you back' when it's

Re: [PD] dynamic loading in external

2015-01-10 Thread david medine
instead of a makefile though. http://puredata.info/downloads/aubio/ Joel On 01/09/2015 05:52 PM, David Medine wrote: Indeed, the ldl methods seem to work, but this is a horrible pain. It means sprintf-ing together function calls, and it will mean no little #ifdef _WIN32 statements. Blech! Maybe

Re: [PD] dynamic loading in external

2015-01-09 Thread David Medine
, David On 1/9/2015 3:04 PM, David Medine wrote: Thanks for this. Yeah, I forgot to mention that I also set the LD_LIBRARY_PATH variable to the correct directory. I hope not to have to use dynamic loading in the code, particularly since I want this to work on Windows eventually as well. On 1/9

Re: [PD] dynamic loading in external

2015-01-09 Thread David Medine
: On 09/01/15 21:34, David Medine wrote: I am writing an extern that uses a 3rd party shared object library. I keep getting a cannot open shared object file: No such file or directory Maybe set the LD_LIBRARY_PATH environment variable to the directory containing your 3rd party .so before starting Pd

Re: [PD] pd symbol confusion

2015-01-13 Thread David Medine
I begin to understand. Thank you! On 1/13/2015 4:19 PM, Claude Heiland-Allen wrote: On 13/01/15 23:51, David Medine wrote: how to pack the strings into symbols gensym() turns a string into a symbol (so pointer equality can be used instead of string comparison) note that there is no way

Re: [PD] zero latency convolution

2015-01-13 Thread david medine
You can also check out William Brent's [convolve~] extern, which does partitioned convolution with live input. http://williambrent.conflations.com/pages/research.html On 1/13/15 6:59 AM, katja wrote: Hi, Low latency convolution can be implemented using [bsaylor/partconv~] and minimum phase

[PD] pd symbol confusion

2015-01-13 Thread David Medine
I am trying to output a list of strings (ie char **strings) from a list outlet. I have a t_atom *a_vec that is as long as the number of strings that I want to output and there is a max length to the strings. My question is, how do I pack the strings into the atom vector(a_vec)? It's easy with

Re: [PD] Troubles running Pd on Windows XP Professional

2015-06-24 Thread David Medine
I don't know about other dependencies, but I'm pretty sure that msvcr90 is as high as you need to go for XP. I've definitely seen that DLL on sites apart form Microsoft's, but I guess that doesn't prove that it is freely distributable... -David On 6/24/2015 1:31 PM, Miller Puckette wrote:

Re: [PD] compiling for Raspberry Pi 2 (was 2nd Pi 2 issue)

2015-07-07 Thread David Medine
Apropos of wiringPi, I have created a library for interfacing with the Texas Instruments ADS1015 ADC on the raspberry pi. These are SPI devices that come in 12 and 16 bit varieties. As far as I know, the wiringPi library doesn't have functions to interface with these chips (they've got their

Re: [PD] debugging externs with gdb in Linux

2015-08-07 Thread David Medine
a source file to the makefile and two lines to m_conf.c). If soneone else knows the magic to get GDB to see symbols in a Pd extern I'd like to hear it too. cheers Miller On Thu, Aug 06, 2015 at 02:08:19PM -0700, David Medine wrote: Does anybody out there know how to use gdb to debug an extern

[PD] debugging externs with gdb in Linux

2015-08-06 Thread David Medine
Does anybody out there know how to use gdb to debug an extern in Linux? I have used this method: https://puredata.info/docs/developer/DebuggingPdExternals on Mac and it seems to work fine, but on my Fedora 20 system, when I run (gdb) add-symbol-file /path/to/my_extern.pd_linux I get the

[PD] variable signal outlets and inlets?

2015-08-30 Thread David Medine
Does any one know how to write a ~ object that has a variable number signal outlets and inlets? The only thing I've been able to come up with is to have a dsp routine that looks like: switch(x-n_sigs){ case 3: dsp_add(whatever_tilde_perform, 5, x, sp[0]-s_vec,

Re: [PD] variable signal outlets and inlets?

2015-08-31 Thread David Medine
So if I understand correctly, this should always be ok as long as the number of ins and outs is correct: n = x->x_n_in + x->x_n_out; for(i=0; ix_io[i] = sp[i+compat_offset]->s_vec; and then we don't need to pass the s_vec variables one by one int the call to dsp_add

Re: [PD] 8 point average filter with biquad and raw filters?

2015-09-08 Thread David Medine
I'm not sure how to do it with biquads, but I'm sure it's possible. It is absolutley possible to design an IIR filter that approximates this and then build it out of biquad sections, but I would have to look long and hard at my DSP theory texts to figure it out. I /do/ know how to do it with

Re: [PD] band limited (anti-alias) techniques

2015-11-24 Thread David Medine
Välimäki and Houvilainen have published a number of articles about something called 'differentiated parabolic waveforms'. Basically, you square a digital sawtooth and put it through a one-zero differentiating filter (y(n) = x(n) - x(n-1)). What you get out is a slightly rounder (less

[PD] writesf~ hanging

2016-06-11 Thread David Medine
I am getting a weird error when attempting to write a soundfile. After a few hundred milliseconds of writing, the terminal starts throwing me: writesf waiting for disk write.. (head 524032, tail 0, room 256, want 256) ... done waiting. This appears to happen on every block tick, over and over

Re: [PD] How's Pd limited?

2016-02-23 Thread David Medine
I think we all need to learn more about multi-threading if we want to run real-time, modular, digital signal processing algorithms on multi-core machines. I, for one, can not think of any general, robust way to do this. In that sense, Pd's adherence to single threading is actually a very

Re: [PD] Parallel Audio Processing (Was: How's Pd limited?)

2016-02-24 Thread david medine
hronous So (if i am right), if something is heavy to compute (more than 100% of your CPU) in your subprocess with [pd~], your parent have to wait the end of this computation. This is not the case with [netsend]/[netreceive]. ++ Jack On Tue, Feb 23, 2016 at 5:45 PM, David Medine <dmed...@ucsd

Re: [PD] How's Pd limited?

2016-02-24 Thread David Medine
n on third core, while GEM could automatically run on a fourth core. I don't have any concept of how feasible that would be, though. Does the GUI in pd-l2orc run on a separate core? Sam Message: 4 Date: Tu

Re: [PD] Parallel Audio Processing (Was: How's Pd limited?)

2016-02-24 Thread David Medine
That is definitely true. Of course, we musicians need it more than most computer users out there... On 2/24/2016 11:57 AM, Jonathan Wilkes wrote: I'd say a solution would deserve the nobel prize in computers. :) -Jonathan On Wednesday, February 24, 2016 11:40 AM, david medine <d

Re: [PD] How's Pd limited?

2016-02-25 Thread David Medine
BTW, this is germane to some work that I have been doing and it just so happens that I have a figure handy. In the figure are the spectra for two oscillators frequency modulating each other in a tight feedback loop. The first two were made with FM oscillators adapted from Pd's FM example

Re: [PD] Does Pd have a "sound"?

2016-02-14 Thread David Medine
I've noticed a pretty substantial "quality" difference between using floats and doubles for certain things as well. I'm not sure how this all shakes down, since it depends not only on the programming environment, but also the audio API (e.g. portaudio --last time I looked at it -- doesn't

Re: [PD] Does Pd have a "sound"?

2016-02-15 Thread david medine
Well, one could write a book about how to make a triangle wave. I've decided it's impossible. On 2/15/16 8:24 AM, Alexandre Torres Porres wrote: I still believe differences between Pd and SC depend on other technical details than the ones presented, because similar objects like triangle~ and

Re: [PD] [bob~] denormals issue?

2016-09-21 Thread David Medine
From a few posts ago it looks like -O3 is what causes denormals to stick around, but I don't really know what I'm talking about. RK4 (which is what bob~ uses to solve the system) will never 'naturally' bring the filter state exactly back to 0 unless forced to in some way so if the denormals

Re: [PD] Latency compensation

2016-10-19 Thread david medine
why don't you patch a little tester app that sends some generated sounds, preferably with very clear attack, out and record this back in. that way you can measure the (roundtrip) latency of the whole system. Of course, that is a way. "Knowing" the latency instead of "measuring" it would be

[PD] multi-threaded dsp extern?

2017-07-25 Thread David Medine
Dear all, I am dusting off an unfinished project, so I may have asked this question already, but I've completely forgotten about it by now. I am trying to develop a Pd dsp extern that has a listen thread in it. I am streaming data from another application and copying it into a buffer in the

[PD] variable outlets in dsp object

2017-06-08 Thread David Medine
I am writing a DSP extern that can have a any number of outlets depending on the creation arguments (like [fexpr~], e.g.). In order to interact with the outlets in the XXX_tilde_perform loop, I made a member of my t_XXX_tilde data structure thus: t_sample **lcl_outs; Then, when I know how

Re: [PD] variable outlets in dsp object

2017-06-08 Thread David Medine
Now I realize that everything I posted in the last post makes absolutely no sense at all. Something else is causing the crashes. Damn! On 6/8/17 10:51 AM, David Medine wrote: I am writing a DSP extern that can have a any number of outlets depending on the creation arguments (like [fexpr

Re: [PD] variable outlets in dsp object

2017-06-08 Thread David Medine
Thanks. You do what I'm doing: reassigning the samples out pointers that are stored in the class structure to a local variable in the perform loop. This seems to work better than accessing the stored pointers (on windoze anyway). On 6/8/17 12:36 PM, Pierre Guillot wrote: I don't fully

[PD] lsl_inlet~ now available

2017-06-08 Thread David Medine
For those interested, I pushed onto my github page (https://github.com/dmedine/PdLSL/tree/master/lsl_inlet%7E) a Pd extern that wraps LabStreamingLayer's signal inlet. Now you can stream data into Pd with LSL. This is still fairly unpolished. It still crashes sometimes for reasons I don't

Re: [PD] lsl_inlet~ now available

2017-06-09 Thread David Medine
Sorry. Try labstreaminglayer. It's a library and suite of applications for real time data streaming and synchronization. On 6/8/17 3:35 PM, Roman Haefeli wrote: On Don, 2017-06-08 at 13:55 +0200, David Medine wrote: For those interested, I pushed onto my github page (https://github.com

Re: [PD] Pd meetings in Berlin?

2017-10-10 Thread David Medine
I'm in Munich, but the new high-speed line to Berlin is coming soon. I'd definitely be interested in participating! On 10/10/2017 2:07 AM, Ingo Stock wrote: Great initiative, would love to take part! best wishes, ingo On 10/10/17 01:31, João Pais wrote: Dear List, we're considering

Re: [PD] Compiling gendy~.pd_linux

2017-10-17 Thread David Medine
Gendy looks neat, but there is no makefile or anything? Probably CMake to generate a makefile for the library itself, then just a modified Pd extern makefile (the generated library will have to be linked) will do the job. As per your error below, it looks like you need to compile with a more

Re: [PD] Compiling gendy~.pd_linux

2017-10-18 Thread David Medine
list <pd-list-boun...@lists.iem.at> on behalf of David Medine <dmed...@ucsd.edu> *Sent:* Tuesday, October 17, 2017 11:12:57 AM *To:* pd-list@lists.iem.at *Subject:* Re: [PD] Compiling gendy~.pd_linux Gendy looks neat, but there is no makefile or anything? Probably CMake to

[PD] pd-0.48.1 trouble getting started

2018-01-08 Thread David Medine
This may have already been addressed and in my tendency to ignore pd list traffic I missed the explanation, but here is what is going on. I am running a fairly fresh install of Fedora 26. I downloaded the source to Pd, installed alsa-lib-devel and tk (for wish), then built pd using

Re: [PD] pd-0.48.1 trouble getting started

2018-01-10 Thread David Medine
Any reason not to use CMake? I find it makes things a lot easier, especially when dealing with multiple platforms. It requires installing CMake, of course, but I think it is reasonable to expect that anyone building Pd from source can install CMake. On 1/10/2018 12:08 PM, IOhannes m zmoelnig

Re: [PD] pd-0.48.1 trouble getting started

2018-01-09 Thread David Medine
zmoelnig wrote: On 2018-01-09 06:37, David Medine wrote: This may have already been addressed and in my tendency to ignore pd list traffic I missed the explanation, but here is what is going on. I am running a fairly fresh install of Fedora 26. I downloaded the source to Pd, installed alsa-lib-devel

Re: [PD] absolute values of a list of numbers?

2018-02-17 Thread David Medine
...or you could use [listtool] (https://github.com/dmedine/list_externs) which I made back in the CRCA days because I wanted to be as cool as William :) On 02/17/2018 01:02 PM, William Brent wrote: If you're already using timbreID, you could put the list in a table and use [tabletool]'s "abs"

[PD] debugging complex extern

2018-04-11 Thread David Medine
I am trying to debug an extern on linux using gdb and this tutorial (for MacOS and some years old) does not work on my machine. In fact, I've tried this a few times in the past with little success. The watchdog just hangs when I break

Re: [PD] debugging complex extern

2018-04-12 Thread David Medine
zmölnig wrote: On 04/11/2018 07:03 PM, David Medine wrote: I am trying to debug an extern on linux using gdb and this tutorial <https://puredata.info/docs/developer/DebuggingPdExternals> (for MacOS and some years old) does not work on my machine. In fact, I've tried this a few times in th

Re: [PD] debugging complex extern

2018-04-12 Thread David Medine
n PID 3888 in this case) and there is no gdb prompt. If I put a break point in before I hit 'run' I get the same, and the process doesn't break, even though the function I wanted to break is surely called. On 04/12/2018 12:19 PM, IOhannes m zmölnig wrote: On 04/12/2018 11:18 AM, David Me

Re: [PD] compile pd-0.45-5 on Linux with autogen.sh

2014-06-24 Thread David Medine via Pd-list
It looks like you might be missing some libraries, specifically alsa and tcl/tk. Does mint use apt-get for packages or is it yum? I have no idea. Either way, use your package manager to download and install the proper packages. sudo yum install tcl tk does it on distros using yum. Looking

Re: [PD] compile pd-0.45-5 on Linux with autogen.sh

2014-06-24 Thread David Medine via Pd-list
Yes, Simon's message reminded me, you want yum tcl-dev tk-dev etc. Indeed, you need the development packages, not just the libraries. On 06/24/2014 12:08 PM, Simon Iten via Pd-list wrote: You need development files for the things you want to have compiled in (jack, alsa) usually you find

Re: [PD] Cross platform path for externals ?

2014-06-29 Thread David Medine via Pd-list
Hey, Jaime! It also occurs to me that there must be some easy C way to return the current path. cd does it, why can't you? A crude solution might be to put some platform specific #ifdef statements into the code, but that may not get to the heart of your problem. -David On 06/29/2014 08:18