Re: [PD] Control a USB fan from Pd

2013-04-09 Thread Max
I would guess those devices only draw the electricity from the USB port and are 
otherwise not controllable at all. but may be that there are more intelligent 
devices out there which i haven't seen yet. Link to a product you are talking 
about?

Am 09.04.2013 um 07:48 schrieb J Oliver jaime.oliv...@gmail.com:

 Hello everyone, 
 
 Would anyone know how to control a USB fan from Pd?
 
 best,
 
 Jaime
 
 
 ___
 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] Control a USB fan from Pd

2013-04-09 Thread Patrice Colet
Hello, this is an interesting project, you can power on/off from linux shell, 
for going further I guess you need to put your hands into a libusb external

Colet Patrice

 
 I would guess those devices only draw the electricity from the USB
 port and are otherwise not controllable at all. but may be that
 there are more intelligent devices out there which i haven't seen
 yet. Link to a product you are talking about?
 
 Am 09.04.2013 um 07:48 schrieb J Oliver jaime.oliv...@gmail.com:
 
  Hello everyone,
  
  Would anyone know how to control a USB fan from Pd?
  
  best,
  
  Jaime
  
  
  ___
  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] flip image in glsl

2013-04-09 Thread Jack
Le 08/04/2013 17:47, Patrice Colet a écrit :
 I've implemented all the stuff for flipping horizontaly and verticaly, 
 there is an attached example, but it's not very elegant, there is warning 
 messages even if it works good, maybe there is a better way to do it?


 Colet Patrice

 - Mail original -
 De: Patrice Colet colet.patr...@free.fr
 À: pd-list pd-list@iem.at
 Cc: Cyrille Henry c...@chnry.net
 Envoyé: Lundi 8 Avril 2013 16:37:29
 Objet: Re: [PD] flip image in glsl

 Got it, thanks a lot!

 Colet Patrice

 - Mail original -
 De: Cyrille Henry c...@chnry.net
 À: Patrice Colet colet.patr...@free.fr
 Cc: pd-list pd-list@iem.at
 Envoyé: Lundi 8 Avril 2013 10:05:22
 Objet: Re: [PD] flip image in glsl

 hello,

 when using rectangular texturing, coordinate goes from 0 to image
 pixel size.
 when using rectangle 0 mode, pixel coordinate goes from 0 to 1.
 (sometimes 1 is for the power of 2 bigger than the image pixel
 size)

 so, in rectangular mode, use pixetl_size - image coordinate to flip
 the image.
 and 1 - image coordinate in non rectangle mode.

 Image can be fliped because the fliped flag is not used on the
 shader.

 cheers
 c



 Le 08/04/2013 09:24, Patrice Colet a écrit :
 Hello,

   how is it possible to flip upside down an image in glsl example
   05.multitexture

 I tried to implement this in fragment program:

 http://stackoverflow.com/questions/9857089/flip-upside-down-vertex-shader-gles

 but it doesn't work. The only thing I can do is changing texture
 scale and position, but I couldn't do it with negative values
 like it would be done in pix_coordinates.

 In fact when I use pix_multiimage before pix_texture, the image
 gets flipped, I don't know why...

 Colet Patrice


 ___
 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
Hello Patrice,

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




06.rectangle_multitexture_flip.pd
Description: application/puredata
//jack/RYBN 2010
#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;

varying vec2 texcoord0;
ivec2 size1 = textureSize2DRect(Ttex1, 0);
ivec2 size2 = textureSize2DRect(Ttex2, 0);
ivec2 size0 = textureSize2DRect(tex0, 0);

void main (void)
{
vec2 sizeF1 = vec2(size1)/vec2(size0);
vec2 sizeF2 = vec2(size2)/vec2(size0);
vec4 color1 = texture2DRect(Ttex1, abs(flip1*dimen-texcoord0)*sizeF1);
vec4 color2 = texture2DRect(Ttex2, abs(flip2*dimen-texcoord0)*sizeF2);

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);
}

}

//jack/RYBN 2010
varying vec2 texcoord0;

