Hi. I am looking for some resources for learning C\C++ programming in a context of DSP (I'd like to be able to write pd externals some time in the future).
I have recently finished reading "The Scientist and Engineer's Guide to Digital Signal Processing" and I managed to go through half of the Addison Wesley's "C++ Primer 4th Edition" (and I'll probably keep reading it), but I feel that it would be good to learn more in a context of what I am really interested in.
The exercises in the C++ Primer are very dry and the examples in The Scientist and Engineer's Guide are all in BASIC (I could probably try to rewrite them in C++ as an exercise). Could anybody show me the light and point me to some books, or online resources (tutorials, bits of code easy to comprehend by a beginner) that could help me achieving my goal?
ps I was just wondering if I should start from learning C and then go to C++ or just learn C++ and then learn bits of C along the way?
Thanks for reading this!! :)
Adrian Gierakowski
check: http://iem.kug.ac.at/pd/externals-HOWTO/
and also /doc/6.externs
cheers,
J
On Mon, Jul 13, 2009 at 1:31 AM, adrian.g adrian.g@zoho.com wrote:
Hi. I am looking for some resources for learning C\C++ programming in a context of DSP (I'd like to be able to write pd externals some time in the future).
I have recently finished reading "The Scientist and Engineer's Guide to Digital Signal Processing" and I managed to go through half of the Addison Wesley's "C++ Primer 4th Edition" (and I'll probably keep reading it), but I feel that it would be good to learn more in a context of what I am really interested in.
The exercises in the C++ Primer are very dry and the examples in The Scientist and Engineer's Guide are all in BASIC (I could probably try to rewrite them in C++ as an exercise). Could anybody show me the light and point me to some books, or online resources (tutorials, bits of code easy to comprehend by a beginner) that could help me achieving my goal?
ps I was just wondering if I should start from learning C and then go to C++ or just learn C++ and then learn bits of C along the way?
Thanks for reading this!! :)
Adrian Gierakowski _______________________________________________ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Thank you for that. I was asking more about resources for learning C\C++ languages themselves keeping in mind that "writing DSP externals for pd" is my end goal. Any suggestions?
Adrian Gierakowski
---- On Mon, 13 Jul 2009 01:45:22 -0700 Jaime Oliver jaime.oliver2@gmail.com wrote ----
check:
http://iem.kug.ac.at/pd/externals-HOWTO/
and also /doc/6.externs
cheers,
J
On Mon, Jul 13, 2009 at 1:31 AM, adrian.g adrian.g@zoho.com wrote: Hi. I am looking for some resources for learning CC++ programming in a context of DSP (I'd like to be able to write pd externals some time in the future).
I have recently finished reading "The Scientist and Engineer's Guide to Digital Signal Processing" and I managed to go through half of the Addison Wesley's "C++ Primer 4th Edition" (and I'll probably keep reading it), but I feel that it would be good to learn more in a context of what I am really interested in.
The exercises in the C++ Primer are very dry and the examples in The Scientist and Engineer's Guide are all in BASIC (I could probably try to rewrite them in C++ as an exercise). Could anybody show me the light and point me to some books, or online resources (tutorials, bits of code easy to comprehend by a beginner) that could help me achieving my goal?
ps I was just wondering if I should start from learning C and then go to C++ or just learn C++ and then learn bits of C along the way?
Thanks for reading this!! :)
Adrian Gierakowski _______________________________________________ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
-- Jaime E Oliver LR
joliverl@ucsd.edu www.realidadvisual.org/jaimeoliver www-crca.ucsd.edu/ www.realidadvisual.org
858 202 1522 9168 Regents Rd. Apt. G La Jolla, CA 92037 USA
For externals, you should mainly use C. The book I used to learn C when I was student is more or less considered as C bible. Check a look at it: http://en.wikipedia.org/wiki/The_C_Programming_Language_(book)
2009/7/13 adrian.g adrian.g@zoho.com:
Thank you for that. I was asking more about resources for learning C\C++ languages themselves keeping in mind that "writing DSP externals for pd" is my end goal. Any suggestions?
Adrian Gierakowski
---- On Mon, 13 Jul 2009 01:45:22 -0700 Jaime Oliver jaime.oliver2@gmail.com wrote ----
> check: > > http://iem.kug.ac.at/pd/externals-HOWTO/ > > > and also /doc/6.externs > > > cheers, > > > J > > On Mon, Jul 13, 2009 at 1:31 AM, adrian.g adrian.g@zoho.com wrote: > Hi. I am looking for some resources for learning CC++ programming in a context of DSP (I'd like to be able to write pd externals some time in the future). > > I have recently finished reading "The Scientist and Engineer's Guide to Digital Signal Processing" and I managed to go through half of the Addison Wesley's "C++ Primer 4th Edition" (and I'll probably keep reading it), but I feel that it would be good to learn more in a context of what I am really interested in. > > The exercises in the C++ Primer are very dry and the examples in The Scientist and Engineer's Guide are all in BASIC (I could probably try to rewrite them in C++ as an exercise). Could anybody show me the light and point me to some books, or online resources (tutorials, bits of code easy to comprehend by a beginner) that could help me achieving my goal? > > ps > I was just wondering if I should start from learning C and then go to C++ or just learn C++ and then learn bits of C along the way? > > Thanks for reading this!! :) > > Adrian Gierakowski > _______________________________________________ > Pd-list@iem.at mailing list > UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list > > > > > > -- > Jaime E Oliver LR > > joliverl@ucsd.edu > www.realidadvisual.org/jaimeoliver > www-crca.ucsd.edu/ > www.realidadvisual.org > > 858 202 1522 > 9168 Regents Rd. Apt. G > La Jolla, CA 92037 > USA > _______________________________________________ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
David Doukhan wrote:
For externals, you should mainly use C.
for externals you should of course use the language that you are most fluent in.
Pd is written in C, so C is the most natural choice from Pd's pov, but probably not yours.
you can write externals in a wide number of other languages as well (including (but not limited to) Pd (which is even more natural than C), C++, python, lua, java, haskell and HQ9+)
if you want to write C++ externals, you might want to use flext (which offers a nice framework and an awkward build-environment :-))
fgmasdr IOhannes
On Mon, Jul 13, 2009 at 12:04 PM, IOhannes m zmoelnig zmoelnig@iem.atwrote:
you can write externals in a wide number of other languages as well (including (but not limited to) Pd (which is even more natural than C), C++, python, lua, java, haskell and HQ9+)
Are there any links or tutorials to write externals in other languages than C or C++?
Hi IOhannes,
you can write externals in a wide number of other languages as well (including (but not limited to) Pd (which is even more natural than C), C++, python, lua, java, haskell and HQ9+)
Could you expand a little on writing externals with python please?
Thanks, Lorenzo.
On Jul 13, 2009, at 8:32 AM, Lorenzo wrote:
Hi IOhannes,
you can write externals in a wide number of other languages as well
(including (but not limited to) Pd (which is even more natural than
C), C++, python, lua, java, haskell and HQ9+)Could you expand a little on writing externals with python please?
You can't really write externals in python, but you can embed python
scripts into Pd using Thomas Grill's pyext. The Java support is a
clone of Max/MSP's mxj, which is very similar to pyext. You can write
external objects in Pd, C, C++, and lua.
.hc
Information wants to be free. -Stewart Brand
2009/7/14 Hans-Christoph Steiner hans@at.or.at
On Jul 13, 2009, at 8:32 AM, Lorenzo wrote:
Hi IOhannes,
you can write externals in a wide number of other languages as well
(including (but not limited to) Pd (which is even more natural than C), C++, python, lua, java, haskell and HQ9+)
Could you expand a little on writing externals with python please?
You can't really write externals in python, but you can embed python scripts into Pd using Thomas Grill's pyext. The Java support is a clone of Max/MSP's mxj, which is very similar to pyext. You can write external objects in Pd, C, C++, and lua.
.hc
Talking about interpreted languages you can also try to send and receive arguments through net sockets with [netsend] [netreceive] and you can use [shell] in linux for bash script or almost anything your linux shell can deal.
;;;
for dsp code examples: http://www.musicdsp.org/
Cheers,
Malte
I am grateful for the tips. Just one question: is there any performance penalty for externals written using C++\flext comparing to pure C?
All the best.
Adrian
---- On Mon, 13 Jul 2009 05:40:35 -0700 Malte Steiner steiner@block4.com wrote ----
for dsp code examples: http://www.musicdsp.org/
Cheers,
Malte
--
media art + development http://www.block4.com
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
On Mon, Jul 13, 2009 at 3:27 PM, adrian.g adrian.g@zoho.com wrote:
I am grateful for the tips. Just one question: is there any performance penalty for externals written using C++\flext comparing to pure C?
The DSP loop will be the same in C or C++.