Re: [PD] here I go again..dynamic abstractions

2009-02-07 Thread Frank Barknecht
Hallo,
Georg Werner hat gesagt: // Georg Werner wrote:

 can somebody explain why there is a 3rd rule of $-expansion: 'there is 
 no $0 in message-boxes'.
 i stumble every now and then about it and it is IMHO not 
 self-explanatory. it is not hard to implement and wouldn't make problems 
 with existing patches - because $0 is never used in messages. and would 
 make things easier not only for beginners.

Actually this topic is discussed about once or twice a year on pd-list
and pd-dev, so for deeper info check the archive.

Anyway: $0 is a property of the surrounding abstraction or canvas, as
are $1,...  in object arguments. The $1,... in message boxes however
are properties of the messages sent around and reaching a message box.
While the value of dollar variable in message boxes changes all the
time, the value of the canvas-dollars never change.

Messages don't have anything comparable to the canvas' $0. 

A possible alternative use for $0 in messages would be the selector
(list, symbol, ...) as that is the thing before $1, but
implementing that could be even more confusing to beginners.

Ciao
-- 
 Frank BarknechtDo You RjDj.me?  _ __footils.org__

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


[PD] limit in number of sssad abstraction

2009-02-07 Thread punchik punchik
hello list, is there is a limit in the number of sssad abstractions that can be 
used in a patch, im using 50 sssad abstractions in a patch and when i save  to 
a text file my pd crashes(but it still save fine the file), and then when i try 
to load the textfile- preset it loads fine but i get stack overflow messages, 
when my patch had 20 sssad abstractions it used to work fine.


why is that? Is the problem the number of sssad abstractions im using?

is there anyway of fixing this?
Do anybody have any idea?
im using pd extended 0.40.3

many thanks

pun.





  

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


Re: [PD] escape space character

2009-02-07 Thread y
Yeah I know some ways to get around this with extended but I'm more into 
the vanilla-way-of-life =)
I would love having a quoting method and/or an escaping character like \ .
Of course I have no idea about the difficulty to implement that and I 
just found a message from Herr Puckette saying:

I'm against adding a general escape mechanism, because I think it's 
better to find a design that obviate teh need for it...

