Re: [PD] [PD-announce] Chocolate et Coffee

2014-01-06 Thread Pierre Guillot
@peiman : I thought about something that creates ramp lines with a specific
interpolations but I think you're right, the best way is to fill an array
(much more efficient). So, now I offer a cosine interpolation and cubic
interpolation, this is easy to use and if you add some points you can
create interesting envelopes.

@João : I think, it's better to have a specific object for bezier curves
because there several ways to write bezier curves : all the points define a
high order bezier curve (the curve never crosses the points) or each point
has one or more control points (like in photoshop).


2014/1/3 Alexandre Torres Porres por...@gmail.com

 yeah, I was finding the coffee library to be kind of reductant, these
 functionalities have already been achieved by other libraries in Pd
 Extended, but the GUI stuff is gold, I think it's time we could have
 something like that as an option in Pd Extended!


 2014/1/3 IOhannes m zmölnig zmoel...@iem.at

 On 2014-01-03 09:44, Pierre Guillot wrote:
  I'm sorry, I didn't want to hurt anybody with this library. I never
 thought
  that the name was so important and I'll change it as soon as possible if
  it's your principal wish.

 i don't think you've hurt anybody; and so far the only one who has
 been complaining was me :-)

 i don't think there's a real problem with your jokes about flavours
 (coffee, cocoa, whatever), though there might be better - and more
 specific - names.
 as jonathan has pointed out, i myself am the author of a dumpster
 library with a general name: but this library is about 15 years old. (i
 think) all other libraries i've written since then are targetted at a
 specific problem (e.g. networking) and have a specific name (e.g.
 iemnet).


 as for dupes in coffee:
 + [c.loadmess]
  - iemlib's [init]
  - (iirc, there used to be a kind-of implementation in vanilla as well)
 + [c.pak]
  - pdmtl's [list.pak]
 + [c.patcherargs]
  - iemgut's [canvasargs]
  - jonathan's query system
  - flext
 + [c.patcherinfos]
  - iemgut's [canvasname], [canvasinfo]
  - jonathan's query system
 + [c.prepend]
  - vanilla's [list prepend]+[list strip]
  - iemlib's [prepend]
  - cyclone's [Prepend]


 gfdar
 IOhannes


 ___
 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] [PD-announce] Chocolate et Coffee

2014-01-06 Thread Pierre Guillot
You can do the same with bezier curve, you don't click on a line segment
but you move a control point.
Cheers


2014/1/6 peiman khosravi peimankhosr...@gmail.com

 Hi Pierre,

 Sounds great. Although I would love to see ej.function's (Max external)
 functionality here. Please see the attached screen recording. I'm
 alt+clicking on a line segment and dragging it to create a specific curve
 for each segment.

 Thanks
 Peiman






 *www.peimankhosravi.co.uk http://www.peimankhosravi.co.uk || RSS Feed
 http://peimankhosravi.co.uk/miscposts.rss || Concert News
 http://spectralkimia.wordpress.com/*


 On 6 January 2014 10:48, Pierre Guillot guillotpier...@gmail.com wrote:

 @peiman : I thought about something that creates ramp lines with a
 specific interpolations but I think you're right, the best way is to fill
 an array (much more efficient). So, now I offer a cosine interpolation and
 cubic interpolation, this is easy to use and if you add some points you can
 create interesting envelopes.

 @João : I think, it's better to have a specific object for bezier curves
 because there several ways to write bezier curves : all the points define a
 high order bezier curve (the curve never crosses the points) or each point
 has one or more control points (like in photoshop).


 2014/1/3 Alexandre Torres Porres por...@gmail.com

 yeah, I was finding the coffee library to be kind of reductant, these
 functionalities have already been achieved by other libraries in Pd
 Extended, but the GUI stuff is gold, I think it's time we could have
 something like that as an option in Pd Extended!


 2014/1/3 IOhannes m zmölnig zmoel...@iem.at

  On 2014-01-03 09:44, Pierre Guillot wrote:
  I'm sorry, I didn't want to hurt anybody with this library. I never
 thought
  that the name was so important and I'll change it as soon as possible
 if
  it's your principal wish.

 i don't think you've hurt anybody; and so far the only one who has
 been complaining was me :-)

 i don't think there's a real problem with your jokes about flavours
 (coffee, cocoa, whatever), though there might be better - and more
 specific - names.
 as jonathan has pointed out, i myself am the author of a dumpster
 library with a general name: but this library is about 15 years old. (i
 think) all other libraries i've written since then are targetted at a
 specific problem (e.g. networking) and have a specific name (e.g.
 iemnet).


 as for dupes in coffee:
 + [c.loadmess]
  - iemlib's [init]
  - (iirc, there used to be a kind-of implementation in vanilla as well)
 + [c.pak]
  - pdmtl's [list.pak]
 + [c.patcherargs]
  - iemgut's [canvasargs]
  - jonathan's query system
  - flext
 + [c.patcherinfos]
  - iemgut's [canvasname], [canvasinfo]
  - jonathan's query system
 + [c.prepend]
  - vanilla's [list prepend]+[list strip]
  - iemlib's [prepend]
  - cyclone's [Prepend]


 gfdar
 IOhannes


 ___
 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


