Re: [PD] Helvetica Font in Debian 9.5 - Location?

2020-09-29 Thread oliver

Alexandre Torres Porres wrote:
oh, and the workaround so far is that you can set a label without spaces 
via a message to access the properties windows back in the meantime ;)


Another workaround to consider is to replace a normal space with a 
non-breaking space (ASCII 160)


as a matter of fact there are several characters that are problematic 
for Tcl/Tk related objects (such as all vanilla GUI objects but also 
externals like "menubutton" etc.) and will produce an error message when 
you save/reopen a patch or try to edit it's properties.


as a personal "helper" i made myself a "TCL/TK save" patch to throw in 
before creating a label for a GUI, that exchanges all of those 
problematic characters with save ones. (see attachemnt).


of course this is only good for optical usecases (as it actually would 
also alter filenames etc.). it's really just a workaround and doesn't 
solve the underlying problem with Tcl/Tk


best

oliver
#N canvas 122 85 665 595 10;
#X obj 30 35 inlet;
#X obj 407 529 outlet;
#X obj 24 35 cnv 5 5 17 empty empty empty 20 12 0 14 -118750 -66577
0;
#X obj 401 529 cnv 5 5 17 empty empty empty 20 12 0 14 -102336 -66577
0;
#X obj 30 146 list;
#X obj 30 290 list store, f 13;
#X obj 30 195 until;
#X obj 30 221 f, f 7;
#X obj 92 221 + 1;
#X msg 30 264 get \$1 1;
#X obj 73 196 0;
#X obj 30 366 list fromsymbol;
#X obj 30 318 route symbol float;
#X obj 48 342 makefilename %s;
#X obj 30 243 t f f;
#X obj 30 503 list store, f 19;
#X obj 30 478 list trim;
#X obj 30 455 list prepend append;
#X obj 96 389 spigot;
#X obj 30 389 t l b, f 9;
#X obj 30 170 t b b a b, f 19;
#X obj 187 268 list store, f 14;
#X obj 187 196 until;
#X obj 187 220 f;
#X obj 228 220 + 1;
#X msg 187 245 get \$1 1;
#X msg 228 196 0;
#X text 219 150 list drip;
#X obj 407 464 list store, f 13;
#X obj 407 443 list trim;
#X obj 187 170 t b b l b, f 20;
#X symbolatom 505 18 10 0 0 0 - - -;
#X obj 505 32 list fromsymbol;
#X floatatom 505 49 5 0 0 0 - - -;
#X text 190 24 some characters are not allowed by PD \, some produce
a Tcl/Tk error., f 38;
#X text 455 297 36 (dollar);
#X text 191 84 91 (open bracket);
#X text 192 104 93 (close bracket);
#X text 192 114 123 (open brace);
#X text 192 124 125 (close brace);
#X msg 96 421 160;
#X text 130 413 non-breaking space, f 9;
#X text 324 65 replacement:;
#X text 192 66 original:;
#X obj 407 421 list prepend append;
#X msg 271 321 171;
#X msg 301 321 187;
#X msg 241 321 23;
#X text 545 298 35 (diamond);
#X text 455 269 34 (quote);
#X text 206 378 166 (dotted straight line);
#X text 325 84 25;
#X text 325 104 23;
#X text 325 124 187 (>>);
#X text 326 114 171 (<<);
#X text 455 283 35 (diamond);
#X text 545 283 164;
#X obj 407 488 list tosymbol;
#X obj 362 293 spigot 1;
#X obj 407 330 spigot;
#X obj 407 266 == 0;
#X obj 407 240 t f f, f 6;
#X text 455 208 0 = for symbols or internal useage), f 19;
#X obj 407 353 select 34 35 36;
#X msg 467 377 35;
#X msg 437 377 164;
#X msg 407 377 168;
#X text 456 241 1 = for canvas labels, f 25;
#X text 545 269 168;
#X msg 407 215 1;
#X msg 330 321 160;
#X text 355 322 !!!;
#X obj 407 188 loadbang;
#X msg 214 321 25;
#X msg 185 321 166;
#X text 188 347 |;
#X text 188 340 |;
#X obj 187 293 select -92 91 93 123 125 32;
#X text 182 364 was:92 (backslash);
#X text 20 6 anything in;
#X text 456 523 symbol with Tcl/Tk save characters out, f 20;
#X text 183 453 but since PD 0.51 backslashes are possible \, so no
need to escape them anymore, f 30;
#X connect 0 0 4 0;
#X connect 4 0 20 0;
#X connect 5 0 12 0;
#X connect 5 1 6 1;
#X connect 5 1 15 0;
#X connect 6 0 7 0;
#X connect 7 0 8 0;
#X connect 7 0 14 0;
#X connect 8 0 7 1;
#X connect 9 0 5 0;
#X connect 10 0 7 1;
#X connect 11 0 19 0;
#X connect 12 0 11 0;
#X connect 12 1 13 0;
#X connect 13 0 11 0;
#X connect 14 0 9 0;
#X connect 14 1 18 1;
#X connect 15 0 30 0;
#X connect 16 0 15 0;
#X connect 17 0 16 0;
#X connect 18 0 40 0;
#X connect 19 0 17 0;
#X connect 19 1 18 0;
#X connect 20 0 6 0;
#X connect 20 1 10 0;
#X connect 20 2 5 1;
#X connect 20 3 15 1;
#X connect 21 0 77 0;
#X connect 21 1 22 1;
#X connect 21 1 28 0;
#X connect 22 0 23 0;
#X connect 23 0 24 0;
#X connect 23 0 25 0;
#X connect 24 0 23 1;
#X connect 25 0 21 0;
#X connect 26 0 23 1;
#X connect 28 0 57 0;
#X connect 29 0 28 0;
#X connect 30 0 22 0;
#X connect 30 1 26 0;
#X connect 30 2 21 1;
#X connect 30 3 28 1;
#X connect 31 0 32 0;
#X connect 32 0 33 0;
#X connect 40 0 17 0;
#X connect 44 0 29 0;
#X connect 45 0 44 0;
#X connect 46 0 44 0;
#X connect 47 0 44 0;
#X connect 57 0 1 0;
#X connect 58 0 44 0;
#X connect 59 0 63 0;
#X connect 60 0 58 1;
#X connect 61 0 60 0;
#X connect 61 1 59 1;
#X connect 63 0 66 0;
#X connect 63 1 65 0;
#X connect 63 2 64 0;
#X connect 63 3 44 0;
#X connect 64 0 44 0;
#X connect 65 0 44 0;
#X connect 66 0 44 0;
#X connect 69 0 61 0;
#X connect 70 0 44 0;
#X connect 72 0 69 0;
#X connect 73 0 44 0;
#X connect 77 0 74 0;
#X connect 77 1 73 0;
#X connect 77 2 47 0;
#X connect 77 3 45 0;
#X connect 77 4 46 0;
#X 

