Re: [PD] Knowing if Pd is in Edit mode when instantiating an object (was Query if Pd is in Edit mode for a GUI)

2019-11-27 Thread IOhannes m zmölnig
Am 27. November 2019 20:53:46 MEZ schrieb Alexandre Torres Porres 
:
>>
>> Em ter, 26 de fev de 2019 às 04:28, Liam Goodacre
>
>> escreveu:
>>
>>> My guess is that the message stream that [receivecanvas] taps into
>would
>>> let you listen to the edit-mode state changes, but not query its
>state.
>>>
>>
>Hi, earlier this year I was asking about querying edit status and Liam
>told
>me about [receivecanvas], the problem is that it only tells you about
>when
>the status changes. Now, if I create an object when I'm in edit mode,
>it
>won't know, and when I open a patch not in edit mode, it won't know
>either.
>
>So how can I know about it?


what do you want to do in the first place?

whenever the user creates an object, pd will switch to edit mode...



mfg.hft.fsl
IOhannes


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


Re: [PD] Msys build problems

2019-11-27 Thread Andrew Lyons
Ok - that helped, but ./configure still couldn't find any audio/midi
libraries, and defaulted to OSS.

>From the asio/README.txt I noted that the root folder has to be
called "pure-data". That's not how it comes down from github
(pure-data-master), but I renamed my folder, and immediately all audio
libraries were found.

I then had to clean the portaudio folders, but then got a successful build.

Thanks!

=
Andrew D Lyons | Tools Developer | http://www.tstex.com
=


On Wed, 27 Nov 2019 at 19:17, Lucas Cordiviola 
wrote:

> Hi,
>
> See http://puredata.info/docs/developer/WindowsMinGW
>
> :)
>
> Mensaje telepatico asistido por maquinas.
>
> On 11/28/2019 12:01 AM, Andrew Lyons wrote:
>
> Hi!
>
> PD newbie here. Tried to build latest pd for Win10 with Msys2 using
> guidelines in install.txt from git drop. Ran into some problems:
>
>- No mention of autogen.sh in install.txt
>- No C compiler in msys2 by default. pacman -S msys/gcc was the
>correct one (after a few tries).
>- Failed trying to link OSS. Tried ./configure --disable-oss - but no
>other midi or audio APIs found, and s_audio.c still looked for OSS.
>
> It's not critical that this build works for me right now, so FYI only.
>
> Thanks
>
> =
> Andrew D Lyons | Tools Developer | http://www.tstex.com
> =
>
> ___pd-l...@lists.iem.at mailing 
> list
> UNSUBSCRIBE and account-management -> 
> https://lists.puredata.info/listinfo/pd-list
>
>
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] Msys build problems

2019-11-27 Thread Lucas Cordiviola
Hi,

See http://puredata.info/docs/developer/WindowsMinGW

:)

Mensaje telepatico asistido por maquinas.

On 11/28/2019 12:01 AM, Andrew Lyons wrote:
Hi!

PD newbie here. Tried to build latest pd for Win10 with Msys2 using guidelines 
in install.txt from git drop. Ran into some problems:

  *   No mention of autogen.sh in install.txt
  *   No C compiler in msys2 by default. pacman -S msys/gcc was the correct one 
(after a few tries).
  *   Failed trying to link OSS. Tried ./configure --disable-oss - but no other 
midi or audio APIs found, and s_audio.c still looked for OSS.

It's not critical that this build works for me right now, so FYI only.

Thanks

=
Andrew D Lyons | Tools Developer | http://www.tstex.com
=



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

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


[PD] Msys build problems

2019-11-27 Thread Andrew Lyons
Hi!

PD newbie here. Tried to build latest pd for Win10 with Msys2 using
guidelines in install.txt from git drop. Ran into some problems:

   - No mention of autogen.sh in install.txt
   - No C compiler in msys2 by default. pacman -S msys/gcc was the correct
   one (after a few tries).
   - Failed trying to link OSS. Tried ./configure --disable-oss - but no
   other midi or audio APIs found, and s_audio.c still looked for OSS.

