Re: [PD] acquiring information about wav files

2010-01-29 Thread Lorenzo



there's [soundfile_info) as well, iemlib


In fact... And here's an 'unpacked' version of the help ;)



Hi all

I am looking for a way to get information about WAV files in Pd,
specifically the number of channels and the number of frames. I know
[wavinfo], but it does not seem to work on windows (error: could not
read WAV-header with any file I could find) and on linux it seems to
read only a subset of WAV formats. It does not read from widely used
broadcast format WAV files. The target platform is windows AND linux
anyway in this case, so I need a portable solution.

The most troubling fact is, that some Pd-vanilla classes ([soundfiler],
[readsf~]) actually do retrieve the information I need, they read both,
the number of frames and the number of channels correctly, with all pcm
encoded wav files I tried, but - what a pity - they don't expose this
information to the patch level.

Hopefully I am overseeing the obvious here. Hints are very welcome.

Roman




___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list





Title: 400 Bad Request


Bad Request
Your browser sent a request that this server could not understand.


Apache/2.0.52 (Red Hat) DAV/2 mod_python/3.1.3 Python/2.3.4 mod_jk/1.2.14 Server at fl Port 80

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] routing pix_multiimage images to different geos

2010-01-29 Thread James Dunn
On 29 January 2010 00:53, Claude Heiland-Allen
claudiusmaxi...@goto10.org wrote:
 James Dunn wrote:

 Hi all,

 I have 12 images that I am trying to scroll sequentially up the screen and
 have tried using multiple gemheads (quite slow, even when turning them on
 and off as they enter/leave the screen) and also tried using 2 rectangles
 which follow each other (i.e. when the first one is off the top of the
 screen, it is sent back to below the screen to follow the second one and
 re-enters the screen with the next image loaded).
 I've looked at pix_multiimage and it seems this would be a good option to
 use as all the images are loaded into ram so this should speed things up
 (the images are quite large - 1200 x 848). So my question is, is it possible
 to send the output of pix_multiimage to different geos? Can I send image 1
 of pix_multiimage to rectangle 1 and image 2 of pix_multiimage to rectangle
 2 at the same time? Or would I need to use 2 pix_multiimages? (Which kind of
 defeats the point)

 Or is there a better way of doing this?

 I'd personally try something horribly inefficient but easier for me to
 understand like this, until GPU memory is filled or CPU-GPU memory
 bandwidth runs out, at which point I'd use the minimum number of rectangles
 that fill the screen and draw only those images:

 [gemhead]
  |
 [t a b]/[0(
  |       :
 [repeat 12]        from zexy, or use [gemlist] and [until]
  |       :
 [t a b]/[f]X[+1]
  |       :\
 [pix_multiimage]
  |       :
  |      [pd index to coordinates etc]
  |       |
 [translate]
  |
 [rectangle]


 Claude
 --
 http://claudiusmaximus.goto10.org


I'm not sure I quite understand what you have drawn here...? The use
of repeat will make the counter count up to 12 in each frame from the
gemhead right? So sending this to pix_multiimage will step through all
the images every frame, which is not what I want. I need at least two
rectangles, one with image0 textured on it, the other textured with
image1 (directly below image0). When image0 has scrolled off the top
of the screen, the rectangle should immediately return to the bottom
edge of the screen ready to re-enter with image2 loaded from
pix_multiimage.. hope this makes some sense. I had a thought of making
two pix_multiimages - one with the odd-numbered images loaded and one
with even-numbered images - so I'm going to try this first.
thanks

James

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


[PD] pix to polygon

2010-01-29 Thread kubriel
hello

im trying to texture clascial pix(no matter about resolution) to
[polygon 4] because i want to set coordinates of corners of this pix.
problem is, that textured pix on deformated polygon is always broken in
diagonal

there is illustrative picture of my problem:
http://img697.imageshack.us/img697/8818/polygons.png
-in my gemwin, there is common pix facing camera on the left. in the
middle is what happens if i try to texture it to deformated polygon, and
on the right side is what i want(but this is only rotated around y axis,
and i want to set coordinates of corners of my polygon)

i want to use it for projection mapping, but not possible with this
deformation. is there any solution, how to fix it?

kubo


___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] pix to polygon

2010-01-29 Thread IOhannes zmölnig
kubriel wrote:
 hello
 
 im trying to texture clascial pix(no matter about resolution) to
 [polygon 4] because i want to set coordinates of corners of this pix.
 problem is, that textured pix on deformated polygon is always broken in
 diagonal
 
 there is illustrative picture of my problem:
 http://img697.imageshack.us/img697/8818/polygons.png
 -in my gemwin, there is common pix facing camera on the left. in the
 middle is what happens if i try to texture it to deformated polygon, and
 on the right side is what i want(but this is only rotated around y axis,
 and i want to set coordinates of corners of my polygon)
 
 i want to use it for projection mapping, but not possible with this
 deformation. is there any solution, how to fix it?
 

if you are only interested in texturing on a trapezoid, use [trapezoid]
(and transformations like [shearXY]) to get the texturing right.

mfgasdr
IOhannes





signature.asc
Description: OpenPGP digital signature
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


[PD] -..::: Jornadas de musica experiMENTAL :::..-

2010-01-29 Thread el jay
el fin de semana del 12 - 14 de febrero tenemos hacemos unas jornadas de
music experimental en barcelona
esta divido en dos partes:

BLANKPAGES-
 una hora de live patching,  el 12 de Febrero en NIU--

 ... cartel con mas información...
http://www.freekculture.net/material/cartles-blankpages-niu-bcn-web.png

y el 12 noche y todo el sabado 13 haremos uno taller de pure data y
conciertos en los csoa la rimaia y la carbo en

 
NOISE-- se define como todo sonido no deseado por el receptor.  En el
ámbito de la comunicación sonora es aquel que no contiene información
clara que el receptor no es capaz de identificar, individualizar o
comprender.

   …. Una perturbación que sufre la señal en el proceso comunicativo..

…..Un subproducto no deseado de otras actividades. En teoría de la
información, sin embargo, se considera al ruido como información.

En la música contemporánea, el Noise, siempre ha sido un factor
presente en la experimentación y expresión de diversos  compositores.
La  introducción de maquinaria industrial,  instrumentos
electrificados,  y notación aleatorio fue la clave de muchas obras del
futurismo, dada, y surrealismo de principios del siglo..  desde la
invención del circuito electrónico y el ordenador, el synth ha
revolucionado el concepto de la música, fue un proceso muy rápido por
parte de  los músico en aceptar  de nuevos sonidos, filtros y efectos
como parte de su paleta de herramientas para la creación sonara, dando
lugar al nacimiento de lo que podríamos hoy llamar la musica
electrónica..

  Dentro de la marco de las jornadas musica experiMENTAL ...NOISE...
miraremos la evolución de este genero,  estudiamos las diferentes
herramientas que tenemos disponibles.. Pondremos en cuestión los
convenios de la música comercial,.. el arte no es ni un negocio de venta
y compran ni es un privilegio elitista de conservatorio.. la musica como
toda formas de expresión artísticas nace de la  necesidad del ser humano
de comunicar y dejar marcado sus sentimientos mas interiores.. Invitamos
que todos sean parte de este lenguaje y que todos expresemos y
experimentemos con el medio...

En esta primera jornadas nos concentraremos en las bases de la
programación .. La base de estas jornadas es el Framework the
programación libre PureDATA.,  un sistema de programación por objetos
gráficos, que permite crear diversos instrumentos musicales y  que
permite la interactividad por parte de sensores, vídeos, y infinitas
posibilidades.

  Empezaremos el sábado 13 de febrero a las 14h en el centro social La
Otra Carbonearía..

..::: aqui puedes ver un bofeto del cartel:::..

http://www.freekculture.net/material/jornadas-musica.png
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] [PD-announce] first alpha hidio 0.1 release