Re: [PD] Helvetica Font in Debian 9.5 - Location?

2020-09-29 Thread Alexandre Torres Porres
oh, and the workaround so far is that you can set a label without spaces
via a message to access the properties windows back in the meantime ;)

Em ter., 29 de set. de 2020 às 16:18, matthew brandi 
escreveu:

> On 29/09/2020 18:57, Alexandre Torres Porres wrote:
> > Em ter., 29 de set. de 2020 às 14:26, matthew brandi escreveu:
> >
> > If I set a label with an escaped space per the help file, and I then
> right click on
> > the nbx and select properties, I get a TCL unhandled error message (and
> no
> > properties window):
> >
> >
> > I actually know that but didn't say it :/ sorry
>
> No problem, Alexandre. I should have guessed. ;)
>
> Best
>
> m
>
> --
> matthew brandi | 020 8882 4616
>
>
>
> ___
> 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] Helvetica Font in Debian 9.5 - Location?

2020-09-29 Thread matthew brandi
On 29/09/2020 18:57, Alexandre Torres Porres wrote:
> Em ter., 29 de set. de 2020 às 14:26, matthew brandi escreveu:
> 
> If I set a label with an escaped space per the help file, and I then right 
> click on
> the nbx and select properties, I get a TCL unhandled error message (and no 
> properties window):
> 
> 
> I actually know that but didn't say it :/ sorry

No problem, Alexandre. I should have guessed. ;)

Best

m

-- 
matthew brandi | 020 8882 4616



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


Re: [PD] Helvetica Font in Debian 9.5 - Location?

2020-09-29 Thread Alexandre Torres Porres
Em ter., 29 de set. de 2020 às 14:26, matthew brandi 
escreveu:

> On 29/09/2020 16:05, Alexandre Torres Porres wrote:
> > I also updated …
> > the iemguis' help file to show how you can set labels with spaces too.
>
> If I set a label with an escaped space per the help file, and I then right
> click on
> the nbx and select properties, I get a TCL unhandled error message (and no
> properties
> window):
>

I actually know that but didn't say it :/ sorry

there's already a fix for this and hopefully this will be merged and work
on the next update ;)


>
> 
> (Tcl) UNHANDLED ERROR: wrong # args: should be "pdtk_iemgui_dialog
> mytoplevel
> mainheader dim_header wdt min_wdt wdt_label hgt min_hgt hgt_label
> rng_header min_rng
> min_rng_label max_rng max_rng_label rng_sched lin0_log1 lilo0_label
> lilo1_label
> loadbang steady num_label num snd rcv gui_name gn_dx gn_dy gn_f gn_fs bcol
> fcol lcol"
> while executing
> "pdtk_iemgui_dialog .gfxstub558554bfed90 |nbx|
> ---dimensions(digits)(pix):--- 5 1 width: 14 8 height:
> ---output..."
> ("uplevel" body line 1)
> invoked from within
> "uplevel #0 $docmds"
> 
>
> I attach an example patch, but I can do this directly in the “pd
> font/label” subpatch
> of the “pd properties” subpatch of numbox2-help.pd. (Pd version 0.51.2 on
> Linux.)
>
> It does seem to be the space that is the problem: try [symbol no_space( in
> the
> example patch.
>
> Is this a known bug? Is it just me?
>
> Best
>
> m
>
> --
> matthew brandi
> ___
> 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] Number of the available midi ports shown

2020-09-29 Thread Maximiliano Estudies
Dear list,

I recently stumbled on a problem with the number of available midi
interfaces shown under _midi settings_. I am using four different
keyboards, three of them connected via USB Midi and one over a ESI M8U Midi
interface. I also need 4 internal IAC MIDI Buses.
My problem is that the ESI interface has 16 ports that are shown as
different devices, and Pd shows only the first 21 available devices, so
when the interface is connected I can't select some of the other keyboards
as inputs because they are not shown in the drop-down list.
I only need the first port of the ESI interface and I can't disable the
rest in the audio-midi config, and this is the only interface I have.
Would it be possible to extend the drop-down menu to all the devices?
I'm using Pd-0.50 on OSX Sierra (10.12).

Cheers,
Maxi

-- 
Maximiliano Estudies
*VDT Referat Beschallung*
+49 176 36784771
omslo.com
maxiestudies.com
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] Helvetica Font in Debian 9.5 - Location?

2020-09-29 Thread matthew brandi
On 29/09/2020 16:05, Alexandre Torres Porres wrote:
> I also updated …
> the iemguis' help file to show how you can set labels with spaces too.

If I set a label with an escaped space per the help file, and I then right 
click on
the nbx and select properties, I get a TCL unhandled error message (and no 
properties
window):


(Tcl) UNHANDLED ERROR: wrong # args: should be "pdtk_iemgui_dialog mytoplevel
mainheader dim_header wdt min_wdt wdt_label hgt min_hgt hgt_label rng_header 
min_rng
min_rng_label max_rng max_rng_label rng_sched lin0_log1 lilo0_label lilo1_label
loadbang steady num_label num snd rcv gui_name gn_dx gn_dy gn_f gn_fs bcol fcol 
lcol"
while executing
"pdtk_iemgui_dialog .gfxstub558554bfed90 |nbx|
---dimensions(digits)(pix):--- 5 1 width: 14 8 height:
---output..."
("uplevel" body line 1)
invoked from within
"uplevel #0 $docmds"


I attach an example patch, but I can do this directly in the “pd font/label” 
subpatch
of the “pd properties” subpatch of numbox2-help.pd. (Pd version 0.51.2 on 
Linux.)