Re: [PD] [PD-announce] Chocolate et Coffee

2014-01-06 Thread peiman khosravi
Great.

Thanks!

Peiman





*www.peimankhosravi.co.uk http://www.peimankhosravi.co.uk || RSS Feed
http://peimankhosravi.co.uk/miscposts.rss || Concert News
http://spectralkimia.wordpress.com/*


On 6 January 2014 12:46, Pierre Guillot guillotpier...@gmail.com wrote:

 You can do the same with bezier curve, you don't click on a line segment
 but you move a control point.
 Cheers


 2014/1/6 peiman khosravi peimankhosr...@gmail.com

 Hi Pierre,

 Sounds great. Although I would love to see ej.function's (Max external)
 functionality here. Please see the attached screen recording. I'm
 alt+clicking on a line segment and dragging it to create a specific curve
 for each segment.

 Thanks
 Peiman






 *www.peimankhosravi.co.uk http://www.peimankhosravi.co.uk || RSS Feed
 http://peimankhosravi.co.uk/miscposts.rss || Concert News
 http://spectralkimia.wordpress.com/*


 On 6 January 2014 10:48, Pierre Guillot guillotpier...@gmail.com wrote:

 @peiman : I thought about something that creates ramp lines with a
 specific interpolations but I think you're right, the best way is to fill
 an array (much more efficient). So, now I offer a cosine interpolation and
 cubic interpolation, this is easy to use and if you add some points you can
 create interesting envelopes.

 @João : I think, it's better to have a specific object for bezier
 curves because there several ways to write bezier curves : all the points
 define a high order bezier curve (the curve never crosses the points) or
 each point has one or more control points (like in photoshop).


 2014/1/3 Alexandre Torres Porres por...@gmail.com

 yeah, I was finding the coffee library to be kind of reductant, these
 functionalities have already been achieved by other libraries in Pd
 Extended, but the GUI stuff is gold, I think it's time we could have
 something like that as an option in Pd Extended!


 2014/1/3 IOhannes m zmölnig zmoel...@iem.at

  On 2014-01-03 09:44, Pierre Guillot wrote:
  I'm sorry, I didn't want to hurt anybody with this library. I never
 thought
  that the name was so important and I'll change it as soon as
 possible if
  it's your principal wish.

 i don't think you've hurt anybody; and so far the only one who has
 been complaining was me :-)

 i don't think there's a real problem with your jokes about flavours
 (coffee, cocoa, whatever), though there might be better - and more
 specific - names.
 as jonathan has pointed out, i myself am the author of a dumpster
 library with a general name: but this library is about 15 years old. (i
 think) all other libraries i've written since then are targetted at a
 specific problem (e.g. networking) and have a specific name (e.g.
 iemnet).


 as for dupes in coffee:
 + [c.loadmess]
  - iemlib's [init]
  - (iirc, there used to be a kind-of implementation in vanilla as well)
 + [c.pak]
  - pdmtl's [list.pak]
 + [c.patcherargs]
  - iemgut's [canvasargs]
  - jonathan's query system
  - flext
 + [c.patcherinfos]
  - iemgut's [canvasname], [canvasinfo]
  - jonathan's query system
 + [c.prepend]
  - vanilla's [list prepend]+[list strip]
  - iemlib's [prepend]
  - cyclone's [Prepend]


 gfdar
 IOhannes


 ___
 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] pmpd3d and iPlane

2014-01-06 Thread Jack
Hello,

I don't understand the interactor behavior of iPlane with a mass.