I still think that
[open my\ file.txt(
or
[open my file.txt(
is more elegant than dealing with a couple of messages and something like
[addspace(
in between though...

Cheers,

_y



Mike McGonagle wrote:
 Currently, there is no way to do an escape. There is some discussion
 about trying to implement a quoting method that would allows
 spaces...

 I attached an example of how you can convert a list of symbols (and
 numbers) into a single symbol, which would include spaces. It depends
 on an external from 'zexy' (part of the extended stuff).
   


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


Re: [PD] limit in number of sssad abstraction

2009-02-07 Thread Frank Barknecht
Hallo,
punchik punchik hat gesagt: // punchik punchik wrote:

 hello list, is there is a limit in the number of sssad abstractions that can 
 be used in a patch, im using 50 sssad abstractions in a patch and when i save 
  to a text file my pd crashes(but it still save fine the file), and then when 
 i try to load the textfile- preset it loads fine but i get stack overflow 
 messages, when my patch had 20 sssad abstractions it used to work fine.
 
 why is that? Is the problem the number of sssad abstractions im using?

Could you send an example patch that demonstrates the problem? Generally
using 50 sssad's should be fine. For example the s_fm4 from the RjDj
library uses 40 sssad's in one object without problems - and I usually
use more sssad-enabled objects in paralell to that.

Ciao
-- 
Frank

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


Re: [PD] escape space character

2009-02-07 Thread Jack
I just make this abs and help to transform message with space to  
symbol using pure-pd objects.

Based on the list-abs list-l2s.
++

Jack


absforspace-help.pd
Description: Binary data


absforspace.pd
Description: Binary data



Le 7 févr. 09 à 14:14, y a écrit :

Yeah I know some ways to get around this with extended but I'm more  
into

the vanilla-way-of-life =)
I would love having a quoting method and/or an escaping character  
like \ .

Of course I have no idea about the difficulty to implement that and I
just found a message from Herr Puckette saying:

I'm against adding a general escape mechanism, because I think it's
better to find a design that obviate teh need for it...

I still think that
[open my\ file.txt(
or
[open my file.txt(
is more elegant than dealing with a couple of messages and  
something like

[addspace(
in between though...

Cheers,

_y



Mike McGonagle wrote:

Currently, there is no way to do an escape. There is some discussion
about trying to implement a quoting method that would allows
spaces...

I attached an example of how you can convert a list of symbols (and
numbers) into a single symbol, which would include spaces. It depends
on an external from 'zexy' (part of the extended stuff).




___
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] escape space character

2009-02-07 Thread y
Thanks for your effort Jack, but somehow I cannot get your abstraction
working.
It also does not work if I try with a basic example without spaces in
the filename...
Am I missing something ?

(And [symbol] is part of pddp)

Cheers,
_y


Jack wrote:
 I just make this abs and help to transform message with space to 
 symbol using pure-pd objects.
 Based on the list-abs list-l2s.
 ++


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


[PD] turn off gem subpatches

2009-02-07 Thread punchik punchik
Hello! i have a patch that has 3 gem subpatches, each one has complex iterative 
structures , since each one should be visualized at a time, is it possible to 
turn off the 2 subpatches that are not viewed at any time? im asking this 
because having this 3 subpatches consumes all of my cpu because each one have a 
lot of repeats objects, is it possible to turn off the subpatches im not using? 
ive tried to turn off the gemhead sending a 0 to it and  the structures doesnt 
appear anymore but they are still consuming my cpu , is there any way of 
turning off this gem processes- subpatches?

any advice would be appreaciated

thanks

pun.


  

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


Re: [PD] escape space character

2009-02-07 Thread Steffen Juul

On 07/02/2009, at 17.38, y wrote:

 Am I missing something ?

does the Pd console tell you that list-drip was not created? list- 
drip is part of list-abs.

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


Re: [PD] escape space character

2009-02-07 Thread Jack

Oops, of course !
I forget to attach it.
++

Jack


list-drip.pd
Description: Binary data



Le 7 févr. 09 à 18:00, Steffen Juul a écrit :



On 07/02/2009, at 17.38, y wrote:


Am I missing something ?


does the Pd console tell you that list-drip was not created? list-
drip is part of list-abs.

___
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] turn off gem subpatches

2009-02-07 Thread Jack
Hmm, it's weird !
Sending 0 to [gemhead] should stop all the process in the GEM chain.
Maybe you have other process in your subpatch ?
++

Jack


Le 7 févr. 09 à 17:43, punchik punchik a écrit :

 Hello! i have a patch that has 3 gem subpatches, each one has  
 complex iterative structures , since each one should be visualized  
 at a time, is it possible to turn off the 2 subpatches that are not  
 viewed at any time? im asking this because having this 3 subpatches  
 consumes all of my cpu because each one have a lot of repeats  
 objects, is it possible to turn off the subpatches im not using?  
 ive tried to turn off the gemhead sending a 0 to it and  the  
 structures doesnt appear anymore but they are still consuming my  
 cpu , is there any way of turning off this gem processes- subpatches?

 any advice would be appreaciated

 thanks

 pun.




 ___
 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] turn off gem subpatches

2009-02-07 Thread marius schebella
punchik punchik wrote:
 Hello! i have a patch that has 3 gem subpatches, each one has complex 
 iterative structures , since each one should be visualized at a time, is it 
 possible to turn off the 2 subpatches that are not viewed at any time? im 
 asking this because having this 3 subpatches consumes all of my cpu because 
 each one have a lot of repeats objects, is it possible to turn off the 
 subpatches im not using? ive tried to turn off the gemhead sending a 0 to it 
 and  the structures doesnt appear anymore but they are still consuming my cpu 
 , is there any way of turning off this gem processes- subpatches?
 
 any advice would be appreaciated

do your subpatches have a gemhead?
you can turn off the rendering of a gemhead by feeding it a simple 0, 
use for example a toggle to turn them on/off.
marius.


 
 thanks
 
 pun.
 
 
   
 
 ___
 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] Creating a basic oscillator from first principles?

2009-02-07 Thread Geoff

Hi
I am very new to PD and DSP concepts.
So this will be hopelessly, awfully, basic :)

I have just started chapter 3 of 'The theory and technique of  
electronic music'

which is excellent

However it raises a million questions in my head.. one of which  
is how do I create an oscillator myself?


Its really bugging me everytime I create an example from the book. I  
feel I need to understand the fundamentals of how the basic objects  
are created too.


It seems too easy for me to just use the phasor object provided,

So I thought I would struggle through it and try to work it out.

This is how I am thinking about it.
If I want to create a sawtooth oscillator then this is just a ramp  
function i.e. a number that increases by 1 each time.
therefore if I use a simple float that, that adds 1 each time and a  
modulus % object to cap it, then I will have my repeating ramp wave :)


However I am triggering it by the metro object which is way too slow,  
how can I send a bang to the float object say every sample? or alot  
quicker than one millisecond?


My thinking is if I could speed up the bangs to a sample level I  
would then have more scope to then actually tune it, and create the  
shape I want. However I am sure to do this well would require working  
at a higher sample rate, but I am not really sure how to proceed.


Below is my appalling attempt :) I use the number box to change pitch.

Any guidance appreciated
Cheers
Geoff



#N canvas 325 62 681 388 10;
#X obj 119 69 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
-1;
#X obj 121 96 f;
#X obj 181 116 + 1;
#X obj 115 17 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
-1;
#X obj 127 238 dac~;
#X obj 118 46 metro 1;
#X floatatom 187 163 5 0 0 0 - - -;
#X obj 115 160 %;
#X obj 114 199 /;
#X connect 0 0 1 0;
#X connect 1 0 2 0;
#X connect 1 0 7 0;
#X connect 2 0 1 1;
#X connect 3 0 5 0;
#X connect 5 0 0 0;
#X connect 6 0 7 1;
#X connect 6 0 8 1;
#X connect 7 0 8 0;
#X connect 8 0 4 0; ___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] escape space character

2009-02-07 Thread y
No, I have list-abs in my path.
I will try to find some time later to post a non-working example patch 
(but I must miss the obvious here...).

Cheers,
_y


Jack wrote:
 Oops, of course !
 I forget to attach it.
 ++

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


Re: [PD] Creating a basic oscillator from first principles?

2009-02-07 Thread Frank Barknecht
Hallo,
Geoff hat gesagt: // Geoff wrote:

 Its really bugging me everytime I create an example from the book. I  
 feel I need to understand the fundamentals of how the basic objects  
 are created too.
 
 It seems too easy for me to just use the phasor object provided,

But that's much more effective.

 So I thought I would struggle through it and try to work it out.
 
 This is how I am thinking about it.
 If I want to create a sawtooth oscillator then this is just a ramp  
 function i.e. a number that increases by 1 each time.
 therefore if I use a simple float that, that adds 1 each time and a  
 modulus % object to cap it, then I will have my repeating ramp wave :)

Yes, that's correct. You should not use a graphical bang here, as that
is a huge (!) waste of ressources.

Anyway generally you can make your approach a bit simpler, too. Instead
of always adding 1 and scaling plus restricting your counter to a large
value, you can also add a smaller value and restrict the output to lie
between 0 and 1. 

Example: Say you add one and always go to f=100: 

x[n+1] = [(x[n] + 1) % f] / f
x[n+1] = [(x[n] + 1) % 100] / 100

Then instead you can also do this: 

x[n+1] = [(x[n]/f + 1/f) % f/f] 
x[n+1] = (x[n]/100 + 1/100) % 1

or, as x[n] is restricted anyway do: 

phasor = (x[n] + 1/100) % 1

The 1/f part is called the phase increment.

Note that you need to use a kind of fmod for floating point numbers
here, i.e. replace the % with a calculation to get the fractional
part:

 fractional part of f = f - int(f)

Also add an additional 1 if you deal with negative numbers.

 However I am triggering it by the metro object which is way too slow,  
 how can I send a bang to the float object say every sample? or alot  
 quicker than one millisecond?

Use a [phasor~] ;-)

You can also built your own fast metro using feedbacked [delay] objects.
I posted one a while ago here.

Ciao
-- 
Frank

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


Re: [PD] limit in number of sssad abstraction

2009-02-07 Thread punchik punchik

Hi Frank, i discovered that the problem is not something specific in my patch , 
it also happenes in your sssad-example's patch: if you first load a preset and 
then you try to save another one it always crashes. So if you first save a 
preset and then load it , it works fine, but if you want to save a new preset 
without closing and reopening pd, it crashes, any idea of how to fix this?

thanks

Pun.

--- On Sat, 2/7/09, Frank Barknecht f...@footils.org wrote:

 From: Frank Barknecht f...@footils.org
 Subject: Re: [PD] limit in number of sssad abstraction
 To: pd-list@iem.at
 Date: Saturday, February 7, 2009, 8:40 AM
 Hallo,
 punchik punchik hat gesagt: // punchik punchik wrote:
 
  hello list, is there is a limit in the number of sssad
 abstractions that can be used in a patch, im using 50 sssad
 abstractions in a patch and when i save  to a text file my
 pd crashes(but it still save fine the file), and then when i
 try to load the textfile- preset it loads fine but i get
 stack overflow messages, when my patch had 20 sssad
 abstractions it used to work fine.
  
  why is that? Is the problem the number of sssad
 abstractions im using?
 
 Could you send an example patch that demonstrates the
 problem? Generally
 using 50 sssad's should be fine. For example the s_fm4
 from the RjDj
 library uses 40 sssad's in one object without problems
 - and I usually
 use more sssad-enabled objects in paralell to that.
 
 Ciao
 -- 
 Frank
 
 ___
 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] smooth without dsp objects

2009-02-07 Thread punchik punchik
Hi , is there any version of the smooth abstraction but without dsp objects?
i want to use for smoothing change of parameters on gem visuals and i would 
like to have the pd dsp turned off.

Any idea of an abstraction that does the same without ~ objects or an object? 
if not, which is the best way to build one that doesnt consume too much cpu?


thanks


pun..


  

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


[PD] [PD-announce] Formations Pure Data

2009-02-07 Thread Jack
Hello list,

Sorry only in french :

Il se tiendra le 14 et 15 février prochain deux workshops Pure Data à  
Mains d'Oeuvres à Saint-Ouen.
Le workshop du 14 février s'adressera aux débutants et celui du 15  
février aux personnes qui connaissent déjà l'environnement.
11H  18H Salle STAR TREK (deuxième étage)
Par jour : 20 EUR TP - 15 € TR (Audoniens, chômeurs, étudiants, Rmistes)

Plus d'infos sur :
http://www.craslab.org

Pour les inscriptions :
formati...@craslab.org
++

Jack



___
Pd-announce mailing list
pd-annou...@iem.at
http://lists.puredata.info/listinfo/pd-announce

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


Re: [PD] Creating a basic oscillator from first principles?

2009-02-07 Thread Geoff
Thanks Frank this all makes sense up to

 Note that you need to use a kind of fmod for floating point numbers
 here, i.e. replace the % with a calculation to get the fractional
 part:

  fractional part of f = f - int(f)

 Also add an additional 1 if you deal with negative numbers.


I can see from experimenting in PD that % doesn't want to behave the  
same for decimal numbers.
i.e. if I set % to 1 and increment (x[n] + 1/100) % 1
nothing happens
so I need some sort of fmod to deal with the fact that now the values  
I am generating range from 0 to 1 in 0.01 increments.

could you expand on

fractional part of f = f - int(f)

i.e. because I need to limit things to 1 the % 1 is not going to work  
so I need a different function that will do the same thing for  
decimals limited to 1.

how would I approach that in PD?


Thanks for the input
geoff




 However I am triggering it by the metro object which is way too slow,
 how can I send a bang to the float object say every sample? or alot
 quicker than one millisecond?

 Use a [phasor~] ;-)

 You can also built your own fast metro using feedbacked [delay]  
 objects.
 I posted one a while ago here.

 Ciao
 -- 
 Frank

 ___
 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] turn off gem subpatches

