Re: [PD] unicode symbols and Pd

2021-01-17 Thread Alexandre Torres Porres
> > On Sun, Jan 17, 2021 at 4:58 PM Alexandre Torres Porres > wrote: > just to chime in here, is there any reason not to use a dedicated > musically oriented font like Opus? > No objection in using music fonts, on the contrary, and I just wanted to know what is a good/easy one to tell people to

Re: [PD] unicode symbols and Pd

2021-01-17 Thread Scott R. Looney
On Sun, Jan 17, 2021 at 4:58 PM Alexandre Torres Porres wrote: > > > Em dom., 17 de jan. de 2021 às 20:09, IOhannes m zmölnig > escreveu: > >> the only guaranteed font to be available on Windows and Linux is "DejaVu >> Sans Mono" (and if the font-renderer weren't broken on macOS, you could >>

Re: [PD] unicode symbols and Pd

2021-01-17 Thread Alexandre Torres Porres
Em dom., 17 de jan. de 2021 às 20:09, IOhannes m zmölnig escreveu: > the only guaranteed font to be available on Windows and Linux is "DejaVu > Sans Mono" (and if the font-renderer weren't broken on macOS, you could > count on that font too). open the ttf-file with a font manager program and >

Re: [PD] New PdDroidParty build

2021-01-17 Thread Chris McCormick
Hi Antoine, On 17/1/21 6:30 pm, Antoine Rousseau wrote: Moreover, I downloaded https://droidparty.net/patches/droidparty-demos.zip to my device, but couldn't extract it to my newly created /PdDroidPart directory. So I checked the zip file on my linux desktop, and I saw the archive consists

Re: [PD] unicode symbols and Pd

2021-01-17 Thread IOhannes m zmölnig
On 1/17/21 10:03 PM, Alexandre Torres Porres wrote: I wanted to know if all systems had at least sharp/flat unicode glyphs out of the box as macs do. as macs *currently* do. in general i wouldn't extrapolate too much from your current system to future or past system (though in the specific

Re: [PD] unicode symbols and Pd

2021-01-17 Thread IOhannes m zmölnig
On 1/17/21 11:25 PM, Alexandre Torres Porres wrote: Em dom., 17 de jan. de 2021 às 17:42, IOhannes m zmölnig escreveu: you need to convert the unicode codepoint to utf8. just wondering, how can you do that? :) 1. usually you shouldn't need to. (it's rare that kind of low-level

Re: [PD] unicode symbols and Pd

2021-01-17 Thread Alexandre Torres Porres
Em dom., 17 de jan. de 2021 às 19:47, oliver escreveu: > i did a little research (there are most likely better/easier ways): > > http://www.ltg.ed.ac.uk/~richard/utf-8.cgi?input=8983=decimal I was asking and wondering if there was an easy way to do it by hand and inside Pd, but it seems to be

Re: [PD] unicode symbols and Pd

2021-01-17 Thread oliver
Alexandre Torres Porres wrote: Em dom., 17 de jan. de 2021 às 17:42, IOhannes m zmölnig mailto:zmoel...@iem.at>> escreveu: you need to convert the unicode codepoint to utf8. just wondering, how can you do that? :) i did a little research (there are most likely better/easier ways):

Re: [PD] unicode symbols and Pd

2021-01-17 Thread Alexandre Torres Porres
Em dom., 17 de jan. de 2021 às 17:42, IOhannes m zmölnig escreveu: > you need to convert the unicode codepoint to utf8. > just wondering, how can you do that? :) ___ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management ->

Re: [PD] unicode symbols and Pd

2021-01-17 Thread oliver
works for me, but the  VIEWDATA SQUARE (U+2317) is not the "right" symbol for sharp https://www.compart.com/en/unicode/U+2317 you actually want this one instead => https://www.compart.com/en/unicode/U+266F sorry, i wasn't clear there. i didn't mean a literally (musical) sharp but a simple

Re: [PD] unicode symbols and Pd

2021-01-17 Thread Alexandre Torres Porres
Em dom., 17 de jan. de 2021 às 18:53, oliver escreveu: > it's the difference between the representation of the sharp symbol in > symbol canvas vs. GUI canvas, where the sharp symbol is printed as a > dollar sign. > people, it's the third time I say this is a very well and known issue and that

Re: [PD] unicode symbols and Pd

2021-01-17 Thread oliver
IOhannes m zmölnig wrote: On 1/17/21 7:40 PM, oliver wrote: you need to convert the unicode codepoint to utf8. for the unicodepoint 8983, the utf-8 sequence is "232 166 131". feeding this sequence to [list tosymbol] will give you "覃" (which is think is what you want) wow, thanks, that's

Re: [PD] unicode symbols and Pd

2021-01-17 Thread Alexandre Torres Porres
Em dom., 17 de jan. de 2021 às 18:31, Roman Haefeli escreveu: > On Sun, 2021-01-17 at 21:40 +0100, IOhannes m zmölnig wrote: > > On 1/17/21 7:40 PM, oliver wrote: > > > > > > > And yes, I agree it would be great if canvases would allow this > > > character to be displayed correctly. > > > > but