It's not critical that this build works for me right now, so FYI only.

Thanks

=
Andrew D Lyons | Tools Developer | http://www.tstex.com
=
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] Symbol delay

2019-11-27 Thread oliver

Csaba Láng wrote:

Dearest list,

is there a way to delay a symbol like pipe does with number?


actually you can delay anything with a little abstraction

attached is my own personal approach (using vanilla objects only)




best

oliver
#N canvas 535 90 677 469 10;
#X obj 292 179 t b l b, f 33;
#X obj 292 152 list;
#X obj 40 19 inlet;
#X obj 343 83 inlet;
#X text 383 82 delay time;
#X text 81 18 message in;
#X obj 353 420 outlet;
#X obj 300 16 loadbang;
#X obj 300 41 f \$1;
#X obj 343 151 max 0;
#X obj 461 232 list prepend;
#X obj 292 218 f;
#X obj 530 178 f;
#X obj 558 178 + 1;
#X msg 545 151 0;
#X obj 530 202 t f f;
#X obj 575 202 sel 9;
#X obj 67 250 text define \$0-p;
#X obj 461 254 text set \$0-p 99;
#X obj 292 345 text delete \$0-p;
#X obj 319 314 text get \$0-p;
#X obj 292 264 text search \$0-p;
#X obj 292 289 t f f;
#X obj 319 393 list split 1;
#X obj 292 240 pipe 5000;
#X msg 67 223 clear;
#X obj 40 72 t b b;
#X obj 127 326 text sequence \$0-p;
#X msg 127 299 line 0 \, bang, f 13;
#X obj 40 43 route clear stop flush;
#X connect 0 0 11 0;
#X connect 0 1 10 0;
#X connect 0 2 12 0;
#X connect 1 0 0 0;
#X connect 2 0 29 0;
#X connect 3 0 9 0;
#X connect 7 0 8 0;
#X connect 7 0 14 0;
#X connect 7 0 25 0;
#X connect 8 0 9 0;
#X connect 9 0 24 1;
#X connect 10 0 18 0;
#X connect 11 0 24 0;
#X connect 12 0 13 0;
#X connect 12 0 15 0;
#X connect 13 0 12 1;
#X connect 14 0 12 1;
#X connect 15 0 10 1;
#X connect 15 0 11 1;
#X connect 15 1 16 0;
#X connect 16 0 14 0;
#X connect 20 0 23 0;
#X connect 21 0 22 0;
#X connect 22 0 19 0;
#X connect 22 1 20 0;
#X connect 23 1 6 0;
#X connect 24 0 21 0;
#X connect 25 0 24 0;
#X connect 25 0 17 0;
#X connect 26 0 14 0;
#X connect 26 1 25 0;
#X connect 27 0 23 0;
#X connect 27 1 26 0;
#X connect 28 0 27 0;
#X connect 29 0 26 0;
#X connect 29 1 26 0;
#X connect 29 2 28 0;
#X connect 29 3 1 0;
#N canvas 535 50 624 436 10;
#X obj 284 39 namecanvas \$0-ol_help;
#N canvas 173 255 626 727 init 0;
#X obj 470 388 cnv 8 120 25 empty empty empty 20 12 0 14 -204786 -66577
0;
#X obj 97 553 cnv 8 300 80 empty empty empty 20 12 0 14 -204786 -66577
0;
#X obj 461 76 cnv 8 120 26 empty empty empty 20 12 0 14 -204786 -66577
0;
#X obj 60 287 cnv 8 200 25 empty empty empty 20 12 0 14 -204786 -66577
0;
#X msg 245 33 vis 0 \, relocate \$3x\$4+0+0 0x0+\$1+\$2 \, vis 1 \,
editmode 0;
#X obj 245 55 s \$0-ol_help;
#X msg 118 64 520 50 600 400;
#X obj 118 219 s \$0-frame-r;
#X floatatom 118 176 5 0 0 0 - - -, f 5;
#X obj 28 450 s \$0-title-r;
#X msg 98 406 label \$1;
#X floatatom 263 143 5 0 0 0 - - -, f 5;
#X obj 263 183 s \$0-bgnd-r;
#X obj 56 119 del 10;
#X obj 56 99 t b b;
#X text 244 80 1.) set pos and size of main window;
#X msg 172 115 \$3;
#X obj 118 132 f;
#X text 151 143 minus frame sizes, f 11;
#X text 124 266 2.) set name of title;
#X obj 56 141 s \$0-lb;
#X obj 118 107 r \$0-lb;
#X obj 29 244 r \$0-lb;
#X obj 29 406 unpack 0 s;
#X text 175 530 3.) set description;
#X obj 263 262 s \$0-frame2-r;
#X obj 182 463 s \$0-text1-r;
#X obj 29 626 cnv 3 68 15 empty empty empty 2 7 0 10 -257985 -66577
0;
#N canvas 341 335 425 542 tosymbol 0;
#X obj 67 94 list length;
#X obj 67 42 list;
#X obj 101 226 list, f 7;
#X obj 67 175 f, f 10;
#X obj 154 175 + 1;
#X obj 67 150 until;
#X obj 101 251 list split;
#X msg 157 94 0;
#X obj 139 276 list split 1;
#X obj 139 361 list fromsymbol;
#X obj 139 302 route symbol float;
#X obj 191 329 makefilename %s;
#X obj 139 435 textfile;
#X msg 202 94 clear;
#X obj 139 387 list prepend add2;
#X obj 67 201 t b b b f;
#X obj 79 276 + 1;
#X obj 67 122 t f f;
#X obj 78 300 <;
#X obj 20 335 spigot;
#X msg 20 394 add2 160;
#X obj 139 411 list trim;
#X obj 67 335 f;
#X obj 67 361 sel 0;
#X obj 139 463 list tosymbol;
#X obj 67 68 t l l b b, f 23;
#X text 184 486 symbol out with correct spaces;
#X text 57 2 string in;
#X msg 136 25 #/zi 3 4 oo ä;
#X msg 229 25 1.23457e+019;
#X floatatom 315 28 5 0 0 0 - - -, f 5;
#X obj 67 22 cnv 13 34 15 empty empty empty 2 2 0 9 -163816 -66577
0;
#X obj 139 487 cnv 14 40 15 empty empty empty 2 2 0 9 -163840 -66577
0;
#X obj 67 21 inlet;
#X obj 139 486 outlet;
#X connect 0 0 17 0;
#X connect 1 0 25 0;
#X connect 2 0 6 0;
#X connect 3 0 4 0;
#X connect 3 0 15 0;
#X connect 4 0 3 1;
#X connect 5 0 3 0;
#X connect 6 1 8 0;
#X connect 7 0 3 1;
#X connect 8 0 10 0;
#X connect 9 0 14 0;
#X connect 10 0 9 0;
#X connect 10 1 11 0;
#X connect 11 0 9 0;
#X connect 12 0 24 0;
#X connect 13 0 12 0;
#X connect 14 0 21 0;
#X connect 15 0 22 0;
#X connect 15 1 19 0;
#X connect 15 2 2 0;
#X connect 15 3 6 1;
#X connect 15 3 16 0;
#X connect 16 0 18 0;
#X connect 17 0 5 0;
#X connect 17 1 18 1;
#X connect 18 0 19 1;
#X connect 18 0 22 1;
#X connect 19 0 20 0;
#X connect 20 0 12 0;
#X connect 21 0 12 0;
#X connect 22 0 23 0;
#X connect 23 0 12 0;
#X connect 24 0 34 0;
#X connect 25 0 0 0;
#X connect 25 1 2 1;
#X connect 25 2 7 0;
#X connect 25 3 13 0;
#X connect 28 0 1 0;
#X connect 29 0 1 0;
#X connect 30 0 1 0;
#X connect 33 0 1 0;
#X 