2009-02-07 Thread IOhannes m zmoelnig
On Sat, Feb 07, 2009 at 06:16:49PM +0100, marius schebella wrote:
 do your subpatches have a gemhead?
 you can turn off the rendering of a gemhead by feeding it a simple 0, 
 use for example a toggle to turn them on/off.

and you can turn off parts of the gemchain by putting an [spigot] into it

mfgasdr
IOhannes

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


[PD] another problem with pd extended

2009-02-07 Thread Martin Peach
Just installed Pd-0.41.4-extended-20090207-ubuntu-intrepid-i386.deb and 
get no menus in the main window, rendering the whole thing useless...
Message in terminal window says:
tcl: /usr/lib/pd/bin/pd.tk: can't open script
invalid command name pdtk_pd_startup

If I try to quit then a dialog pops up saying:
Error:invalid command name pd_tk_fix...

??

Martin

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


Re: [PD] smooth without dsp objects

2009-02-07 Thread Derek Holzer
What about using pack and line? Simplest way in my book...

D.


Quoting punchik punchik punch...@yahoo.com:

 Hi , is there any version of the smooth abstraction but without dsp objects?
 i want to use for smoothing change of parameters on gem visuals and   
 i would like to have the pd dsp turned off.

 Any idea of an abstraction that does the same without ~ objects or  
  an object? if not, which is the best way to build one that doesnt   
 consume too much cpu?





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


