Re: [Faudiostream-users] Reading a ~.pd_linux with Pure Data

2014-05-13 Thread Thomas CIPIERRE
Hi Hugo,

Sorry to hear you've had problem with my instructions. I would say it could
be the cause of the incorrect .pd_linux files, since in my case, after
installing llvm and clang flawlessly via ubuntu repository (apt-get), I
could not make the faust2puredata output correct files. The way I've found
was to uninstall llvm and clang and build them like I've shown you.

Concerning your error, I've found several topics you should look at.
Honestly I've not dived deep into the subject but I think this one could
work for 
exemplehttp://sohanikh.blogspot.fr/2013/02/how-to-build-llvm-from-source-on-ubuntu.html
.

Hope it will work this time.
Good luck!
Thomas


2014-05-12 23:53 GMT+02:00 Hugo Caracalla es.illus...@gmail.com:


 Thanks to both of you.

 Julius, I ran the .pd you sent me : it works perfectly fine on Pure Data,
 no problem outputting the sound. Henceforth my problem must be coming from
 Faust and nothing else, that's a big step.

 I will try to reinstall Faust cleanly once I get some sleep, see if this
 helps.

 Thomas, I did what you advised me to : everything runs fine except for one
 error (and I fear it is no small one).

 When I try to do :

  ./configure --enable-shared --enable-optimized --enable-targets=host-only

 The process get stuck at :

  configure: error: Selected compiler could not find or parse C++ standard
 library headers.  Rerun with CC=c-compiler CXX=c++-compiler ./configure ...

 Which from what I understand is a compiler path problem. I assume that
 llvm and clang didn't get installed properly : could this maybe be the
 cause of the incorrect .pd_linux files ?


 On 12 May 2014 19:45, Julius Smith j...@ccrma.stanford.edu wrote:

  I should also mention that I am running pure as installed by MacPorts:

  port installed pure
 The following ports are currently installed:
   pure @0.60_0 (active)

  faust2pd -V
 faust2pd version 2.5, Copyright (c) 2009 by Albert Graef

 and Faust master latest git.

 - Julius


 At 11:36 AM 5/12/2014, Julius Smith wrote:

 Hi Hugo,

 faust2puredata runs faust2pd, so pure is still needed.

 I just tried faust2puredata noise.dsp in faust/examples, and it
 worked fine in pd-extended 0.42.5 on an up-to-date MacBook Pro (test patch
 attached).

 - Julius

 At 10:33 AM 5/12/2014, Hugo Caracalla wrote:

 Hi Julius,

 Thank you for answering. I actually didn't know that faust2puredata
 existed : since it outputs both a .pd and a ~.pd_linux file, does this mean
 that there was no need for the whole installation of pure and faust2pd ?

 I ran it on noise.dsp, but the two files I obtain have exactly the same
 problem as before : .pd_linux is unreadable and .pd is messily read, with
 the same messages. Could this come from me mis-installing Faust ?

 -Hugo


 On 12 May 2014 18:24, Julius Smith j...@ccrma.stanford.edu  wrote:
 Hi Hugo,

 Did you try the faust2puredata script?Â

 (I personally wish faust2puredata were renamed to faust2pd with the
 existing faust2pd renamed to faust2pdpure or something like that.)

 - Julius


 At 10:10 AM 5/12/2014, Hugo Caracalla wrote:

 Hello,


 Firstly, I have to say that I am a mere beginner both in audio signal
 processing and in Faust : hence, my apologies if I missed an obvious point
 along the way.

 I am trying to run a function created in Faust (here I will use
 noise.dsp as given in the examples) with Pure Data (extended). To do so I
 created a .pd_linux file, which I understand is a library for Pure Data, by
 typing this :

  faust -a puredata.cpp -o noise-pd.cpp noise.dsp
  g++ -DPD -Wall -g -shared -Dmydsp=noise \
 -I/usr/include/pdextended \
 -o noise~.pd_linux noise-pd.cpp

 The problem is, my .pd_linux file is not recognized by Pd-extended :

 Ignoring '/home/hugo/Desktop/noise~.pd_linux': doesn't look like a
 Pd-file

 I tried to get around the problem by installing faust2pd, which I
 understand is able to create objects in Pure Data, which are simpler to
 use. So I installed Pure-lang and its dependencies needed by faust2pd
 (apart from the midi one, with which I am still happily wrestling).

 Faust2pd seems to work, meaning if I run :

 faust2pd noise.xml.dsp

 with the xml I extracted from noise.dsp, I obtain noise.pd, that puredata
 can run.

 But then Pure Data says :

 faust-control $0
 ... couldn't create
 noise.pd 5 1 7 0 (noise~-outlet) connection failed
 noise~: no method for '/noise/Volume'
 noise~: no method for 'active'

 Which seems to handicap quite a bit noise.pd since I can't get a sound of
 it.

 My basic guess would be that what makes noise~.pd_linux unreadable also
 makes noise.pd problematic, but I fear I can't go any further.

 I have been trying for a week to get the whole path from Faust to Pure
 working, and I am quite disheartened to see all my efforts go into this
 instead of going into the making of my actual Faust function. So if any
 amongst you thinks he has a lead on this matter, I would be truly grateful
 to you.

 Sincerely,

 Hugo


 

[Faudiostream-users] faust2pd make error

2014-05-13 Thread Hugo Caracalla
Hello,

Trying to keep it all as clean as possible, I did the steps Thomas gave and
managed to get quite further :