When i create :
[iPlane mob 0 -1 0 0 4 0 1 1 0 1]
i expect to create a plane at (0, 4, 0) with a normal vector (0, -1, 0)
which interact with masses mob.
Is it true ?

If it is true, when i send a force (0, 0.1, 0) to a [mass mob 1 10 0 0 0(
i expect an interaction with the plane when the position Y of the mass
mob is (around) 4.0.
Is it still true ?

If not, what are the good arguments for [iPlane] to get an interaction
with the mass at (0, 4, 0) ?

Patch is attached.
Thanx.
++

Jack




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


Re: [PD] pmpd3d and iPlane

2014-01-06 Thread Cyrille Henry

using interactor messages with pmpd* objects is like using interactors objects 
with mass.
i.e : it did not create a fixed interaction like the link message do. it 
create a one time only interaction.
so you just have to bang it at every iteration with the gemhead.

cheers
c


Le 06/01/2014 20:11, Jack a écrit :

Hello,

I don't understand the interactor behavior of iPlane with a mass.

When i create :
[iPlane mob 0 -1 0 0 4 0 1 1 0 1]
i expect to create a plane at (0, 4, 0) with a normal vector (0, -1, 0)
which interact with masses mob.
Is it true ?

If it is true, when i send a force (0, 0.1, 0) to a [mass mob 1 10 0 0 0(
i expect an interaction with the plane when the position Y of the mass
mob is (around) 4.0.
Is it still true ?

If not, what are the good arguments for [iPlane] to get an interaction
with the mass at (0, 4, 0) ?

Patch is attached.
Thanx.
++

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


Re: [PD] pmpd3d and iPlane

2014-01-06 Thread Jack
OK, thanx for the clarification.
Now, it is working fine !
++

Jack



Le 06/01/2014 20:45, Cyrille Henry a écrit :
 using interactor messages with pmpd* objects is like using interactors
 objects with mass.
 i.e : it did not create a fixed interaction like the link message
 do. it create a one time only interaction.
 so you just have to bang it at every iteration with the gemhead.

 cheers
 c


 Le 06/01/2014 20:11, Jack a écrit :
 Hello,

 I don't understand the interactor behavior of iPlane with a mass.

 When i create :
 [iPlane mob 0 -1 0 0 4 0 1 1 0 1]
 i expect to create a plane at (0, 4, 0) with a normal vector (0, -1, 0)
 which interact with masses mob.
 Is it true ?

 If it is true, when i send a force (0, 0.1, 0) to a [mass mob 1 10 0
 0 0(
 i expect an interaction with the plane when the position Y of the mass
 mob is (around) 4.0.
 Is it still true ?

 If not, what are the good arguments for [iPlane] to get an interaction
 with the mass at (0, 4, 0) ?

 Patch is attached.
 Thanx.
 ++

 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


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


Re: [PD] Fwd: compil .py .pyo to pyext

2014-01-06 Thread Thomas Grill
Hi Philippe,
what means it is not good exactly? That it doesn't work?
My main question would be what you expect from the compilation to .pyo.
It's not a compilation to machine code as e.g. with C languages but rather
a mere translation to bytecode. It doesn't bring any speedups for
execution, just a tiny bit (negligible i would say) when loading the script.
all the best, Thomas


2014/1/6 Philippe Boisnard philem...@mac.com

 Hi, and HNY

 I search to compile a python script (.py = .pyo)
 but the result is not good

 In fact I use :
 python -O -m compileall basedonne.py
 result : basedonne.pyo, but it's not good for pyext

 I have tested with simple.py for example, but it's the same result, my
 simple.pyo is not good


 I don't know where is my problem ?
 it's not pyext, because I have a good python script
 I think that it's my compilation


 best regards

 p

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




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


Re: [PD] [PD-announce] Chocolate et Coffee

2014-01-06 Thread João Pais

if you want only one segment, you can use the abstraction [jmmmp/bezier].Great.
Thanks!Peiman

www.peimankhosravi.co.uk || RSS Feed|| Concert News

On 6 January 2014 12:46, Pierre Guillot guillotpier...@gmail.com wrote:
You can do the same with bezier curve, you don't click on a line segment but you move a control point.Cheers
2014/1/6 peiman khosravi peimankhosr...@gmail.com
Hi Pierre,


Sounds great. Although I would love to see ej.function's (Max external) functionality here. Please see the attached screen recording. I'm alt+clicking on a line segment and dragging it to create a specific curve for each segment.


Thanks


Peiman


www.peimankhosravi.co.uk || RSS Feed|| Concert News



On 6 January 2014 10:48, Pierre Guillot guillotpier...@gmail.com wrote:

@peiman : I thought about something that creates ramp lines with a specific interpolations but I think you're right, the best way is to fill an array (much more efficient). So, now I offer a cosine interpolation and cubic interpolation, this is easy to use and if you add some points you can create interesting envelopes.



@João: I think, it's better to have a specific object for bezier curves because there several ways to write bezier curves : all the points define a high order bezier curve (the curve never crosses the points) or each point has one or more control points (like in photoshop).



2014/1/3 Alexandre Torres Porres por...@gmail.com

yeah, I was finding the coffee library to be kind of reductant, these functionalities have already been achieved by other libraries in Pd Extended, but the GUI stuff is gold, I think it's time we could have something like that as an option in Pd Extended!




2014/1/3 IOhannes m zmölnig zmoel...@iem.at




On 2014-01-03 09:44, Pierre Guillot wrote:
 I'm sorry, I didn't want to hurt anybody with this library. I never thought
 that the name was so important and I'll change it as soon as possible if
 it's your principal wish.

i don't think you've "hurt" anybody; and so far the only one who has
been complaining was me :-)

i don't think there's a real problem with your jokes about flavours
("coffee", "cocoa", whatever), though there might be better - and more
specific - names.
as jonathan has pointed out, i myself am the author of a dumpster
library with a general name: but this library is about 15 years old. (i
think) all other libraries i've written since then are targetted at a
specific problem (e.g. "networking") and have a specific name (e.g.
"iemnet").


as for dupes in coffee:
+ [c.loadmess]
- iemlib's [init]
- (iirc, there used to be a kind-of implementation in vanilla as well)
+ [c.pak]
- pdmtl's [list.pak]
+ [c.patcherargs]
- iemgut's [canvasargs]
- jonathan's query system
- flext
+ [c.patcherinfos]
- iemgut's [canvasname], [canvasinfo]
- jonathan's query system
+ [c.prepend]
- vanilla's [list prepend]+[list strip]
- iemlib's [prepend]
- cyclone's [Prepend]


gfdar
IOhannes

___
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


Re: [PD] compil .py .pyo to pyext

2014-01-06 Thread Philippe Boisnard
Hi

I have understood, that for pyext, compilation is made by pyext itself
but I have a problem 
my script doesn't seem good 

try:
import pyext
except:
print ERROR: This script must be loaded by the PD/Max pyext external



class basededonne(pyext._class):


 # number of inlets and outlets
_inlets=1
_outlets=1
# methods for all inlets
index=0
fichier=empty

def symbol_1(self,fich):
chaines=str(fich)
self.fichier = 
open(/Applications/puredata/67-vazulkaNew/Vazulka_Janvier_4/basedonnee.txt,'r')
for ligne in self.fichier:
for chaine in self.chaines:
if chaine in ligne:
self._outlet(ligne)


my version of pyext and python 


py/pyext 0.2.2 - python script objects
(C)2002-2011 Thomas Grill - http://g.org/ext

using Python 2.7.1 (r271:86832, Jul 31 2011, 19:30:53) 
[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)]

Python array support enabled


best regards

philippe


Le 6 janv. 2014 à 22:18, Thomas Grill a écrit :

 Hi Philippe,
 what means it is not good exactly? That it doesn't work?
 My main question would be what you expect from the compilation to .pyo.
 It's not a compilation to machine code as e.g. with C languages but rather a 
 mere translation to bytecode. It doesn't bring any speedups for execution, 
 just a tiny bit (negligible i would say) when loading the script.
 all the best, Thomas
 
 
 2014/1/6 Philippe Boisnard philem...@mac.com
 Hi, and HNY
 
 I search to compile a python script (.py = .pyo)
 but the result is not good
 
 In fact I use :
 python -O -m compileall basedonne.py
 result : basedonne.pyo, but it's not good for pyext
 
 I have tested with simple.py for example, but it's the same result, my 
 simple.pyo is not good
 
 
 I don't know where is my problem ?
 it's not pyext, because I have a good python script
 I think that it's my compilation
 
 
 best regards
 
 p
 
 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management - 
 http://lists.puredata.info/listinfo/pd-list
 
 
 
 -- 
 Thomas Grill
 http://g.org

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