Re: [PD] Creating a basic oscillator from first principles?

2009-02-07 Thread Frank Barknecht
Hallo,
Geoff hat gesagt: // Geoff wrote:

 Thanks Frank this all makes sense up to
 
 Note that you need to use a kind of fmod for floating point numbers
 here, i.e. replace the % with a calculation to get the fractional
 part:
 
  fractional part of f = f - int(f)
 
 Also add an additional 1 if you deal with negative numbers.
 
 
 I can see from experimenting in PD that % doesn't want to behave the  
 same for decimal numbers.
 i.e. if I set % to 1 and increment (x[n] + 1/100) % 1
 nothing happens
 so I need some sort of fmod to deal with the fact that now the values  
 I am generating range from 0 to 1 in 0.01 increments.
 
 could you expand on
 
 fractional part of f = f - int(f)

it's simply: 

 [t f f]
 |  /
 |  [int]
 |  |
 [- ]

Check out the message phasor in the RjDj library for a full
implementation:
http://trac.rjdj.me/browser/trunk/rjlib/rj/c_mphasor.pd
http://trac.rjdj.me/browser/trunk/rjlib/rj/c_mphasor-help.pd

Ciao
-- 
Frank

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


Re: [PD] smooth without dsp objects

2009-02-07 Thread Martin Schied

Hi,


Hi , is there any version of the smooth abstraction but without dsp objects?

attached a simple remake of smooth.pd from pixeltango without ~ objects.

Martin


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