Re: [PD] unicode symbols and Pd

2021-01-17 Thread Roman Haefeli
On Sun, 2021-01-17 at 21:40 +0100, IOhannes m zmölnig wrote: > On 1/17/21 7:40 PM, oliver wrote: > > > > > And yes, I agree it would be great if canvases would allow this > > character to be displayed correctly. > > but they do. since ages. Can't reproduce right now, but I remember instances

Re: [PD] split number into digits

2021-01-17 Thread Joseph Larralde
Hi list, To elaborate on Claude's answer, here is how I would do it in vanilla : #N canvas 355 282 450 300 12; #X obj 214 124 % 10; #X obj 96 126 / 10; #X obj 182 91 t f f; #X floatatom 182 32 5 0 0 0 - - -; #X obj 96 148 i; #X obj 96 172 sel 0; #X obj 214 147 list append; #X obj 214 170 t a a;

Re: [PD] unicode symbols and Pd

2021-01-17 Thread Roman Haefeli
On Sun, 2021-01-17 at 18:03 -0300, Alexandre Torres Porres wrote: > Em dom., 17 de jan. de 2021 às 17:42, IOhannes m zmölnig < > zmoel...@iem.at> escreveu: > > afaik we have a working unicode implementation in Pd for more than > > 10 years. > > what's the buzz, tell me what's a-happening... > >

Re: [PD] split number into digits

2021-01-17 Thread Roman Haefeli
On Sun, 2021-01-17 at 13:29 -0500, José Rafael Subía Valdez wrote: > maybe with [mod]. Is the number always going to have 3 digits?? > > playing around in 3 minutes, I came up with this (see picture > attached). I do not consider it to be elegant, but maybe its a place > to start attached patch

Re: [PD] unicode symbols and Pd

2021-01-17 Thread Alexandre Torres Porres
Em dom., 17 de jan. de 2021 às 17:42, IOhannes m zmölnig escreveu: > afaik we have a working unicode implementation in Pd for more than 10 > years. what's the buzz, tell me what's a-happening... > I didn't know if Pd had full blast support for unicode cross platform. Nice to know. I wanted to

Re: [PD] split number into digits

2021-01-17 Thread IOhannes m zmölnig
On 1/17/21 9:35 PM, Alexandre Torres Porres wrote: But at what point does this become a real issue? And how come we don't have a better way to convert it to symbols? the problem is not with the "way to convert it to symbols", but with symbols itself. it's the nature of symbols to not get

Re: [PD] unicode symbols and Pd