Re: [PD] Symbol delay

2019-11-27 Thread Jack
Hello,

[pipe s 2000] for example ?
++

Jack



Le 27/11/2019 à 22:11, Csaba Láng a écrit :
> Dearest list,
> 
> is there a way to delay a symbol like pipe does with number?
> 
> Best,
> Popesz
> 
> ___
> Pd-list@lists.iem.at mailing list
> UNSUBSCRIBE and account-management -> 
> https://lists.puredata.info/listinfo/pd-list
> 




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


Re: [PD] Symbol delay

2019-11-27 Thread Alexandre Torres Porres
[pipe] works with symbols :)

Em qua., 27 de nov. de 2019 às 18:14, Csaba Láng 
escreveu:

> Dearest list,
>
> is there a way to delay a symbol like pipe does with number?
>
> Best,
> Popesz
> ___
> Pd-list@lists.iem.at mailing list
> UNSUBSCRIBE and account-management ->
> https://lists.puredata.info/listinfo/pd-list
>
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


[PD] Symbol delay

2019-11-27 Thread Csaba Láng
Dearest list,

is there a way to delay a symbol like pipe does with number?

Best,
Popesz
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


[PD] Knowing if Pd is in Edit mode when instantiating an object (was Query if Pd is in Edit mode for a GUI)

