pidip compilation is getting stuck as seen below. I'm using Fedora Core
1 and gcc version 3.3.2 20031022 (Red Hat Linux 3.3.2-1) . Does anyone
have any thoughts as to what I'm doing wrong here? ffmpeg is version
0.4.8 . Thanks!
Jim
> cc -I/usr/X11R6/include -g -O2 -Wall -I/usr/local/include
> -I/usr/X11R6/include -DPD -DX_DISPLAY_MISSING -O2 -funroll-loops
> -fomit-frame-pointer -ffast-math -Wall -W -Wstrict-prototypes
> -Wno-unused -Wno-parentheses -Wno-switch -DPDP_PIDIP_VERSION=\"0.12.16\"
> -g -I/usr/local/pd/src -I. -I/usr/local/pd/pdp/include -I../include
> -I../charmaps -I/SOURCES/ffmpeg/libavcodec
> -I/SOURCES/ffmpeg/libavformat -o pdp_ffmpeg~.o -c pdp_ffmpeg~.c
> pdp_ffmpeg~.c: In function `pdp_ffmpeg_process_yv12':
> pdp_ffmpeg~.c:446: error: too few arguments to function
> `img_resample_full_init'
> pdp_ffmpeg~.c:485: warning: passing arg 2 of `av_write_frame' makes
> pointer from integer without a cast
> pdp_ffmpeg~.c:485: error: too many arguments to function `av_write_frame'
> pdp_ffmpeg~.c:555: warning: passing arg 2 of `av_write_frame' makes
> pointer from integer without a cast
> pdp_ffmpeg~.c:555: error: too many arguments to function `av_write_frame'
> pdp_ffmpeg~.c: In function `pdp_ffmpeg_process':
> pdp_ffmpeg~.c:630: warning: passing arg 4 of `pdp_queue_add' from
> incompatible pointer type
> pdp_ffmpeg~.c: In function `pdp_ffmpeg_input_0':
> pdp_ffmpeg~.c:655: warning: passing arg 1 of
> `pdp_packet_convert_ro_or_drop' from incompatible pointer type
> make[1]: *** [pdp_ffmpeg~.o] Error 1
> make[1]: Leaving directory `/src/pidip-0.12.16/modules'
> make: *** [pdp_pidip_all] Error 2
>
>
On Sun, 18 Jul 2004, thewade wrote:
> > Both examples are based on GridFlow\'s powerful [@convolve] object.
> I used to know how convolution works but Ive forgotten. Could you
> remind me? (by the way, GEM has a [pix_convolve] object as well)
> If I remember correctly, convolution traverses a two-dimentional
> array of numbers, and multiplies thoes numbers and their adjacent
> values by some lesser dimentioned array...
yes, that's how it works.
> ...Im an artist/computer science major and I only remember this
> (proabably flawed) bit if information from a cognitive science
> class where they were using convolution as edge detection for
> robotic vision.
Convolution with only positive numbers is a blur effect; convolution with
mixed positive/negative acts as various kinds of edge detectors;
the game-of-life is equivalent to a blur coupled with some kind of
double-thresholding, but I wouldn't quite know how to make one with GEM.
See if you can duplicate the one in GridFlow; and then I don't know how
fast GEM's convolution will be, compared to GridFlow's.
In general you can shortcut a convolution by using the fact that:
fft(A conv B) = fft(A) * fft(B)
but, in the case of game-of-life, there is something else than just a
convolution, and that thing is not easily expressible in frequency domain
(or: if it can, I really want to hear about it!!!) so you can't shortcut
game-of-life.
________________________________________________________________
Mathieu Bouchard http://artengine.ca/matju
yeah i understand the whole delwrite~ delread~ thing,
i even tried implementations of the same idea using
them, the problem i find with the whole delay idea is
that the delay is a constant flow of information but
with no memory content, i cant pause a delay (or can
i?), i kind of figured the whole audio block rate
thing, perhaps if i work more on the mathematical
synchronisation of messages (and stuff) it might work
better, also perhaps if i combine my original line of
investigation with delays something might come of
it...thanks anyway...
p.s. is there a more sophisticated way of sending
messages to switch or block than just using messages,
i find the fact that they dont have control inlets
slight "undynamic"...
=====
___________________________________________________________ALL-NEW Yahoo! Messenger - sooooo many all-new ways to express yourself http://uk.messenger.yahoo.com
Hi folks,
Newbie to the group, trying to get my head around PD, Gem and the lot.
Running on Mac OSX.3 with PD 0.37.0
I am generating some graphics with Gem, and I would like to save the
result to a file. I looked at pix_write but can't seem to get it to
work. No combination of messages to pix_write seem to make it do
anything. The only response I could get was when I used the "file"
message with a full path instead of just a filename. When pix_write
had the message "file /Users/etc/filename" instead of "file filename",
it gave me:
error: ERROR: -5000 in GraphicsExportDoExport()
whenever I banged it using "auto 0" or every frame when using "auto 1".
Giving a jpeg quality (eg 60) at the end of the "file" message made no
difference.
Any help with this? Is there a better way to save the graphics output
of Gem?
---
David Gerhard, Assistant Professor
Computer Science, University of Regina
phone: 306.585.5227 fax: 306.585.4745
web: http://www2.cs.uregina.ca/~gerhard
hello pd list,
recently I was asked about french language tutorials for
pd. Are there any good ones to recommend?
Ou es les turialles francaise de pd dans l'internet?
thanks,
Merci,
Beau
I tried to open a 4800x3600 24bit PNG file, but it made Pd
crash/suddenly quit.
----
$ cat /home/claude/.pdrc
-verbose
-jack
-noadc
-audiobuf 2 -blocksize 64 -sleepgrain 10
-midiindev 1 -midioutdev 1
-path /home/claude/claudiusmaximus
-lib
/home/claude/public/development/pure-data-devel/pd/externals/gridflow-lib/gridflow
-path
/home/claude/public/development/pure-data-devel/pd/externals/gridflow-abstractions
-lib
/home/claude/public/development/pure-data-devel/pd/externals/iem-lib/iemlib1
-lib
/home/claude/public/development/pure-data-devel/pd/externals/iem-lib/iemlib2
-lib
/home/claude/public/development/pure-data-devel/pd/externals/iem-lib/iem_mp3
-lib
/home/claude/public/development/pure-data-devel/pd/externals/iem-lib/iem_t3_lib
-path
/home/claude/public/development/pure-data-devel/pd/externals/iem-abstractions
----
$ /home/claude/public/development/pure-data-devel/pd/bin/pd
reading startup file: /home/claude/.pdrc
sys_audioapi 5
Pd version 0.37.1 devel
compiled 19:56:47 Jul 10 2004
port 5400
Waiting for connection request...
TCL_LIBRARY="/home/claude/public/development/pure-data-devel/pd/tcl/library" TK_LIBRARY="/home/claude/public/development/pure-data-devel/pd/tk/library" "/home/claude/public/development/pure-data-devel/pd/bin/pd-gui" 5400
... connected
pd_startgui : updater thread 16386 launched
global soundfiler thread launched, priority: 0
Soundfiler sleeping
device 1: tried /dev/midi READ/WRITE; returned -1
device 0: tried /dev/midi00 READ/WRITE; returned 7
opened 1 MIDI input device(s) and 1 MIDI output device(s).
input channels = 0, output channels = 2
tried
/home/claude/public/development/pure-data-devel/pd/externals/gridflow-lib/gridflow.pd_linux and succeeded
setting up Ruby-for-PureData...
(done)
[gf] This is GridFlow 0.7.6 within Ruby version 1.8.1
[gf] base/main.c was compiled on Jul 10 2004, 22:03:57
[gf] startup_cpu: using MMX optimisations
tried
/home/claude/public/development/pure-data-devel/pd/externals/iem-lib/iemlib1.pd_linux and succeeded
iemlib1 (R-1.15) library loaded!
tried
/home/claude/public/development/pure-data-devel/pd/externals/iem-lib/iemlib2.pd_linux and succeeded
iemlib2 (R-1.15) library loaded!
tried
/home/claude/public/development/pure-data-devel/pd/externals/iem-lib/iem_mp3.pd_linux and succeeded
iem_mp3 (R-1.15) library loaded!
tried
/home/claude/public/development/pure-data-devel/pd/externals/iem-lib/iem_t3_lib.pd_linux and succeeded
iem_t3_lib (R-1.15) library loaded!
----
here I load my patch, the relevant connections are:
[bng]
|
[openpanel]
|
[open $1, bang(
|
[@store]
I click the [bng], select my 4800x3600 24bit PNG file and...
----
Pd: signal 6
socket receive error: Connection reset by peer (104)
----
...no more Pd.
A nicer error message would be, well, nice, and not aborting instantly
would be even nicer.
I guess this is because...
4800 * 3600 * 3 (channels) * 4 (grids are int32 by default) ~=~ 200MB
...and I only have 256MB RAM.
Is there any way to load the image directly into a (H,W,3)(uint8) grid?
And would [@store] store it like that?
Simple solution for now - resize source image to something that fits in
memory.
Ideal solution - lots and lots of RAM.
Anyone wanna donate me some memory modules - it was my birthday on
Monday, call it a late present! ;-)
--
http://www.claudiusmaximus.tk
So basically i wanted to see if anyone had any useful
advice on buffers, like for example correct me if i'm
wrong but arrays seem to be the only way to set up
audio buffers, yes? Recently i have been messing about
with tabwrite~ using it to read audio data from one
loop player into an array and then feeding that array
data to a second audio player; i was trying to set up
a kind of skipping cd type thing, going from normal
file playing to a jarring short loop and then perhaps
back to the normal audio. what i found annoying
though is that the array (or would it be the tabwrite~
object itself?) writes data in clumsy blocks, rather
than say as a continuous bit by bit flow into the
array, which cause all manner of audio ugliness and
made the timing that was so essential to the effect a
complete mess. has anyone got any tips on how to
improve this situation or blatantly obvious pieces of
information im not getting? best regards and stuff, thanks.
=====
___________________________________________________________ALL-NEW Yahoo! Messenger - sooooo many all-new ways to express yourself http://uk.messenger.yahoo.com