2010-01-29 Thread Frank Barknecht
Hallo,
Hans-Christoph Steiner hat gesagt: // Hans-Christoph Steiner wrote:

 Like with [comport], send [hidio] the [devices( message.

 But this sends to the console, IIRC?

 Yes, but you can get the info via the right outlet.  So you could do  
 your own search.  Or just open the device using the USB productID/ 
 manufactuerID, or by USB HID class (i.e. mouse, joystick, gamepad).

Maybe I have an old version, but the hidio-0.1 I have here doesn't send
anything to the outlet for closed devices (I use Linux.) devices prints to 
console only,
info prints this: 

open 0
device -1
total 0
poll 5
vendorID 0x0001
productID 0x
product Unknown

regardless of what devices there are. If devices are open, it prints the info 
correctly. 

How do I open by PID? That would actually be what I want to do. Do I have to
test-open all possible devices once?

Ciao
-- 
Frank

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] acquiring information about wav files

2010-01-29 Thread William Brent
Just for the record - soundfiler outputs the number of samples
directly, so there's no need for [arraysize] in this kind of
situation.  It's not mentioned directly in the help file, but that
number box connected to soundfiler's output reports the number of
samples.



On Thu, Jan 28, 2010 at 2:59 PM, Andrew Faraday jbtur...@hotmail.com wrote:
 I'm not sure about the number of channels, however there is a slightly
 round-about way to get the number of samples from a file.
 Write to an array using [soundfiler] with the -resize flag. Then use
 [arraysize] to find the size of the array. Et voila, the number of samples
 in your file.
 Hope that helps

 From: reduzie...@yahoo.de
 To: pd-list@iem.at
 Date: Thu, 28 Jan 2010 23:30:53 +0100
 Subject: [PD] acquiring information about wav files

 Hi all

 I am looking for a way to get information about WAV files in Pd,
 specifically the number of channels and the number of frames. I know
 [wavinfo], but it does not seem to work on windows (error: could not
 read WAV-header with any file I could find) and on linux it seems to
 read only a subset of WAV formats. It does not read from widely used
 broadcast format WAV files. The target platform is windows AND linux
 anyway in this case, so I need a portable solution.

 The most troubling fact is, that some Pd-vanilla classes ([soundfiler],
 [readsf~]) actually do retrieve the information I need, they read both,
 the number of frames and the number of channels correctly, with all pcm
 encoded wav files I tried, but - what a pity - they don't expose this
 information to the patch level.

 Hopefully I am overseeing the obvious here. Hints are very welcome.

 Roman




 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list

 
 Got a cool Hotmail story? Tell us now
 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list





-- 
William Brent
www.williambrent.com

“Great minds flock together”
Conflations: conversational idiom for the 21st century

www.conflations.com

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] [PD-announce] first alpha hidio 0.1 release