2021-01-17 Thread IOhannes m zmölnig
On 1/17/21 7:40 PM, oliver wrote: BTW, I just tried replacing the pound sign [35( with unicode [8983( which is a pound sign for telephones. This works on the current Pd 0.51 how so ? on my machines (win, debian) ASCII code is still wrapped between 0 and 255, like always. actually no.

Re: [PD] split number into digits

2021-01-17 Thread Alexandre Torres Porres
Em dom., 17 de jan. de 2021 às 16:18, Claude Heiland-Allen < cla...@mathr.co.uk> escreveu: > Hi Antoine, > > On 17/01/2021 18:15, Antoine Rousseau wrote: > > - transform "float 512" into "symbol 512" using [makefilename %d] > I would not recommend this, because symbols stick around forever and Pd

Re: [PD] split number into digits

2021-01-17 Thread José Rafael Subía Valdez
maybe with [mod]. Is the number always going to have 3 digits?? playing around in 3 minutes, I came up with this (see picture attached). I do not consider it to be elegant, but maybe its a place to start cheers On Sun, Jan 17, 2021 at 1:18 PM Antoine Rousseau wrote: > You can do this: > -

Re: [PD] unicode symbols and Pd

2021-01-17 Thread oliver
Ingo wrote: [8983( works for me on Windows7 64-bit with Pd 0.51.1. that's really strange. can somebody else confirm this ? i tested it (on this very system) and i got the result i just posted before ... It doesn't work with Debian 9.5 32-bit with 0.49. try updating PD with either

Re: [PD] unicode symbols and Pd

2021-01-17 Thread Ingo
[8983( works for me on Windows7 64-bit with Pd 0.51.1. It doesn't work with Debian 9.5 32-bit with 0.49. I don't know why but I need it to work on my Linux machines and not on Windows. 164 looks better than the dollar sign. I might use that as well. I went through them all and couldn't decide

Re: [PD] split number into digits

2021-01-17 Thread Claude Heiland-Allen
Hi Antoine, On 17/01/2021 18:15, Antoine Rousseau wrote: - transform "float 512" into "symbol 512" using [makefilename %d] I would not recommend this, because symbols stick around forever and Pd gets slower the more symbols there are.  AKA "symbol table pollution". Instead, better to use

Re: [PD] unicode symbols and Pd

2021-01-17 Thread oliver
BTW, I just tried replacing the pound sign [35( with unicode [8983( which is a pound sign for telephones. This works on the current Pd 0.51 how so ? on my machines (win, debian) ASCII code is still wrapped between 0 and 255, like always. so sending ASCII 8983 to [list tosymbol] outputs the

Re: [PD] split number into digits

2021-01-17 Thread Jeppi Jeppi
Wow brilliant, super elegant. many thanks! josep m From: Antoine Rousseau Sent: Sunday, January 17, 2021 7:15 PM To: Jeppi Jeppi Cc: pd-list@lists.iem.at Subject: Re: [PD] split number into digits You can do this: - transform "float 512" into "symbol 512" using

Re: [PD] split number into digits

2021-01-17 Thread Antoine Rousseau
You can do this: - transform "float 512" into "symbol 512" using [makefilename %d] - then transform "symbol 512" into "list 53 49 50" with [list fromsymbol]. - finally subtract 48 (which is the ascii for "0") from every item, you get "5 1 2" Le dim. 17 janv. 2021 à 18:23, Jeppi Jeppi a écrit :

[PD] split number into digits

2021-01-17 Thread Jeppi Jeppi
Hi there, which would be your most elegant way to split a number into a list of digits? that is, I have the number 512 and I want the list 5 1 2 ___ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management ->

Re: [PD] unicode symbols and Pd

2021-01-17 Thread Ingo
The way to send a lable to a canvas is by first going through a symbol box and the a [send "ToMyCanvasReceiveName"( . The canvas needs to be set up with the same receive name e.g. "ToMyCanvasReceiveName". In order to get text into the canvas you use [MyText( | [symbol] | [label $1( | [;

Re: [PD] unicode symbols and Pd

2021-01-17 Thread Ingo
Thanks, Alexandre! I'll check it! Ingo From: Alexandre Torres Porres [mailto:por...@gmail.com] Sent: Sunday, January 17, 2021 3:21 PM To: Ingo Cc: b...@billp.org; Pd-List Subject: Re: [PD] unicode symbols and Pd Well, like I said (but I wasn't aware it didn't go to the whole list).

Re: [PD] unicode symbols and Pd

2021-01-17 Thread Ingo
Here is what I'm talking about concerning displaying note names with [canvas]. I have the same text going first to an LCD display (which works fine) and then to the HDMI screen by using [canvas]. I'm talking about the C# (bottom right - circled in red): The canvas cannot display #.

Re: [PD] unicode symbols and Pd

2021-01-17 Thread Alexandre Torres Porres
Well, like I said (but I wasn't aware it didn't go to the whole list). It's a long story, but just note that this is a known issue and there are fixes for it on github already! ;) I do a very dirty trick so I can send "C#" to canvases' labels in [else/display], it requires having to create the

Re: [PD] unicode symbols and Pd

2021-01-17 Thread Ingo
Yes, of course it all works fine with [print] ! That's what I said. What does not work is sending it to a canvas. That's what I need! Ingo > -Original Message- > From: Pd-list [mailto:pd-list-boun...@lists.iem.at] On Behalf Of Bill Purvis > Sent: Sunday, January 17, 2021 1:42 PM > To:

Re: [PD] unicode symbols and Pd

2021-01-17 Thread Bill Purvis
On 17/01/2021 11:55, Ingo wrote: Thanks, I had tried [35( with [makefilename %c] before. Needed a [symbol] before sending, though. When I print (in parallel) to the console I get C#, when I send to the canvas I get C$ on the canvas. It has been annoying me for years. I don't know if it is a

Re: [PD] unicode symbols and Pd

2021-01-17 Thread Ingo
Thanks, I had tried [35( with [makefilename %c] before. Needed a [symbol] before sending, though. When I print (in parallel) to the console I get C#, when I send to the canvas I get C$ on the canvas. It has been annoying me for years. I don't know if it is a bug in canvas or something that's

Re: [PD] unicode symbols and Pd

2021-01-17 Thread Jack
Hi, I would use : [35( | [makefilename %c] | [C$1( | [;mycanvas label $1( Don't know if there is a method to do it directly in the setup box. ++ Jack Le 17/01/2021 à 09:37, Ingo a écrit : > Not really a unicode thing but if I send [C#( to a canvas I get [C$(. > How can I get the # to be

Re: [PD] New PdDroidParty build

2021-01-17 Thread Antoine Rousseau
Moreover, I downloaded https://droidparty.net/patches/droidparty-demos.zip to my device, but couldn't extract it to my newly created /PdDroidPart directory. So I checked the zip file on my linux desktop, and I saw the archive consists of a "../droidparty-demos/" directory; I believe that starting

Re: [PD] New PdDroidParty build

2021-01-17 Thread Antoine Rousseau
Nice, congrats Chris! Shouldn't the app come with a couple of patches, though? So the user can try something as soon as he installed the app? Le dim. 17 janv. 2021 à 01:50, Chris McCormick a écrit : > Hello, > > Just a quick note to let you know that PdDroidParty is now available via > the Play

Re: [PD] unicode symbols and Pd

2021-01-17 Thread Ingo
Not really a unicode thing but if I send [C#( to a canvas I get [C$(. How can I get the # to be displayed in the canvas? Unicode symbols would be great to have, though. This would definitely simplify naming pitches / notes. Ingo From: Pd-list [mailto:pd-list-boun...@lists.iem.at] On Behalf Of