[PD] [VBAP] multiple sound sources
Hi, I'm writing a spatialisation patch for 3 or 4 sound sources. I didn't found the way to control them with a unique vbap object, as ambiencode does... I think it's not possible, but I ask just to be sure. thank you r ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] Fwd: Working RPI Soundcards (was raspberry pi user experience)
-- Forwarded message -- From: Julian Brooks jbee...@gmail.com Date: 10 April 2013 10:00 Subject: Re: [PD] Working RPI Soundcards (was raspberry pi user experience) To: Johann Diedrick jdiedr...@gmail.com Yes indeed, but not for 6 (5.1) outs. On 9 April 2013 21:56, Johann Diedrick jdiedr...@gmail.com wrote: The Griffin iMic works nice! Audio in and out work well. ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] 2D slider
[gcanvas] n Le 10/04/13 01:26, Ryan Smith a écrit : The grid object would probably work for you. On Tue, Apr 9, 2013 at 3:26 PM, Thomas Mayer tho...@residuum.org wrote: Hello, is there a 2D slider object, similar to a combination of a hslider and vslider, something like the Kaoss Pad touchscreen? Thanks, Thomas -- Chaney was aware that anything, however small, can get the eye of the media if it's repulsive enough. (Robert Anton Wilson - The Universe Next Door) http://www.residuum.org/ ___ 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 -- http://www.nimon.org ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] git repositories for all of pure-data/trunk?
Hi, I notice git repositories exist for the Pd and Pd-extended sources, but not for externals, abstractions or any of the other stuff currently in pure-data/trunk. Has there been any discussion about switching all of this over to git? Jamie ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] flip image in glsl
Le 10/04/2013 07:48, Patrice Colet a écrit : Hi Jack, the fragment code is now very short and much more elegant, certainly faster than using conditions, I guess this is due to [pix_info] that is computing dimensions of the resulting texture. This procedure seems to work for horizontal flipping then corrects strange behavior between pix_image and glsl, but vertical flipping has no consequence. It's also possible to crop using the dimen parameter, but I believe there is a zoom parameter missing to do it entirely. So I'm going to restart coding a fragment code from the basis you propose that would allow to crop both textures, because this looks fundamental for my possible use of this object, that is mainly about mixing two textures which coordinates could be modulated to fit a particular context, where textures would need to be placed accurately without having to modify it in an image editor, maybe you have an idea about how to do it simply? You can do operations directly on vec2 instead of two floats in your fragment shader. You can also avoid condition (could be slow). See patch and glsl vertex and fragment attached for flip. ++ Jack ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -open http://lists.puredata.info/listinfo/pd-list Hello Patrice, Not sure to understand what you mean about the problem on horizontal/vertical flipping. Here a new patch and the fragment shader. This time, all is computed from the Gem window size. You can flip, scale and move each texture. (the flip is done from the center position of the Gemwin). In this patch, i use a workaround to avoid to see the 'border' of the texture thanks to the message [perspec( on [gemframebuffer]. I don't know if there is a better solution ? Hope it will help. ++ Jack PS : I can clean the this patch and keep only the part about position and scale of a texture with GLSL for Gem example if it is interesting ? //jack/RYBN 2013 #extension GL_EXT_gpu_shader4 : enable #extension GL_ARB_texture_rectangle : enable uniform sampler2DRect Ttex1; uniform sampler2DRect Ttex2; uniform sampler2DRect tex0; uniform float style; uniform float mix_factor; uniform vec2 flip1, flip2; uniform vec2 dimen, resize1, resize2, move1, move2; ivec2 size1 = textureSize2DRect(Ttex1, 0); ivec2 size2 = textureSize2DRect(Ttex2, 0); void main (void) { vec2 sizeF1 = vec2(size1)*(1.0/resize1); vec2 sizeF2 = vec2(size2)*(1.0/resize2); vec4 color1 = texture2DRect(Ttex1, abs(flip1-vec2(gl_FragCoord)/dimen)*sizeF1-move1/resize1); vec4 color2 = texture2DRect(Ttex2, abs(flip2-vec2(gl_FragCoord)/dimen)*sizeF2-move2/resize2); if (style == 0.) { gl_FragColor = (color1 + color2); } else if (style == 1.) { gl_FragColor = (color1 - color2); } else if (style == 2.) { gl_FragColor = abs(color1 - color2); } else if (style == 3.) { gl_FragColor = (color1 * color2); } else if (style == 4.) { gl_FragColor = mix(color1,color2,mix_factor); } } 06.rectangle_multitexture_flip_size.pd Description: application/puredata ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Drawing a sine function dynamically in Gem
On Mit, 2013-04-03 at 11:59 +0200, Cyrille Henry wrote: hello, you have lot's of solution to draw a sinus curve in Gem. [...] you can also do like in openGL : using GEMglBegin, GEMglVextex (many of them thanks to an iterative loop), and GEMglEnd I'm interested in understanding that approach. So far I was able to draw a simple line: [gemhead] | [GEMglBegin GL_LINES] | [GEMglVertex2d -2 -2] | [GEMglVertex2d 2 2] | [GEMglEnd] But how are you creating an iterative loop out of this? I tried after GEMglBegin: [t a b a] || \ |[20( \ || \ |[until]\ || \ |[gemlist ] || - put the two [GEMglVertex2d] here. | [GEMglEnd] However, this causes an error on every frame: GL: invalid operation What is the correct way to do this? Roman Le 02/04/2013 23:18, Alexandros Drymonitis a écrit : I want to build this visual http://processing.org/learning/trig/ in Pd, but I want the sine curve to be drawn dynamically with every circle spin. It seems quite hard though. I don't know which object would be best. I tried either [curve] but the parameters are way too many and I'm not sure if precision is really possible. Then I tried [square 0.008] in combination with [repeat] but also doesn't work. Anyone knows how to do this? ___ 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-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Drawing a sine function dynamically in Gem
hello, you just have to put the gemhead in the gemlist befor the glBegin. see attachement. cheers c Le 10/04/2013 22:11, Roman Haefeli a écrit : On Mit, 2013-04-03 at 11:59 +0200, Cyrille Henry wrote: hello, you have lot's of solution to draw a sinus curve in Gem. [...] you can also do like in openGL : using GEMglBegin, GEMglVextex (many of them thanks to an iterative loop), and GEMglEnd I'm interested in understanding that approach. So far I was able to draw a simple line: [gemhead] | [GEMglBegin GL_LINES] | [GEMglVertex2d -2 -2] | [GEMglVertex2d 2 2] | [GEMglEnd] But how are you creating an iterative loop out of this? I tried after GEMglBegin: [t a b a] || \ |[20( \ || \ |[until]\ || \ |[gemlist ] || - put the two [GEMglVertex2d] here. | [GEMglEnd] However, this causes an error on every frame: GL: invalid operation What is the correct way to do this? Roman Le 02/04/2013 23:18, Alexandros Drymonitis a écrit : I want to build this visual http://processing.org/learning/trig/ in Pd, but I want the sine curve to be drawn dynamically with every circle spin. It seems quite hard though. I don't know which object would be best. I tried either [curve] but the parameters are way too many and I'm not sure if precision is really possible. Then I tried [square 0.008] in combination with [repeat] but also doesn't work. Anyone knows how to do this? ___ 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-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list gl_lines.pd Description: application/puredata ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Drawing a sine function dynamically in Gem
On Mit, 2013-04-10 at 22:28 +0200, Cyrille Henry wrote: hello, you just have to put the gemhead in the gemlist befor the glBegin. see attachement. Got it. Thanks. Roman Le 10/04/2013 22:11, Roman Haefeli a écrit : On Mit, 2013-04-03 at 11:59 +0200, Cyrille Henry wrote: hello, you have lot's of solution to draw a sinus curve in Gem. [...] you can also do like in openGL : using GEMglBegin, GEMglVextex (many of them thanks to an iterative loop), and GEMglEnd I'm interested in understanding that approach. So far I was able to draw a simple line: [gemhead] | [GEMglBegin GL_LINES] | [GEMglVertex2d -2 -2] | [GEMglVertex2d 2 2] | [GEMglEnd] But how are you creating an iterative loop out of this? I tried after GEMglBegin: [t a b a] || \ |[20( \ || \ |[until]\ || \ |[gemlist ] || - put the two [GEMglVertex2d] here. | [GEMglEnd] However, this causes an error on every frame: GL: invalid operation What is the correct way to do this? Roman Le 02/04/2013 23:18, Alexandros Drymonitis a écrit : I want to build this visual http://processing.org/learning/trig/ in Pd, but I want the sine curve to be drawn dynamically with every circle spin. It seems quite hard though. I don't know which object would be best. I tried either [curve] but the parameters are way too many and I'm not sure if precision is really possible. Then I tried [square 0.008] in combination with [repeat] but also doesn't work. Anyone knows how to do this? ___ 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-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-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list