void main()
{
texcoord0 = (gl_TextureMatrix[0]*gl_MultiTexCoord0).st;
gl_Position = ftransform();

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


Re: [PD] State of dssi/plugin support on Linux (Ubuntu 12.04)

2013-04-09 Thread Patrick Pagano


i use ghostess and send it in via jack

On 04/07/2013 12:08 AM, Ivica Ico Bukvic wrote:

All,

I did some digging around existing plugin solutions for fluidsynth and 
other synths on Linux and so far had no luck. pluginhost~ segfaults as 
soon as it is loaded (help patch does). Removing :hexter from the 
[pluginhost~ hexter.so:hexter 2] fixes this but one cannot open any of 
the guis (they all either do not do anything or eventually crash pd. 
The old fluid~ is gone, nowhere to be found, so is dssi~. It is 
possible that this problem stems from some weird configuration on my 
system but before I try digging in that direction, just wanted to see 
what everyone else's thoughts were on this one. The problem btw 
manifests both on local build of pd-extended and pd-l2ork. Not sure 
about vanilla...





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


[PD] best way to play (long) 24-channel wav file in pd

2013-04-09 Thread Matthias Blau

Hello list,

I want to play a 24-channel wav file in pd. It is rather big (several 
minutes), such that pre-loading the data into tables will probably not 
work (have to check that though). I tried zexy/sfplay but it seems to be 
limited to 8 channels.


In the final application, we want to use a set of 48 FIR filters (each 
512 taps long) to downmix the 24 channels to 2 outputs.


Any suggestions?

Thanks
Matthias

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


Re: [PD] Preferences Dialog

2013-04-09 Thread Nicolas Montgermont

Under osx, this is usually what is done,
there is no apply button.

Hans's proposition to have separate message is very good as well. It is 
much better to change from the patch, for example, only the number of 
audio outputs than to overwrite all parameters.


One thing missing as well is the ability to select audio/midi device by 
name from the patch, instead of numbers. This is specially important for 
installation when you have different devices connected and no way to be 
sure of the order...


One preference menu seems very nice to me. Audio / midi / startup / path 
tabs for examples. In osx, the preferences menu should not be under the 
Edit menu but under the main app name, just after About


Good luck,
Best,

n
Le 08/04/13 03:29, Hans-Christoph Steiner a écrit :

I think this makes a lot of sense.  Making the preferences take effect
immediately is how most platforms are going these days, and is really how Pd
itself responds.  So I think Pd's preferences should behave accordingly.

The problem is that it will be tricky to do with the current message format.
I think you should probably just ignore the existing preferences mega-messages
and make one-message-per-preference.  That would also make it easier to set
the preferences from a patch.

.hc

On 04/05/2013 01:19 PM, Jonathan Wilkes wrote:

Hi List,
  I'm going to start coding up a single preferences dialog to replace the
disparate settings dialogs that live in non-standard menus of Pd.

It will be Firefox Style, meaning a Preferences option in the Edit
menu.  The dialog will have a row of buttons at the top that are icons
above text.  When a button is clicked it will bring up the tab in the dialog
window for those particular settings.  (This turns out to be surprisingly
easy to do in Tk.)


So far I think there should be an Audio button, MIDI button, and maybe
a GUI button that could be be split out later if needed.

I'd like to have changes take effect immediately-- otherwise it might get
confusing if one changes settings in one tab, then makes changes to another
and clicks Apply.  How would this effect UX on Windows and OSX?

-Jonathan


___
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


Re: [PD] best way to play (long) 24-channel wav file in pd

2013-04-09 Thread Charles Goyard
Hi,

Matthias Blau wrote:
 I want to play a 24-channel wav file in pd. It is rather big
 (several minutes), such that pre-loading the data into tables will
 probably not work (have to check that though). I tried zexy/sfplay
 but it seems to be limited to 8 channels.

Did you try readsf~ or readanysf~ if not in wav format ?

On 64bits machines it should be no problem to open a huge file.


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


Re: [PD] Control a USB fan from Pd

2013-04-09 Thread J Oliver
Well,

Any usb fan really. for example, this one: 
http://www.newegg.com/Product/Product.aspx?Item=9SIA1HE0GD0017

There seem to be several pieces of software for controlling usb fan speeds to 
control temperature/noise out there, but I'm not familiar with all of them and 
their potentialities. Most of them are not for usb control and I'm interested 
in continuous control, which most don't seem to have. 

I'd rather avoid the soldering route if possible, so I was just wondering if 
people have had experience controlling the voltage output of a usb port.

J





On Apr 9, 2013, at 3:35 AM, Patrice Colet wrote:

 Hello, this is an interesting project, you can power on/off from linux shell, 
 for going further I guess you need to put your hands into a libusb external
 
 Colet Patrice
 
 
 I would guess those devices only draw the electricity from the USB
 port and are otherwise not controllable at all. but may be that
 there are more intelligent devices out there which i haven't seen
 yet. Link to a product you are talking about?
 
 Am 09.04.2013 um 07:48 schrieb J Oliver jaime.oliv...@gmail.com:
 
 Hello everyone,
 
 Would anyone know how to control a USB fan from Pd?
 
 best,
 
 Jaime
 
 
 ___
 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] Preferences Dialog

2013-04-09 Thread IOhannes m zmölnig
On 04/09/2013 16:06, Nicolas Montgermont wrote:
 Under osx, this is usually what is done,
 there is no apply button.

which i personally find a very annoying behaviour.

 
 One thing missing as well is the ability to select audio/midi device by
 name from the patch, instead of numbers. This is specially important for
 installation when you have different devices connected and no way to be
 sure of the order...

but then this can be easily done via externals...e.g. my mediasettings
library (at the danger of repeating myself)

 One preference menu seems very nice to me. Audio / midi / startup / path
 tabs for examples.

yes please.

fgamdsr
IOhannes

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


[PD] [Patchingcirclebxl] Pure data patching circle Brussels @ Variable #08

2013-04-09 Thread olm-e
Here is the announce for the next session of the Pure Data Patching
Circle in Brussels, Constant Variable house.
welcome (please register)
sorry for crossposting


hello,
voici l'annonce pour la prochaine session du Cercle de Developpement
Pure Data à Bruxelles, Constant Variable.
bienvenue (veuillez réserver svp)
veuillez excuser pour la redite s'il en est...


bien cordialement,

Olivier Meunier

http://patchingcircles.be
http://ogeem.be


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - -


_*Pure data patching circle Brussels @ Variable #08*_

*20 April 2013*


*EN :*
*//*The Patching Circles are open workshop session to learn and share
about the pure-data software and other.

/_Workshop: 13h - 19h_/

This time, apart from Easter eggs and digital bunny stories, there won't
be any specific focus on the circle. Come up with your projects,
questions, interests, and we'll see how we can together make it fly.
Also, there will possibly happens some demo of latest finds in
gstreamer's lib: pdgst in use for video stream sharing between
computers, or other wrap up of past things we have seen but not
completely grasped...

session open and free to all, debuting as well as veteran,

subscribe please: pdcirc...@ogeem.be

_*mailing list: *_

to get updates and participate in the group discussion, you can join the
mailing list here
https://listes.domainepublic.net/cgi-bin/mailman/listinfo/patchingcirclebxl

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - -

*FR
*

*20 Avril 2013*
**

Les Patching Circles sont des sessions d'ateliers ouverts pour
apprendre et partager à propos du logiciel Pure-data et autres.

_/Atelier 13h - 19h/_

Cette fois, à part des histoires de bonus cachés et de lapins blancs de
pâques, il n'y aura pas de focus particulier à l'atelier. Il est donc
ouvert à vos projets, envies, questions, et nous verrons ensemble
comment ça vole. Aussi, on parlera peut-être de comment partager de la
video entre 2 ordinateurs avec la librairie pdgst, ou d'autres choses
qu'on a abordé précédemment mais pas totalement comprises...

session gratuite et ouverte à tous, débutant comme confirmé,

inscription svp : pdcirc...@ogeem.be

*_mailing list : _*

Pour avoir des infos et discussions sur le sujet avec le groupe de
participants, rendez vous sur la mailing liste
https://listes.domainepublic.net/cgi-bin/mailman/listinfo/patchingcirclebxl

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - -

*direction* : Constant Variable Rue Gallait / Gallaitstraat 80 1030
Schaerbeek / Schaarbeek
par Transport public:
Tram 25, 55, 94: Liedt

-- This project is supported by the Ministery of Culture of the
Wallonia-Brussels Federation, Digital Arts --
-- Ce projet est supporté par le Ministère de la Culture de la
Fédération Wallonie-Bruxelles, Arts Numériques--


*//*

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


Re: [PD] Working RPI Soundcards (was raspberry pi user experience)

2013-04-09 Thread Julian Brooks
Hey all,

No joy with ESI GIGAPort HD :(
Not seen by the Pi at all with and without USB slowdown.

If anyone has any ideas please let me know?

Bought one of these for a project foolishly thinking it would be the same
as the AG version.

Stuck it on the wiki-list too.

Pah,

Julian


On 13 February 2013 15:35, Charles Goyard c...@fsck.fr wrote:

 Hi list,

 Charles Goyard wrote:
  just to say, I'm testing the terratec aureon 7.1 on rpi+pd. This
  interface works with the generic usb-audio driver.
 
  It does not work well. I can get proper stereo output at 44.1KHz but not
  more. If I setup pd to anything between 3 to 8 output channel, it gives
  a sawtooth-like output in the test patch, even at 22KHz, 1 second
  latency and large buffers.

 further testing: I could test with a HDMI audio output, more than 2
 channels does the same buzz.

 Cheers,

 --
 Charles

 ___
 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] Displaying images video with grid of GUI bangs

2013-04-09 Thread Christoph Mauerhofer

Hello,

in my Pure Data lecture at university I made a patch which displays 
images and video using a grid of GUI bangs (bng-objects). I don't know 
if this has been done before by someone else. My professor Peter Plessas 
said I could share it with this list.


So for everyone who's interested - here's a short screen capture video 
documenting the project: http://vimeo.com/63509237


And if anyone is interested in the patch, I uploaded it at: 
http://download.christophmauerhofer.com/bangpicture_web.zip (1.6 MB)


Kind regards,
Christoph Mauerhofer


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


[PD] 2D slider

2013-04-09 Thread Thomas Mayer
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] fftease, lyonpotpourri, and unauthorized now in Debian

