hi all, it seemed to me a simple thing to play a midi file. But I didnt get it to work. I read something about the xeq lib, but I didnt find any mac os x binary and compiling aborted with
make: *** [../shared/hyphen.o] Error 1 rm xeq_follow.o xeq_polyparse.o ../shared/bifi.o xeq_parse.o ../shared/mifi.o ../shared/mfbb.o ../shared/sq.o xeq_time.o xeq_query.o xeq_data.o ../shared/dict.o xeq_host.o xeq_record.o xeq_polytempo.o
So the patch included in the doc in the playnow folder wont work. any idea how to get midi playback working? thx in advance
Christian Klotz Kunsthochschule Kassel / School of Arts Kassel ::digitalpool
hi Christian,
for simple playback try seq from cyclone. It is neither finished, nor tested, but unlike seq for max, loads format 1 files too.
I never compiled xeq for osx, but it should not be very hard, apart from bringing xeq-0.1 sources up to date with Pd-0.37. Actually, I think, the only tweak needed is adding the line
#include "m_pd.h"
before
#include "m_imp.h"
in shared/hyphen.c
Krzysztof
Christian Klotz wrote: ...
it seemed to me a simple thing to play a midi file. But I didnt get it to work. I read something about the xeq lib, but I didnt find any mac os x binary and compiling aborted with
make: *** [../shared/hyphen.o] Error 1
hi again,
Actually, I think, the only tweak needed is adding the line
#include "m_pd.h"
before
#include "m_imp.h"
in shared/hyphen.c
so I did but compilation still aborted. The error message is
gcc: unrecognized option `-shared' ld: unknown flag: -export_dynamic make: *** [../xeq.pd_darwin] Error 1 rm xeq_follow.o xeq_polyparse.o ../shared/hyphen.o ../shared/bifi.o ../shared/text.o xeq_parse.o ../shared/mifi.o ../shared/mfbb.o ../shared/sq.o xeq_time.o xeq_query.o xeq_data.o ../shared/dict.o xeq_host.o xeq_record.o xeq_polytempo.o
Christian Klotz Kunsthochschule Kassel / School of Arts Kassel ::digitalpool
hi Christian,
Christian Klotz wrote: ...
gcc: unrecognized option `-shared' ld: unknown flag: -export_dynamic make: *** [../xeq.pd_darwin] Error 1
which means, the compilation completed successfully. It shows too, that you have already modified the X_SUFFIX macro in the file Makefile.common. Another system-specific macro there, is LFLAGS, which should be defined for osx as
LFLAGS = -bundle -bundle_loader $(PD_DIR)/../bin/pd -flat_namespace
Btw -- how about seq?
Krzysztof
hi Krzysztof,
On Aug 27, 2004, at 12:47 PM, Krzysztof Czaja wrote:
Another system-specific macro there, is LFLAGS, which should be defined for osx as
LFLAGS = -bundle -bundle_loader $(PD_DIR)/../bin/pd -flat_namespace
jep, this works. thanks a lot
Btw -- how about seq?
now i have to try the advantages/disadvantages. but I thought it would be good, to avoid the use of translated max ocjects and use pd built stuff instead.
Christian Klotz Kunsthochschule Kassel / School of Arts Kassel ::digitalpool
hi again, for me there still remains one question. after getting xeq to work. how can I do a playback of a midi file which uses instruments? thanks
Christian Klotz Kunsthochschule Kassel / School of Arts Kassel ::digitalpool
Hallo, Christian Klotz hat gesagt: // Christian Klotz wrote:
for me there still remains one question. after getting xeq to work. how can I do a playback of a midi file which uses instruments?
xeq/seq just convert a midi file to numbers (as you would get from notein and relatives). To play them you can use every instrument inside of Pd, that you have or have developed. I may recommend the fluid~ externals by Larry Troxler and yours truly, which is a soundfont player using the fluidsynth library. It's a bit tricky to compile, though. You first need to compile "flext", then "libfluidsynth" (if you're on Linux, with "--disable-ladspa") and then the fluid~ external.
flext and fluid~ are available in the CVS, libfluidsynth on www.fluidsynth.org rsp. http://savannah.nongnu.org/files/?group=fluid
Frank Barknecht _ ______footils.org__
hallo
You first need to compile "flext", then "libfluidsynth" (if you're on Linux, with "--disable-ladspa") and then the fluid~ external.
flext and fluid~ are available in the CVS, libfluidsynth on www.fluidsynth.org rsp. http://savannah.nongnu.org/files/?group=fluid
so I compiled flext and libfluidsynth. But the compilation of fluid~ makes some trouble. After editing the config-pd-darwin.txt and setting CXX=g++ in the makefile.pd-darwin I got the error message
make: *** No rule to make target pd-darwin/fluid~.pd_darwin', needed by
all'. Stop.
any ideas? thanks in advance
Christian Klotz Kunsthochschule Kassel / School of Arts Kassel ::digitalpool
Hallo, Christian Klotz hat gesagt: // Christian Klotz wrote:
so I compiled flext and libfluidsynth. But the compilation of fluid~ makes some trouble. After editing the config-pd-darwin.txt and setting CXX=g++ in the makefile.pd-darwin I got the error message
make: *** No rule to make target
pd-darwin/fluid~.pd_darwin', needed by
all'. Stop.
Could it be, that a directory "pd-darwin" like the "pd-linux" one is missing? I don't have OS-X and never compiled it there ...
Frank Barknecht _ ______footils.org__
On Aug 27, 2004, at 10:08 PM, Frank Barknecht wrote:
so I compiled flext and libfluidsynth. But the compilation of fluid~ makes some trouble. After editing the config-pd-darwin.txt and setting CXX=g++ in the makefile.pd-darwin I got the error message
make: *** No rule to make target
pd-darwin/fluid~.pd_darwin', needed by
all'. Stop.Could it be, that a directory "pd-darwin" like the "pd-linux" one is missing? I don't have OS-X and never compiled it there ...
I already created one, so this can't be the reason for the error :( cheers
Christian Klotz Kunsthochschule Kassel / School of Arts Kassel ::digitalpool
hi all,
so I compiled flext and libfluidsynth. But the compilation of fluid~ makes some trouble. After editing the config-pd-darwin.txt and setting CXX=g++ in the makefile.pd-darwin I got the error message
make: *** No rule to make target
pd-darwin/fluid~.pd_darwin', needed by
all'. Stop.
has anybody ever tried to get the fluid~ external working on OS X? Would be great! cheers
Christian Klotz Kunsthochschule Kassel / School of Arts Kassel ::digitalpool
Hallo, Christian Klotz hat gesagt: // Christian Klotz wrote:
make: *** No rule to make target
pd-darwin/fluid~.pd_darwin', needed by
all'. Stop.has anybody ever tried to get the fluid~ external working on OS X? Would be great!
Well, there is an error in the makefile for Darwin somewhere. The Linux makefile works, though. In the end, this is what is called on Linux:
g++ -c -O6 -mcpu=pentiumpro -DPD -I/usr/include/src -I/usr/lib/pd/flext fluid/main.cpp -o pd-linux/fluid.o g++ -shared pd-linux/fluid.o -lm -L/usr/local/lib -lfluidsynth -lreadline /usr/lib/pd/flext/flext.a -o pd-linux/fluid.pd_linux mv pd-linux/fluid.pd_linux pd-linux/fluid~.pd_linux rm pd-linux/fluid.pd_linux pd-linux/fluid.o
The paths probably are something else on OS-X, also the linking step ("g++ -shared ... ") works different on OS-X. It seems to need: "-bundle -bundle_loader /usr/local/pd/bin/pd -flat_namespace"
Maybe you can input the two modified commands by hand, without using the makefile at all for now.
Frank Barknecht _ ______footils.org__
hi,
Well, there is an error in the makefile for Darwin somewhere. The Linux makefile works, though. In the end, this is what is called on Linux:
g++ -c -O6 -mcpu=pentiumpro -DPD -I/usr/include/src -I/usr/lib/pd/flext fluid/main.cpp -o pd-linux/fluid.o
this works
g++ -shared pd-linux/fluid.o -lm -L/usr/local/lib -lfluidsynth -lreadline /usr/lib/pd/flext/flext.a -o pd-linux/fluid.pd_linux
<snip> > The paths probably are something else on OS-X, also the linking step > ("g++ -shared ... ") works different on OS-X. It seems to need: > "-bundle -bundle_loader /usr/local/pd/bin/pd -flat_namespace" > I didnt found a flext.a in the compiled flext directory, so I thought I have to use libflext.a but this didnt work, I am not that familar with extended compiling stuff. Do you know or anybody else how to get the thing to work? cheers --- Christian Klotz Kunsthochschule Kassel / School of Arts Kassel ::digitalpool