2019-11-27 Thread Alexandre Torres Porres
>
> Em ter, 26 de fev de 2019 às 04:28, Liam Goodacre 
> escreveu:
>
>> My guess is that the message stream that [receivecanvas] taps into would
>> let you listen to the edit-mode state changes, but not query its state.
>>
>
Hi, earlier this year I was asking about querying edit status and Liam told
me about [receivecanvas], the problem is that it only tells you about when
the status changes. Now, if I create an object when I'm in edit mode, it
won't know, and when I open a patch not in edit mode, it won't know either.

So how can I know about it?

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


Re: [PD] configurable short-cut: WAS Re: find last error brings up subpatch or abstraction, but how to find parent?

2019-11-27 Thread Christof Ressi
> power users would profit while a larger group of people would get
> confused more easily and find it harder to get help.

Most non-trivial applications have configurable shortcuts and it doesn't seem 
to cause much troubles. Can you imagine a text editor, DAW or video editing 
software without configurable shortcuts? Regular users simply stick with the 
default shortcuts anyway. 

I think Cyrille didn't really argue against user configurable shortcuts:

> > having user-configurable shortcut can be nice, but having default
> > shortcut that works for 90% of users seem more important.

I think the takeaway is: have good default shortcuts + make them configurable

Christof



> Gesendet: Mittwoch, 27. November 2019 um 13:30 Uhr
> Von: "Roman Haefeli" 
> An: pd-list@lists.iem.at
> Betreff: Re: [PD] configurable short-cut: WAS Re: find last error brings up 
> subpatch or abstraction, but how to find parent?
>
> On Wed, 2019-11-27 at 10:24 +0100, cyrille henry wrote:
> > 
> > Le 26/11/2019 à 12:15, IOhannes m zmölnig a écrit :
> > > On 11/25/19 9:00 AM, Roman Haefeli wrote:
> > > > Personally, I use this so often it would warrant its own keyboard
> > > > shortcut.
> > > 
> > > i use this so seldomly, that i wouldn't have thought about adding a
> > > keyboard shortcut.
> > > 
> > > anyhow: i think the way forward is to make the shortcuts
> > > user-configurable, so everybody can map whatever they prefer to any
> > > menu-option.
> > 
> > I personally use pd on lot's of different computer, including
> > computers that are not mine.
> > having user-configurable shortcut can be nice, but having default
> > shortcut that works for 90% of users seem more important.
> 
> I tend to join Cyrilles's camp here. I value consistency across
> installations more than configurability. I believe a small subset of Pd
> power users would profit while a larger group of people would get
> confused more easily and find it harder to get help.
> 
> Roman
> 
> 
> 
> 
> 
> ___
> Pd-list@lists.iem.at mailing list
> UNSUBSCRIBE and account-management -> 
> https://lists.puredata.info/listinfo/pd-list
>



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


Re: [PD] opening patch from pd message