2013-04-09 Thread Hans-Christoph Steiner

The Pd libraries fftease, lyonpotpourri, and unauthorized are now officially
included in Debian/unstable, and should automatically make their way into
Debian, Ubuntu, Mint etc. releases.

.hc

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


Re: [PD] 2D slider

2013-04-09 Thread Ryan Smith
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


Re: [PD] Control a USB fan from Pd

2013-04-09 Thread J Oliver
Thanks, 
(CC the list)
best,
J

On Apr 9, 2013, at 11:03 AM, Bastiaan van den Berg wrote:

 On Tue, Apr 9, 2013 at 4:41 PM, J Oliver jaime.oliv...@gmail.com wrote:
 I'd rather avoid the soldering route if possible, so I was just wondering if 
 people have had experience controlling the voltage output of a usb port.
 
 Output voltage of a USB port is _always_ 5VDC
 
 --
 buZz 

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


Re: [PD] Control a USB fan from Pd

2013-04-09 Thread Patrice Colet
 
 
 Output voltage of a USB port is _always_ 5VDC
 


it can be modulated with zero voltage, like PWM

 
 --
 buZz
 
 ___
 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] Control a USB fan from Pd

2013-04-09 Thread J Oliver
On Apr 9, 2013, at 10:33 PM, Patrice Colet wrote:
 Output voltage of a USB port is _always_ 5VDC
 it can be modulated with zero voltage, like PWM
This sounds promising. 

I'll give this a try tomorrow on a RaspberryPi:

http://stackoverflow.com/questions/4702216/controlling-a-usb-power-supply-on-off-with-linux
There are many threads saying that power in usb ports seem to be hardwired and 
not controlled by software.

I suppose, if this doesn't work I could potentially use PWM with the analog 
pins of the Pi and Miller's external?

best,

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


Re: [PD] flip image in glsl

2013-04-09 Thread Patrice Colet
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 -
 http://lists.puredata.info/listinfo/pd-list
 

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