The installation of llvm, Clang, their dependencies, Pure, pd-Pure, and
purexml went smoothly. Alas, the last one did not : when trying to make
faust2pd, I obtain the following results :

 sed -e 's?@version@?2.7?'  faust2pd.pure  xxfaust2pd.pure
pure -c xxfaust2pd.pure -o faust2pd
faust2pd.s: Assembler messages:
faust2pd.s:53: Error: invalid character '' in operand 1
faust2pd.s:111: Error: invalid character '' in operand 1
faust2pd.s:169: Error: invalid character '' in operand 1
faust2pd.s:275: Error: invalid character '' in operand 1
faust2pd.s:386: Error: invalid character '' in operand 1
faust2pd.s:596: Error: Missing symbol name in directive

And so on, and so on...

I could give to anyone interested the whole log of it but I think those
lines should be enough to give the idea.

It seems that pure is misreading what I feed him with, but I didn't manage
to get any further than this. If anyone has a hint of what is going on, I
would be truly grateful.

-Hugo
--
Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free.
http://p.sf.net/sfu/SauceLabs___
Faudiostream-users mailing list
Faudiostream-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/faudiostream-users


Re: [Faudiostream-users] faust2pd make error

2014-05-13 Thread Albert Graef
Hi Hugo,

The issue you describe is with the llc from LLVM 3.4, cf.
http://lists.cs.uiuc.edu/pipermail/llvmdev/2014-February/069979.html. It's
a Linux-specific bug (well, it might also affect Windows, I haven't checked
that yet, but llc 3.4 works fine on the Mac at least). The bug breaks
Pure's batch compiler which is used to compile the faust2pd.pure script to
a native executable. I've been meaning to file a bug report at the LLVM
Bugzilla so that this gets fixed in LLVM 3.5 at least, but totally forgot
about it. Thanks for reminding me. :) I'll check whether that bug is still
present in the latest LLVM revision from svn and file a bug report asap if
it is.

If you want to stick to LLVM 3.4, the easiest way to work around the bug is
to just use the llc and opt tools from LLVM 3.3 instead, see this thread on
the Pure mailing list:
https://groups.google.com/forum/#!topic/pure-lang/ZiMK5DY9Tq0. They will
work fine even if Pure itself is linked against the LLVM 3.4 libraries.

If you're running the latest Pure version, you can compile LLVM 3.3 with
--disable-shared and drop the statically linked llc and opt executables
into the Pure library directory (/usr/lib/pure or /usr/local/lib/pure,
depending on where you installed Pure). Or you can try to use the
ready-made Linux ELF 64 and 32 bit binaries available here:
https://bitbucket.org/purelang/pure-lang/downloads/llvm-3.3-tools.tar.bz2.
They will hopefully work on all Linux distributions with recent C/C++
libraries. The package also contains a README with instructions on how to
compile your own llc and opt if the provided binaries don't work on your
system.

Which Linux distribution do you use? For Arch Linux and derivatives we have
a package which implements this workaround, so you could install Pure
straight from the AUR and you'll be set. If you're on some other
distribution, drop me an email so that I can walk you through the needed
steps, if necessary.

Sorry for the hassle. It's really not Pure's fault. The LLVM devs broke
their tools on Linux and didn't even notice it. :( Alas, this kind of
breakage happens much too often. E.g., on the Mac the llc from LLVM 3.3 was
broken. But there's really no alternative to LLVM these days, if you need a
comprehensive cross-platform compiler backend featuring JIT compilation, so
we compiler writers love LLVM despite its bugs. :)

Albert



On Wed, May 14, 2014 at 3:46 AM, Hugo Caracalla es.illus...@gmail.comwrote:


 Hello,

 Trying to keep it all as clean as possible, I did the steps Thomas gave
 and managed to get quite further :

 The installation of llvm, Clang, their dependencies, Pure, pd-Pure, and
 purexml went smoothly. Alas, the last one did not : when trying to make
 faust2pd, I obtain the following results :

  sed -e 's?@version@?2.7?'  faust2pd.pure  xxfaust2pd.pure
 pure -c xxfaust2pd.pure -o faust2pd
 faust2pd.s: Assembler messages:
 faust2pd.s:53: Error: invalid character '' in operand 1
 faust2pd.s:111: Error: invalid character '' in operand 1
 faust2pd.s:169: Error: invalid character '' in operand 1
 faust2pd.s:275: Error: invalid character '' in operand 1
 faust2pd.s:386: Error: invalid character '' in operand 1
 faust2pd.s:596: Error: Missing symbol name in directive

 And so on, and so on...

 I could give to anyone interested the whole log of it but I think those
 lines should be enough to give the idea.

 It seems that pure is misreading what I feed him with, but I didn't manage
 to get any further than this. If anyone has a hint of what is going on, I
 would be truly grateful.

 -Hugo


 --
 Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
 Instantly run your Selenium tests across 300+ browser/OS combos.
 Get unparalleled scalability from the best Selenium testing platform
 available
 Simple to use. Nothing to install. Get started now for free.
 http://p.sf.net/sfu/SauceLabs
 ___
 Faudiostream-users mailing list
 Faudiostream-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/faudiostream-users




-- 
Dr. Albert Graf
Dept. of Music-Informatics, University of Mainz, Germany
Email:  aggr...@gmail.com
WWW:https://plus.google.com/+AlbertGraef
--
Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free.
http://p.sf.net/sfu/SauceLabs___
Faudiostream-users mailing list
Faudiostream-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/faudiostream-users