2019-11-27 Thread Roman Haefeli
On Tue, 2019-11-26 at 18:33 +0100, IOhannes m zmölnig wrote:
> 
> # anatomy of a message
> 
> i think it is pretty easy:
> - any message in pd-land consists of a single selector and any number
> of
> atoms (including none).
> - an atom can be a number, a symbol, a gpointer and "other things"
> - a selector must always be a symbol.
> some special selectors need a fixed number of atoms, of a fixed type
> ("float" and "symbol" require exactly 1 atom of the resp. type;
> "bang"
> requires exactly 0 atoms); but these are special cases.
> 
> dollar-arguments in msgboxes (e.g. [open $1.wav() always refer to the
> atoms.
> 
> ## implicit selectors
> 
> if you have a msgbox [foo bar 1(, then this is a message with the
> selector "foo" and two atoms, a symbol "bar" and a number "1".
> 
> if you have a msgbox [1(, then the 1st element would be "1" (a
> number).
> since messages must always start with a selector (a symbol), it
> cannot
> start with the number "1". and Pd implicitely adds a default selector
> to
> this message. since the msg only consists of a single number atom,
> the
> implicitely added selector is "float".
> if you have a msgbox [1 bar foo(, we also miss a (symbol) selector,
> but
> the "float" selector requires a single atom (and our message has 3
> atoms, once we add a selector), so Pd adds a "list" selector.
> 
> # why do we need selectors?
> 
> so why are messages like they are in the first place?
> each object in Pd has a number of methods (functions that interact
> with
> the internal state of the object). objects and methods are something
> we
> know from object-oriented programming (C++, ...)
> in Pd, objects communicate via messages - and communication boils
> down
> to calling methods in other objects.
> so messages need some way to encode which method of the downstream
> object is being called: and this is what the selector does.
> e.g. an object might have a method for messages with the "foo"-
> selector
> and messages with the "bang" selector, but no messages with the
> "float"
> selector.
> 
> so if you want to stop a delay, you want to call the "stop" method of
> the [delay] object, thus sending a [stop( message (selector is
> "stop",
> no atoms).

This sums up the nature of Pd's message much more comprehensively than
what can be found in Pd's own HTML documentation, I find at least.

Roman




signature.asc
Description: This is a digitally signed message part
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] configurable short-cut: WAS Re: find last error brings up subpatch or abstraction, but how to find parent?

2019-11-27 Thread Roman Haefeli
On Wed, 2019-11-27 at 10:24 +0100, cyrille henry wrote:
> 
> Le 26/11/2019 à 12:15, IOhannes m zmölnig a écrit :
> > On 11/25/19 9:00 AM, Roman Haefeli wrote:
> > > Personally, I use this so often it would warrant its own keyboard
> > > shortcut.
> > 
> > i use this so seldomly, that i wouldn't have thought about adding a
> > keyboard shortcut.
> > 
> > anyhow: i think the way forward is to make the shortcuts
> > user-configurable, so everybody can map whatever they prefer to any
> > menu-option.
> 
> I personally use pd on lot's of different computer, including
> computers that are not mine.
> having user-configurable shortcut can be nice, but having default
> shortcut that works for 90% of users seem more important.

I tend to join Cyrilles's camp here. I value consistency across
installations more than configurability. I believe a small subset of Pd
power users would profit while a larger group of people would get
confused more easily and find it harder to get help.

Roman







signature.asc
Description: This is a digitally signed message part
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


[PD] configurable short-cut: WAS Re: find last error brings up subpatch or abstraction, but how to find parent?

2019-11-27 Thread cyrille henry



Le 26/11/2019 à 12:15, IOhannes m zmölnig a écrit :

On 11/25/19 9:00 AM, Roman Haefeli wrote:

Personally, I use this so often it would warrant its own keyboard
shortcut.


i use this so seldomly, that i wouldn't have thought about adding a
keyboard shortcut.

anyhow: i think the way forward is to make the shortcuts
user-configurable, so everybody can map whatever they prefer to any
menu-option.


I personally use pd on lot's of different computer, including computers that 
are not mine.
having user-configurable shortcut can be nice, but having default shortcut that 
works for 90% of users seem more important.

Cheers
Cyrille



fdsamr
IOhannes


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





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