It does seem to be the space that is the problem: try [symbol no_space( in the
example patch.

Is this a known bug? Is it just me?

Best

m

-- 
matthew brandi
#N canvas 515 93 707 683 12;
#X obj 393 266 nbx 5 14 -1e+37 1e+37 0 0 empty empty no_space 60 8
0 10 -262144 -1 -1 0 256;
#X msg 393 209 label \$1;
#X text 165 125 1 — click top message box -->;
#X msg 393 124 symbol escaped\ space;
#X text 82 263 2 — right-click and select properties -->;
#X text 97 65 To produce unhandled error TCL message:;
#X text 80 361 (Tcl) UNHANDLED ERROR: wrong # args: should be 
"pdtk_iemgui_dialog
mytoplevel mainheader dim_header wdt min_wdt wdt_label hgt min_hgt
hgt_label rng_header min_rng min_rng_label max_rng max_rng_label rng_sched
lin0_log1 lilo0_label lilo1_label loadbang steady num_label num snd
rcv gui_name gn_dx gn_dy gn_f gn_fs bcol fcol lcol" while executing
"pdtk_iemgui_dialog .gfxstub558554bfed90 |nbx| 
---dimensions(digits)(pix):---
5 1 width: 14 8 height: ---output..." ("uplevel" body line
1) invoked from within "uplevel #0 $docmds", f 66;
#X text 83 605 Pd version 0.51.2 // Linux;
#X msg 413 167 symbol no_space;
#X connect 1 0 0 0;
#X connect 3 0 1 0;
#X connect 8 0 1 0;
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] Helvetica Font in Debian 9.5 - Location?

2020-09-29 Thread Ingo
Thank you, IOhannes!

I'm still on 0.49 (and cannot update atm for compatibility reasons).
Replacing the underscores with spaces just before sending works fine for what 
I need, though!

Ingo


> -Original Message-
> From: Pd-list [mailto:pd-list-boun...@lists.iem.at] On Behalf Of IOhannes m
> zmoelnig
> Sent: Tuesday, September 29, 2020 2:32 PM
> To: pd-list@lists.iem.at
> Subject: Re: [PD] Helvetica Font in Debian 9.5 - Location?
>
> On 2020-09-29 14:00, Ingo wrote:
> > It didn't work before because I used [sprintf %s%s] or [label $1 $2(.
>
> the proper syntax (as you probably know) is: [label $1\ $2(
>
> and it didn't work "before", as the ability to escape the space character 
> was
> added rather recently to Pd (Pd>=0.51!)
>
> fgmadsr
> 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


Re: [PD] Helvetica Font in Debian 9.5 - Location?

2020-09-29 Thread Alexandre Torres Porres
Em ter., 29 de set. de 2020 às 09:01, Ingo  escreveu:

> Thanks Alexandre!
>
> It didn't work before because I used [sprintf %s%s]


If you're using cyclone's [sprintf], it can generate symbols with the
"symout" argument. This joins several items separated by spaces into a
single symbol. But, as I explain in its help file, this is basically
useless now as you can just escape spaces with backslashes...

I also updated the help file of [makefilename] to show how to use
backslashes in that object, as well as the iemguis' help file to show how
you can set labels with spaces too.

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


Re: [PD] Helvetica Font in Debian 9.5 - Location?

2020-09-29 Thread IOhannes m zmoelnig
On 2020-09-29 14:00, Ingo wrote:
> It didn't work before because I used [sprintf %s%s] or [label $1 $2(.

the proper syntax (as you probably know) is: [label $1\ $2(

and it didn't work "before", as the ability to escape the space
character was added rather recently to Pd (Pd>=0.51!)

fgmadsr
IOhannes



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


Re: [PD] Helvetica Font in Debian 9.5 - Location?

2020-09-29 Thread Ingo
Thanks Alexandre!

It didn't work before because I used [sprintf %s%s] or [label $1 $2(.
Now I replaced the underscores with spaces right before I'm sending to the 
canvas label or [tof/pmenu] and it works perfectly fine.

Ingo



> From: Alexandre Torres Porres [mailto:por...@gmail.com]
> Sent: Monday, September 28, 2020 7:06 PM
> To: Ingo
> Cc: Pd-List
> Subject: Re: [PD] Helvetica Font in Debian 9.5 - Location?
>
>
> Em seg., 28 de set. de 2020 às 08:08, Ingo  escreveu:
>> I need underscores in names
>>
> why? pd understands spaces in symbols
>
>> What I want to do is editing one of the fonts that are available with 
>> underscores being displayed as blank characters.
>>
> there are also other characters you can use that are not an underline nor a 
> space that won't display anything and will look like a space, but one way or 
> another you don't need to go to > the extent of editing your font, I 
> strongly believe.





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