2010-01-29 Thread Hans-Christoph Steiner


On Jan 29, 2010, at 1:19 PM, Frank Barknecht wrote:


Hallo,
Hans-Christoph Steiner hat gesagt: // Hans-Christoph Steiner wrote:


Like with [comport], send [hidio] the [devices( message.


But this sends to the console, IIRC?


Yes, but you can get the info via the right outlet.  So you could do
your own search.  Or just open the device using the USB productID/
manufactuerID, or by USB HID class (i.e. mouse, joystick, gamepad).


Maybe I have an old version, but the hidio-0.1 I have here doesn't  
send
anything to the outlet for closed devices (I use Linux.) devices  
prints to console only,

info prints this:

open 0
device -1
total 0
poll 5
vendorID 0x0001
productID 0x
product Unknown

regardless of what devices there are. If devices are open, it prints  
the info correctly.


How do I open by PID? That would actually be what I want to do. Do I  
have to

test-open all possible devices once?



I am assuming PID == productID.  It is possible to open using the  
manuID productID, but there is no way to check if it is present or  
not, except for opening one device at a time using [open $1( and a  
number, then querying it.  For example [open 0x046d 0xc01d( opens my  
mouse no matter what device number it is.


Do you have a use case where you would want to query and not just open?

.hc








It is convenient to imagine a power beyond us because that means we  
don't have to examine our own lives., from The Idols of  
Environmentalism, by Curtis White






___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


[PD] GOP and delta

2010-01-29 Thread Matteo Sisti Sette

Hi,

I wanted to do make some bangs and canvases disappear and appear on a 
GOP-enabled abstraction, so I thought the simplest thing would be to 
make them move outside the gop-area and back to their place.


However, when a gui element is moved away from the gop area (via a 
delta message), it is redrawn outside it. It is not active (i.e. if 
you click on it you don't interact) but it is still visible. Only when 
you move the object, then the spurious element previously drawn outside 
the gop area disappears.


The viceversa also happens: you move it back to inside the gop area, it 
is still invisible; as soon as you move the containing object then it 
becomes visible.


Obviously a bug. The question however is, can anybody think of an easy 
workaround?


thanks
m.

--
Matteo Sisti Sette
matteosistise...@gmail.com
http://www.matteosistisette.com

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] acquiring information about wav files

2010-01-29 Thread Roman Haefeli
Yeah, but only of the part that you write into the table, which means
you have to read the whole file from disk before you know the number of
frames (and you need a huge array, when reading a huge file).

Roman

On Fri, 2010-01-29 at 11:00 -0800, William Brent wrote:
 Just for the record - soundfiler outputs the number of samples
 directly, so there's no need for [arraysize] in this kind of
 situation.  It's not mentioned directly in the help file, but that
 number box connected to soundfiler's output reports the number of
 samples.
 
 
 
 On Thu, Jan 28, 2010 at 2:59 PM, Andrew Faraday jbtur...@hotmail.com wrote:
  I'm not sure about the number of channels, however there is a slightly
  round-about way to get the number of samples from a file.
  Write to an array using [soundfiler] with the -resize flag. Then use
  [arraysize] to find the size of the array. Et voila, the number of samples
  in your file.
  Hope that helps
 
  From: reduzie...@yahoo.de
  To: pd-list@iem.at
  Date: Thu, 28 Jan 2010 23:30:53 +0100
  Subject: [PD] acquiring information about wav files
 
  Hi all
 
  I am looking for a way to get information about WAV files in Pd,
  specifically the number of channels and the number of frames. I know
  [wavinfo], but it does not seem to work on windows (error: could not
  read WAV-header with any file I could find) and on linux it seems to
  read only a subset of WAV formats. It does not read from widely used
  broadcast format WAV files. The target platform is windows AND linux
  anyway in this case, so I need a portable solution.
 
  The most troubling fact is, that some Pd-vanilla classes ([soundfiler],
  [readsf~]) actually do retrieve the information I need, they read both,
  the number of frames and the number of channels correctly, with all pcm
  encoded wav files I tried, but - what a pity - they don't expose this
  information to the patch level.
 
  Hopefully I am overseeing the obvious here. Hints are very welcome.
 
  Roman
 
 
 
 
  ___
  Pd-list@iem.at mailing list
  UNSUBSCRIBE and account-management -
  http://lists.puredata.info/listinfo/pd-list
 
  
  Got a cool Hotmail story? Tell us now
  ___
  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


Re: [PD] GOP and delta

2010-01-29 Thread Stephen Lucas
One thing that you might try is having an extra canvas with a color the same
as the GOP patch's background color change vis_size to cover up / hide the
stuff you want to disappear. I don't think you can make canvas have a
vis_size of 0 0, but 1 1 with the right background color isn't visible in
most cases.

Of course this doesn't work at all if you intend to move things around
beyond simple hiding and showing. It can also be very tedious to set up the
visible order and the receive symbols of these canvases, but it does seem to
be shown with GOP
-Stephen
On Fri, Jan 29, 2010 at 4:44 PM, Matteo Sisti Sette 
matteosistise...@gmail.com wrote:

 Hi,

 I wanted to do make some bangs and canvases disappear and appear on a
 GOP-enabled abstraction, so I thought the simplest thing would be to make
 them move outside the gop-area and back to their place.

 However, when a gui element is moved away from the gop area (via a delta
 message), it is redrawn outside it. It is not active (i.e. if you click on
 it you don't interact) but it is still visible. Only when you move the
 object, then the spurious element previously drawn outside the gop area
 disappears.

 The viceversa also happens: you move it back to inside the gop area, it is
 still invisible; as soon as you move the containing object then it becomes
 visible.

 Obviously a bug. The question however is, can anybody think of an easy
 workaround?

 thanks
 m.

 --
 Matteo Sisti Sette
 matteosistise...@gmail.com
 http://www.matteosistisette.com

 ___
 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


[PD] soundfiler resize failed

2010-01-29 Thread William Brent
With larger sound files, I've seen soundfiler fail to resize arrays,
even with an appropriate -maxsize value. For instance, with a .wav
file that's 45205253 samples long (about 17 minutes), this message
produces a resize failed error:

[read -resize -maxsize 4.52053e+07 test.wav sf-test(

But if I resize the table to 45205253 points directly beforehand, a
regular read message to soundfiler loads the complete file properly.
I've searched the list to see if this has been brought up before, but
didn't find anything...  Am I missing something?



-- 
William Brent
www.williambrent.com

“Great minds flock together”
Conflations: conversational idiom for the 21st century

www.conflations.com

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list