One of my students was wondering how dac~ works under the hood, and since I couldn't figure it out, thought I'd ask y'all.
Is there a difference between these three patches (the patches are below but I'll describe them for your ease):
Two osc~, each connected to both channels of the same dac~
Two osc~, each connected to both channels of two separate dac~
Two osc~, each connected to the same +~, which is connected to both
channels of a single dac~
Thanks,
-Ian [envying all y'all in Graz /and/ Riga]
===============================
PATCH 1:
#N canvas 0 0 450 300 10; #X obj 82 89 osc~; #X obj 232 87 osc~; #X obj 160 183 dac~; #X connect 0 0 2 0; #X connect 0 0 2 1; #X connect 1 0 2 0; #X connect 1 0 2 1;
===============================
PATCH 2:
#N canvas 0 0 450 300 10; #X obj 62 60 osc~; #X obj 232 60 osc~; #X obj 74 152 dac~; #X obj 234 160 dac~; #X connect 0 0 2 0; #X connect 0 0 2 1; #X connect 1 0 3 0; #X connect 1 0 3 1;
===============================
PATCH 3:
#N canvas 0 0 450 300 10; #X obj 116 70 osc~; #X obj 252 70 osc~; #X obj 192 220 dac~; #X obj 186 152 +~; #X connect 0 0 3 0; #X connect 1 0 3 1; #X connect 3 0 2 0; #X connect 3 0 2 1;
Ian,
AFAIK the [dac~] object auto-sums all its inputs, as well as [outlet~] and some other sound objects. If you have a stereo sound card [or only two channels out of PD to someplace else, i.e. via JACK] then all [dac~] objects should sum to the same two channels. So the answer to your question is, no, there should be no difference between the patches you describe.
that help?
best, derek [who is seeing the bridge between Graz and Riga right now: http://gollum.artefacte.org/ !!!]
Ian Smith-Heisters wrote:
Is there a difference between these three patches
Two osc~, each connected to both channels of the same dac~
Two osc~, each connected to both channels of two separate dac~
Two osc~, each connected to the same +~, which is connected to both
channels of a single dac~
Thanks,
-Ian [envying all y'all in Graz /and/ Riga]
On Thursday 30 September 2004 17:30, Ian Smith-Heisters wrote:
One of my students was wondering how dac~ works under the hood, and since I couldn't figure it out, thought I'd ask y'all.
Is there a difference between these three patches (the patches are below but I'll describe them for your ease):
- Two osc~, each connected to both channels of the same dac~
for each channel the dac~ sums its inputs
- Two osc~, each connected to both channels of two separate dac~
each dac~ mixes its output into the outputbuffer I think, but I would have to check the source to see how it is done.
- Two osc~, each connected to the same +~, which is connected to both
channels of a single dac~
here the mixing/adding is done by the +~ object.
So the differences under the hood are the place the adding is done. With simple patches like this there is little difference. With complex patches there might be block-length delays between different dac~ objects. But I am not sure when that happens, its in the docs somewhere. But that only happens when the different signal objects are in subpatches/abstractions anway. If there is a performance penalty? I think that connecting everything to a single dac~ is the most efficient, but that the performance hit from doing it differently is very minor.
Gerard
hi
stupid question i guess but I am trying to compile the externals under osx. I get the following error.
Ordenador-de-ibook:~/desktop/ext/build/darwin ibook$ make
cc -DPD -Os -DUNIX -DMACOSX -Dunix -Wall -W -Wno-unused
-Wno-parentheses -Wno-switch -Wno-shadow -I. -I.. -I../include -o
"ann.o" -c "../src/ann.c"
In file included from ../src/ann.c:2:
../../ann/src/ann_som.c: In function som_read': ../../ann/src/ann_som.c:433: warning: implicit declaration of function
close'
cc -bundle -bundle_loader /usr/local/pd/bin/pd -o "ann.pd_darwin"
"ann.o" -lc -lm
# test -f ann.libs && cat ann.libs
ld: can't open: /usr/local/pd/bin/pd (No such file or directory, errno = 2)
make: *** [ann.pd_darwin] Error 1
I have been editing the makefile at the build/darwin/makefile to set the proper path for PD but i dont understand very well this as i am new to osx and linux. So i am not sure what is the path i am supposed to set or if i am doing something else wrong.
thanks!!
What do you get if you:
ls -l /usr/local/pd/bin/pd
My guess is that the pd binary is not actually at /usr/local/pd/bin/pd
.hc
On Oct 1, 2004, at 9:26 AM, altern wrote:
hi
stupid question i guess but I am trying to compile the externals under osx. I get the following
error.Ordenador-de-ibook:~/desktop/ext/build/darwin ibook$ make cc -DPD -Os -DUNIX -DMACOSX -Dunix -Wall -W -Wno-unused
-Wno-parentheses -Wno-switch -Wno-shadow -I. -I.. -I../include -o
"ann.o" -c "../src/ann.c" In file included from ../src/ann.c:2: ../../ann/src/ann_som.c: In functionsom_read': ../../ann/src/ann_som.c:433: warning: implicit declaration of function
close' cc -bundle -bundle_loader /usr/local/pd/bin/pd -o "ann.pd_darwin"
"ann.o" -lc -lm
#test -f ann.libs && cat ann.libs
ld: can't open: /usr/local/pd/bin/pd (No such file or directory, errno
= 2) make: *** [ann.pd_darwin] Error 1I have been editing the makefile at the build/darwin/makefile to set
the proper path for PD but i dont understand very well this as i am
new to osx and linux. So i am not sure what is the path i am supposed
to set or if i am doing something else wrong.thanks!!
--
enrike
PD-list@iem.at mailing list UNSUBSCRIBE and account-management ->
http://iem.at/cgi-bin/mailman/listinfo/pd-list
There is no way to peace, peace is the way.
-A.J. Muste
hi again
still havent managed to compile the externals. Now i installed the latest version of PD for mac (Pd-0.38-0test4HCS1.app). I have it on /Applications/Audio/Pd-0.38-0test4HCS1.app
then i edited the makefile to set the PDEXECUTABLE = /Applications/audio/Pd-0.38-0test4HCS1.app/Contents/Resources/bin/pd
but i still get errors. I am not sure what i should do. I changed the
prefix=$(DESTDIR)/usr/local/pd to prefix=$(DESTDIR)/Applications/audio/Pd-0.38-0test4HCS1.app/Contents/Resources
but still get errors.
has anyone does this before? (i guess and hope so). what should i change?
thanks
Hans-Christoph Steiner wrote:
What do you get if you:
ls -l /usr/local/pd/bin/pd
My guess is that the pd binary is not actually at /usr/local/pd/bin/pd
.hc
On Oct 1, 2004, at 9:26 AM, altern wrote:
hi
stupid question i guess but I am trying to compile the externals under osx. I get the following
error.Ordenador-de-ibook:~/desktop/ext/build/darwin ibook$ make cc -DPD -Os -DUNIX -DMACOSX -Dunix -Wall -W -Wno-unused
-Wno-parentheses -Wno-switch -Wno-shadow -I. -I.. -I../include -o
"ann.o" -c "../src/ann.c" In file included from ../src/ann.c:2: ../../ann/src/ann_som.c: In functionsom_read': ../../ann/src/ann_som.c:433: warning: implicit declaration of function
close' cc -bundle -bundle_loader /usr/local/pd/bin/pd -o "ann.pd_darwin"
"ann.o" -lc -lm
#test -f ann.libs && cat ann.libs
ld: can't open: /usr/local/pd/bin/pd (No such file or directory, errno = 2) make: *** [ann.pd_darwin] Error 1I have been editing the makefile at the build/darwin/makefile to set
the proper path for PD but i dont understand very well this as i am
new to osx and linux. So i am not sure what is the path i am supposed
to set or if i am doing something else wrong.thanks!!
-- enrike
PD-list@iem.at mailing list UNSUBSCRIBE and account-management ->
http://iem.at/cgi-bin/mailman/listinfo/pd-list
There is no way to peace, peace is the way. -A.J. Muste
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://iem.at/cgi-bin/mailman/listinfo/pd-list
hi,
actually there are two error messages in what you posted. one of them at compiling:
cc -DPD -Os -DUNIX -DMACOSX -Dunix -Wall -W -Wno-unused
-Wno-parentheses -Wno-switch -Wno-shadow -I. -I.. -I../include -o
"ann.o" -c "../src/ann.c" In file included from ../src/ann.c:2: ../../ann/src/ann_som.c: In functionsom_read': ../../ann/src/ann_som.c:433: warning: implicit declaration of function
close'
and one at binding:
cc -bundle -bundle_loader /usr/local/pd/bin/pd -o "ann.pd_darwin"
"ann.o" -lc -lm
#test -f ann.libs && cat ann.libs
ld: can't open: /usr/local/pd/bin/pd (No such file or directory, errno = 2) make: *** [ann.pd_darwin] Error 1
i wonder if this second one still comes after you installed HCSs pd and set the appropriate path in the makefile.
concerning the first one: close is in unistd.h maybe you just have to add the include. i had to add some very basic includes in some cases for the mac. so have a look at ann_som.c and if there is no line telling
#include <unidstd.h>
then you sould insert it.
lg martin
attacksyour.net/pi
hello, I have a powermac G4 OSX and PD 0.38
my problem is that PD don't work with my external interface firewire 410 M-audio. my mac work with core-audio driver for my "firewire 410" sound card.
help me please!!!
thanks a lot.
Do You Yahoo!? Información de Estados Unidos y América Latina, en Yahoo! Noticias. VisÃtanos en http://noticias.espanol.yahoo.com
hello, I have a powermac G4 OSX and PD 0.38
my problem is that PD don't work with my external interface firewire 410 M-audio. my mac work with core-audio driver for my "firewire 410" sound card.
help me please!!!
thanks a lot.
Do You Yahoo!? Información de Estados Unidos y América Latina, en Yahoo! Noticias. VisÃtanos en http://noticias.espanol.yahoo.com
cc -bundle -bundle_loader /usr/local/pd/bin/pd -o "ann.pd_darwin"
"ann.o" -lc -lm
#test -f ann.libs && cat ann.libs
ld: can't open: /usr/local/pd/bin/pd (No such file or directory, errno = 2) make: *** [ann.pd_darwin] Error 1i wonder if this second one still comes after you installed HCSs pd and set the appropriate path in the makefile.
well i am not sure which is the appropiate path. I set prefix=$(DESTDIR)/Applications/audio/Pd-0.38-0test4HCS1.app/Contents/Resources
and PDEXECUTABLE = /Applications/audio/Pd-0.38-0test4HCS1.app/Contents/Resources/bin/pd
but still got several errors. There it goes the output, maybe someone can give a pointer?
Ordenador-de-ibook:~/desktop/ext/build/darwin ibook$ make
cc -DPD -Os -DUNIX -DMACOSX -Dunix -Wall -W -Wno-unused
-Wno-parentheses -Wno-switch -Wno-shadow -I. -I.. -I../include -o
"button.o" -c "../src/button.c"
In file included from ../../ggee/gui/button.c:2,
from ../src/button.c:1:
../include/g_canvas.h:252: warning: redefinition of t_savefn' /usr/local/include/m_pd.h:423: warning:
t_savefn' previously declared here
../include/g_canvas.h:254: warning: redefinition of t_propertiesfn' /usr/local/include/m_pd.h:427: warning:
t_propertiesfn' previously
declared here
In file included from ../src/button.c:1:
../../ggee/gui/button.c:333:14: missing terminating " character
In file included from ../src/button.c:1:
../../ggee/gui/button.c: In function `button_new':
../../ggee/gui/button.c:334: error: parse error before "pd"
../../ggee/gui/button.c:334: error: stray '' in program
../../ggee/gui/button.c:334: error: stray '' in program
../../ggee/gui/button.c:334: error: stray '' in program
../../ggee/gui/button.c:335: error: stray '' in program
../../ggee/gui/button.c:335:11: missing terminating " character
make: *** [button.pd_darwin] Error 1
Ordenador-de-ibook:~/desktop/ext/build/darwin ibook$
thanks
hi
i am not sure if anyone answered the email i sent last week (i had a problem on my email software and lost all emails from that friday before i read them).
if anyone can help it would be great. I paste the email egain before.
thanks and sorry for duplicating the email
altern wrote:
cc -bundle -bundle_loader /usr/local/pd/bin/pd -o "ann.pd_darwin" "ann.o" -lc -lm
#test -f ann.libs && cat ann.libs
ld: can't open: /usr/local/pd/bin/pd (No such file or directory, errno = 2) make: *** [ann.pd_darwin] Error 1i wonder if this second one still comes after you installed HCSs pd and set the appropriate path in the makefile.
well i am not sure which is the appropiate path. I set prefix=$(DESTDIR)/Applications/audio/Pd-0.38-0test4HCS1.app/Contents/Resources
and PDEXECUTABLE = /Applications/audio/Pd-0.38-0test4HCS1.app/Contents/Resources/bin/pd
but still got several errors. There it goes the output, maybe someone can give a pointer?
Ordenador-de-ibook:~/desktop/ext/build/darwin ibook$ make cc -DPD -Os -DUNIX -DMACOSX -Dunix -Wall -W -Wno-unused -Wno-parentheses -Wno-switch -Wno-shadow -I. -I.. -I../include -o "button.o" -c "../src/button.c" In file included from ../../ggee/gui/button.c:2, from ../src/button.c:1: ../include/g_canvas.h:252: warning: redefinition of
t_savefn' /usr/local/include/m_pd.h:423: warning:
t_savefn' previously declared here ../include/g_canvas.h:254: warning: redefinition oft_propertiesfn' /usr/local/include/m_pd.h:427: warning:
t_propertiesfn' previously declared here In file included from ../src/button.c:1: ../../ggee/gui/button.c:333:14: missing terminating " character In file included from ../src/button.c:1: ../../ggee/gui/button.c: In function `button_new': ../../ggee/gui/button.c:334: error: parse error before "pd" ../../ggee/gui/button.c:334: error: stray '' in program ../../ggee/gui/button.c:334: error: stray '' in program ../../ggee/gui/button.c:334: error: stray '' in program ../../ggee/gui/button.c:335: error: stray '' in program ../../ggee/gui/button.c:335:11: missing terminating " character make: *** [button.pd_darwin] Error 1 Ordenador-de-ibook:~/desktop/ext/build/darwin ibook$thanks
Looks like you have a version mismatch of /usr/local/include/m_pd.h and
../include/g_canvas.h. These two files need to be from the same
version of the Pd sources.
The easiest thing to do is delete /usr/local/include/m_pd.h and use the
file layout that many developers use:
http://puredata.org/docs/developer/devlayout
.hc
On Oct 20, 2004, at 6:18 AM, altern wrote:
hi
i am not sure if anyone answered the email i sent last week (i had a
problem on my email software and lost all emails from that friday
before i read them).if anyone can help it would be great. I paste the email egain before.
thanks and sorry for duplicating the email
altern wrote:
cc -bundle -bundle_loader /usr/local/pd/bin/pd -o
"ann.pd_darwin" "ann.o" -lc -lm
#test -f ann.libs && cat ann.libs
ld: can't open: /usr/local/pd/bin/pd (No such file or directory,
errno = 2) make: *** [ann.pd_darwin] Error 1i wonder if this second one still comes after you installed HCSs pd
and set the appropriate path in the makefile.well i am not sure which is the appropiate path. I set
prefix=$(DESTDIR)/Applications/audio/Pd-0.38-0test4HCS1.app/Contents/ Resources and PDEXECUTABLE =
/Applications/audio/Pd-0.38-0test4HCS1.app/Contents/Resources/bin/pd but still got several errors. There it goes the output, maybe someone
can give a pointer? Ordenador-de-ibook:~/desktop/ext/build/darwin ibook$ make cc -DPD -Os -DUNIX -DMACOSX -Dunix -Wall -W -Wno-unused
-Wno-parentheses -Wno-switch -Wno-shadow -I. -I.. -I../include -o
"button.o" -c "../src/button.c" In file included from ../../ggee/gui/button.c:2, from ../src/button.c:1: ../include/g_canvas.h:252: warning: redefinition oft_savefn' /usr/local/include/m_pd.h:423: warning:
t_savefn' previously
declared here ../include/g_canvas.h:254: warning: redefinition oft_propertiesfn' /usr/local/include/m_pd.h:427: warning:
t_propertiesfn' previously
declared here In file included from ../src/button.c:1: ../../ggee/gui/button.c:333:14: missing terminating " character In file included from ../src/button.c:1: ../../ggee/gui/button.c: In function `button_new': ../../ggee/gui/button.c:334: error: parse error before "pd" ../../ggee/gui/button.c:334: error: stray '' in program ../../ggee/gui/button.c:334: error: stray '' in program ../../ggee/gui/button.c:334: error: stray '' in program ../../ggee/gui/button.c:335: error: stray '' in program ../../ggee/gui/button.c:335:11: missing terminating " character make: *** [button.pd_darwin] Error 1 Ordenador-de-ibook:~/desktop/ext/build/darwin ibook$ thanks-- enrike
PD-list@iem.at mailing list UNSUBSCRIBE and account-management ->
http://iem.at/cgi-bin/mailman/listinfo/pd-list
¡El pueblo unido jamás será vencido!
I deleted the m_pd.h file. But i dont really understand what i have to do with the file layout. I have installed the Pd-0.38-0test4HCS1.app OSX version of PD. Its installed on /applications/audio . I understand that there was a problem with files installed from a previous version of PD.
I am new to os x and linux, just used SuSE for few months and this folder system is new to me. When i compile stuff sometimes it goes ok sometimes it doesnt go and then i have big problems making things work.
could anyone post some more detailed info about how to do this? or maybe there is some wiki somewhere? I dont know itf the location of the externals source folder is an issue when compiling or not for example and if so, where to place it. Also i am not sure about how to edit the makefile
thanks
Looks like you have a version mismatch of /usr/local/include/m_pd.h and
../include/g_canvas.h. These two files need to be from the same
version of the Pd sources.The easiest thing to do is delete /usr/local/include/m_pd.h and use the
file layout that many developers use:http://puredata.org/docs/developer/devlayout
.hc
On Oct 20, 2004, at 6:18 AM, altern wrote:
hi
i am not sure if anyone answered the email i sent last week (i had a
problem on my email software and lost all emails from that friday
before i read them).if anyone can help it would be great. I paste the email egain before.
thanks and sorry for duplicating the email
altern wrote:
> cc -bundle -bundle_loader /usr/local/pd/bin/pd -o
> "ann.pd_darwin" "ann.o" -lc -lm
> #test -f ann.libs && cat ann.libs
> ld: can't open: /usr/local/pd/bin/pd (No such file or directory,
> errno = 2) > make: *** [ann.pd_darwin] Error 1i wonder if this second one still comes after you installed HCSs pd
and set the appropriate path in the makefile.well i am not sure which is the appropiate path. I set
prefix=$(DESTDIR)/Applications/audio/Pd-0.38-0test4HCS1.app/Contents/ Resources and PDEXECUTABLE =
/Applications/audio/Pd-0.38-0test4HCS1.app/Contents/Resources/bin/pd but still got several errors. There it goes the output, maybe someone can give a pointer? Ordenador-de-ibook:~/desktop/ext/build/darwin ibook$ make cc -DPD -Os -DUNIX -DMACOSX -Dunix -Wall -W -Wno-unused
-Wno-parentheses -Wno-switch -Wno-shadow -I. -I.. -I../include -o
"button.o" -c "../src/button.c" In file included from ../../ggee/gui/button.c:2, from ../src/button.c:1: ../include/g_canvas.h:252: warning: redefinition oft_savefn' /usr/local/include/m_pd.h:423: warning:
t_savefn' previously
declared here ../include/g_canvas.h:254: warning: redefinition oft_propertiesfn' /usr/local/include/m_pd.h:427: warning:
t_propertiesfn' previously
declared here In file included from ../src/button.c:1: ../../ggee/gui/button.c:333:14: missing terminating " character In file included from ../src/button.c:1: ../../ggee/gui/button.c: In function `button_new': ../../ggee/gui/button.c:334: error: parse error before "pd" ../../ggee/gui/button.c:334: error: stray '' in program ../../ggee/gui/button.c:334: error: stray '' in program ../../ggee/gui/button.c:334: error: stray '' in program ../../ggee/gui/button.c:335: error: stray '' in program ../../ggee/gui/button.c:335:11: missing terminating " character make: *** [button.pd_darwin] Error 1 Ordenador-de-ibook:~/desktop/ext/build/darwin ibook$ thanks-- enrike
PD-list@iem.at mailing list UNSUBSCRIBE and account-management ->
http://iem.at/cgi-bin/mailman/listinfo/pd-list
¡El pueblo unido jamás será vencido!
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://iem.at/cgi-bin/mailman/listinfo/pd-list