Re: [PD] [Pd] Compile external with C++ compiler?
Hi Ed, Thanks for the advice, although I don't think this piece of work warrants changing our audio engine :) ofxPd looks cool though, what's sort of app are you making? (If you can say). Cheers, Joe On 27 April 2012 02:05, Ed Kelly morph_2...@yahoo.co.uk wrote: Hi Joe, Have you thought of using ofxPd? I'm involved in the creation of an app for the iPhone right now, and we're using ofxPd from Dan Wilcox: https://github.com/danomatika/ofxPd Since Openframeworks is a bunch of C++ wrappers for various libraries, ofxPd adds Pd to the libraries that you can work with in C++. Then you can call the setup function within the xcode build, and your object will work in libpd (i.e. ofxPd) in the app environment. Bear in mind that Apple do not like GnuGPL licensed stuff, so I've created BSD licensed versions of some of my own Pd externals for this project. And the app works. We're in the final stages now, so I'll post to the list when it's complete! Best, Ed Gemnotes-0.1alpha: Live music notation for Pure Data http://sharktracks.co.uk/ -- *From:* Joe White white.j...@gmail.com *To:* pd-list pd-list@iem.at *Sent:* Thursday, 26 April 2012, 16:51 *Subject:* [PD] [Pd] Compile external with C++ compiler? Hi all, Thought I might as well ask this here because you guys know everything :) I'm writing an external to be built into an iOS app that's running Pd. The catch is I need to interface with a C++ library within the external. The external builds and runs fine if I'm using the C compiler (in Xcode) but I can't access the C++ library functions. If I switch it to compile in C++ (by changing the objective-c file from .m to .mm) then I can use the C++ library functions but it complains that it can't find 'class_addmethod' *'No matching function for call to 'class_addmethod'* I've tried declaring the setup function as C code like Katja explains on her site http://www.katjaas.nl/pitchshift/soundtouch%7E.html: extern C void external_tilde_setup(void) { } But that still didn't seem to work. I was also going through the list and found this threadhttp://lists.puredata.info/pipermail/pd-list/2002-02/004485.html but I'm not sure if it's the right approach. Plus I'm more of an audio guy than programmer :) Any ideas would be much appreciated. Thanks, Joe -- Follow me on Twitter @diplojocus ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list -- Follow me on Twitter @diplojocus ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] [PD-announce] CFP | Interactivos?'12 Dublin: Hack the City
*MEDIALAB-PRADO* Plaza de las Letras C/ Alameda, 15 · 28014 Madrid +34 913 692 303 www.medialab-prado.es* * * * Interactivos?'12 Dublin: Hack the City. Current and Future Needs Call for Projects Science Gallery (Dublin) and Medialab-Prado (Madrid) are issuing an Open Call for projects to be collaboratively developed and presented during Interactivos?'12 Dublin: Hack the City. Current and Future Needs (Dublin, Ireland, July 11 -- 26, 2012), with the participation of advisors and technical assistants. Deadline: May 20, 2012. Call for collaborators: June 1 - July 5, 2012 Through this call 6 to 7 ideas will be selected, aiming to: - Involve the design of objects, installations or other platforms that put the hacker ethos into practice. - Utilise open and free software and hardware technology developed through Do It Yourself (DIY) and Do It With Others(DIWO) methodologies and working strategies. - Address current and future city needs - Specifically we are calling for projects that address: Crowd Sourcing Public Data, Wellbeing and Open Data Services. This call is aimed at artists, designers, makers, doers, data nerds, hobbyists, citizen scientists, tech geeks, activists, edgy engineers, urban planners and to anyone interested in the theme. Advisors of the workshop: Tim Redfern, Carolina García Cataño, John Lynch with Teresa Dillon (HACK THE CITY curator). Complete information and guidelines: http://medialab-prado.es/article/cfp_interactivos_dublin_12 **Activity within the framework of Studiolab European project: http://www.studiolabproject.eu/ http://medialab-prado.es http://www.sciencegallery.com/ -- Nerea García Garmendia Medialab-Prado Área de Las Artes, Ayuntamiento de Madrid Plaza de las Letras Alameda, 15 28014 Madrid Tfno. +34 914 202 754 ne...@medialab-prado.es www.medialab-prado.es http://www.facebook.com/MedialabPradoMadrid Twitter: @medialabprado Antes de imprimir este documento asegúrate de que es realmente necesario. ¡Gracias por tu colaboración! ___ Pd-announce mailing list pd-annou...@iem.at http://lists.puredata.info/listinfo/pd-announce ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] dsp processor for PD?
problem would be PD addressing DSP processors and feed them with tasks. But I am still also fascinated by DSP chips but it would be a return to roots, Millers Max/FTS. Patching on CPU, running on DSP card. ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] [Pd] Compile external with C++ compiler?
Hi Joe, It's an app for remixing music. Can't say more than that, but if everything gets finished on time it will be out next month. Wasn't my idea to make this, but I've done things like it before. The record label is quite well known... Ed Gemnotes-0.1alpha: Live music notation for Pure Data http://sharktracks.co.uk/ From: Joe White white.j...@gmail.com To: Ed Kelly morph_2...@yahoo.co.uk Cc: pd-list pd-list@iem.at Sent: Friday, 27 April 2012, 9:45 Subject: Re: [PD] [Pd] Compile external with C++ compiler? Hi Ed, Thanks for the advice, although I don't think this piece of work warrants changing our audio engine :) ofxPd looks cool though, what's sort of app are you making? (If you can say). Cheers, Joe On 27 April 2012 02:05, Ed Kelly morph_2...@yahoo.co.uk wrote: Hi Joe, Have you thought of using ofxPd? I'm involved in the creation of an app for the iPhone right now, and we're using ofxPd from Dan Wilcox: https://github.com/danomatika/ofxPd Since Openframeworks is a bunch of C++ wrappers for various libraries, ofxPd adds Pd to the libraries that you can work with in C++. Then you can call the setup function within the xcode build, and your object will work in libpd (i.e. ofxPd) in the app environment. Bear in mind that Apple do not like GnuGPL licensed stuff, so I've created BSD licensed versions of some of my own Pd externals for this project. And the app works. We're in the final stages now, so I'll post to the list when it's complete! Best, Ed Gemnotes-0.1alpha: Live music notation for Pure Data http://sharktracks.co.uk/ From: Joe White white.j...@gmail.com To: pd-list pd-list@iem.at Sent: Thursday, 26 April 2012, 16:51 Subject: [PD] [Pd] Compile external with C++ compiler? Hi all, Thought I might as well ask this here because you guys know everything :) I'm writing an external to be built into an iOS app that's running Pd. The catch is I need to interface with a C++ library within the external. The external builds and runs fine if I'm using the C compiler (in Xcode) but I can't access the C++ library functions. If I switch it to compile in C++ (by changing the objective-c file from .m to .mm) then I can use the C++ library functions but it complains that it can't find 'class_addmethod' 'No matching function for call to 'class_addmethod' I've tried declaring the setup function as C code like Katja explains on her site: extern C void external_tilde_setup(void) { } But that still didn't seem to work. I was also going through the list and found this thread but I'm not sure if it's the right approach. Plus I'm more of an audio guy than programmer :) Any ideas would be much appreciated. Thanks, Joe -- Follow me on Twitter @diplojocus ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list -- Follow me on Twitter @diplojocus___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] dsp processor for PD?
keeping an eye open for this http://sonic-core.net/joomla.soniccore/index.php I still have this 'Creamware Pulsar II' card from the late '90's, but I haven't used it much since I migrated to GNU/Linux. I always imagined it would be very cool to run my patches on it natively though, and now I hear rumours about Open Scope: http://sonic-core.net/joomla.soniccore/index.php?option=com_contentview=articleid=335lang=us http://www.the-new-world-of-music.net/forum/viewtopic.php?f=8t=10sid=0d33ee46cf024f3ee02912249688295a might become interesting? gr, Tim Op 27 april 2012 19:53 schreef Malte Steiner stei...@block4.com het volgende: problem would be PD addressing DSP processors and feed them with tasks. But I am still also fascinated by DSP chips but it would be a return to roots, Millers Max/FTS. Patching on CPU, running on DSP card. __**_ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/** listinfo/pd-list http://lists.puredata.info/listinfo/pd-list ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] [Pd] Compile external with C++ compiler?
It's really easy actually. You make the object in C, compile it and then build your patch in pd vanilla + the object. Then in the xcode object you just call the setup function for the object, the source code for which gets included in the xcode project. That's all I know. I'm not responsible for the Xcode/C++ of this app, only the Pd patch and Pd objects, so there may be more to it. It's quite simple though, my developer colleague tells me. Don't forget, C is a subset of C++! Ed Gemnotes-0.1alpha: Live music notation for Pure Data http://sharktracks.co.uk/ From: Joe White white.j...@gmail.com To: Charles Henry czhe...@gmail.com Cc: pd-list pd-list@iem.at Sent: Friday, 27 April 2012, 9:56 Subject: Re: [PD] [Pd] Compile external with C++ compiler? Hi Charles, Thanks for replying! I don't believe it's a problem calling C functions, you just have to declare them with 'extern C' to avoid name mangling (I think??). The issue is, when I want to use C++ I have to switch the implementation file to .mm, which is a Objective-C++ file. As soon as I do this Xcode starts complaining about 'class_addmethod()' in my setup function. The weird thing is that it only applies to 'class_addmethod()'. For example, 'class_addbang()', 'class_new()' all work fine. It seems like it's an issue only with this function, and it looks like class_addMethod is already a function used by Objective-C I think maybe there's some namespace issues, but I have no idea how to resolve this. wrote wrapper functions to export a C-callable public interface to C++ functions. Yep, this is what I'm doing now. A bit annoying because I was so close :) Thanks for your help! Cheers, Joe On 27 April 2012 04:10, Charles Henry czhe...@gmail.com wrote: Hi guys The part that I don't get is how to call C functions from C++? I don't think I've even tried that before. Have you? Joe: I've built externals that just call C++ functions that I declared with extern C or wrote wrapper functions to export a C-callable public interface to C++ functions. Best suggestion I've got is to identify which functions you've got are going to be public and which ones are private and plan out how you're going to declare them. Chuck On 4/26/12, Ed Kelly morph_2...@yahoo.co.uk wrote: Hi Joe, Have you thought of using ofxPd? I'm involved in the creation of an app for the iPhone right now, and we're using ofxPd from Dan Wilcox: https://github.com/danomatika/ofxPd Since Openframeworks is a bunch of C++ wrappers for various libraries, ofxPd adds Pd to the libraries that you can work with in C++. Then you can call the setup function within the xcode build, and your object will work in libpd (i.e. ofxPd) in the app environment. Bear in mind that Apple do not like GnuGPL licensed stuff, so I've created BSD licensed versions of some of my own Pd externals for this project. And the app works. We're in the final stages now, so I'll post to the list when it's complete! Best, Ed Gemnotes-0.1alpha: Live music notation for Pure Data http://sharktracks.co.uk/ From: Joe White white.j...@gmail.com To: pd-list pd-list@iem.at Sent: Thursday, 26 April 2012, 16:51 Subject: [PD] [Pd] Compile external with C++ compiler? Hi all, Thought I might as well ask this here because you guys know everything :) I'm writing an external to be built into an iOS app that's running Pd. The catch is I need to interface with a C++ library within the external. The external builds and runs fine if I'm using the C compiler (in Xcode) but I can't access the C++ library functions. If I switch it to compile in C++ (by changing the objective-c file from .m to .mm) then I can use the C++ library functions but it complains that it can't find 'class_addmethod' 'No matching function for call to 'class_addmethod' I've tried declaring the setup function as C code like Katja explains on her site: extern C void external_tilde_setup(void) { } But that still didn't seem to work. I was also going through the list and found this thread but I'm not sure if it's the right approach. Plus I'm more of an audio guy than programmer :) Any ideas would be much appreciated. Thanks, Joe -- Follow me on Twitter @diplojocus ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list -- Follow me on Twitter @diplojocus ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list___ Pd-list@iem.at mailing list UNSUBSCRIBE and
[PD] midiout send sysex as 1 array in stead of separate messages
greetings, I'm having some problems with sending sysex to a specific device, [midiout] has worked fine for me in the past. to solve a problem i'd like to know if it is possible to send a raw midi message containing multiple bytes, as i see when sending rawmidi with midiout it creates a separate midi message for all the bytes in the list i send to midiout while ctlout and noteout send a 3byte message would this be possible ? regards, Rob ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] midiout send sysex as 1 array in stead of separate messages
i have solved this on the receiving end! peace, Rob greetings, I'm having some problems with sending sysex to a specific device, [midiout] has worked fine for me in the past. to solve a problem i'd like to know if it is possible to send a raw midi message containing multiple bytes, as i see when sending rawmidi with midiout it creates a separate midi message for all the bytes in the list i send to midiout while ctlout and noteout send a 3byte message would this be possible ? regards, Rob ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list