Hi, I'm working on an abstraction that converts MIDI pitches to note name symbols, such as "C♯"
At first I was using lame symbols like "#" and "b" for sharp/flat, but I then tried the unicode symbols and it works nice on my patch. The thing is I wanna share this abstraction as part of my library and I'm not sure it'll work everywhere. For reference, here's the sharp unicode character compart.com/en/unicode/U+266F - in [list fromsymbol], this character gives me "226 153 175".
In fact I'm even able to use double sharps (𝄪) and double flast (𝄫). I guess I can use "lame" symbols for these also, like "x" and "bb", but it's nice if we have support for these symbols.
Now, at this page => https://www.alt-codes.net/music_note_alt_codes.php I see just a few of the music symbols (far from all). The rest are just empty squares... and I wonder then if some of you are seeing those squares here instead of the sharp/flat symbols.
So, I'm on macOS mojave, I never installed fonts here...
Anyway, so, I wonder what's the deal with unicode characters in general, how do they show up or not, and if and how we can know if Pd will display them.
thanks
Am 17. Jänner 2021 03:19:08 MEZ schrieb Alexandre Torres Porres porres@gmail.com:
Anyway, so, I wonder what's the deal with unicode characters in general, how do they show up or not, and if and how we can know if Pd will display them.
its *basically* the same as with all font-rendering in all applications: the system will need to have a (compatible) font installed that has the glyph. eg on my mobile phone, your double sharps and double flats don't render (there are just placeholder chars) - is there a way to make sure (as you want it) that a given glyph will show up on my phone? I don't think so.
mfg.hft.fsl IOhannes
Em dom., 17 de jan. de 2021 às 03:19, IOhannes m zmölnig zmoelnig@iem.at escreveu:
its *basically* the same as with all font-rendering in all applications: the system will need to have a (compatible) font installed that has the glyph.
And just so things are all clear, if the system has it, Pd will load it just fine, right?
eg on my mobile phone, your double sharps and double flats don't render (there are just placeholder chars) - is there a way to make sure (as you want it) that a given glyph will show up on my phone? I don't think so.
Not sure about the other systems, But macs seem to have it by default. This thread is meant to also ask if people can just see these characters by default.
I guess the way to make sure is to suggest people to install fonts with the glyph if they need. I was able to install *bravura*, but it was a bit tricky. Not sure of any other font with such unicode characters to suggest.
I guess I can have a "-unicode" flag for the object that uses these fancier characters and then I'll document what's the deal with it.
In general, these can be very useful. Now that I have bravura, I have nice symbols such as notes, rests, and all musical things we can use for a nice interface.
cheers
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-bounces@lists.iem.at] On Behalf Of Alexandre Torres Porres Sent: Sunday, January 17, 2021 3:19 AM To: Pd-List Subject: [PD] unicode symbols and Pd
Hi, I'm working on an abstraction that converts MIDI pitches to note name symbols, such as "C?"
At first I was using lame symbols like "#" and "b" for sharp/flat, but I then tried the unicode symbols and it works nice on my patch. The thing is I wanna share this abstraction as part of my library and I'm not sure it'll work everywhere. For reference, here's the sharp unicode character compart.com/en/unicode/U+266F - in [list fromsymbol], this character gives me "226 153 175".
In fact I'm even able to use double sharps (??) and double flast (??). I guess I can use "lame" symbols for these also, like "x" and "bb", but it's nice if we have support for these symbols.
Now, at this page => https://www.alt-codes.net/music_note_alt_codes.php I see just a few of the music symbols (far from all). The rest are just empty squares... and I wonder then if some of you are seeing those squares here instead of the sharp/flat symbols.
So, I'm on macOS mojave, I never installed fonts here...
Anyway, so, I wonder what's the deal with unicode characters in general, how do they show up or not, and if and how we can know if Pd will display them.
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 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-bounces@lists.iem.at] On Behalf Of Alexandre Torres Porres Sent: Sunday, January 17, 2021 3:19 AM To: Pd-List Subject: [PD] unicode symbols and Pd
Hi, I'm working on an abstraction that converts MIDI pitches to note name symbols, such as "C?"
At first I was using lame symbols like "#" and "b" for sharp/flat, but I then tried the unicode symbols and it works nice on my patch. The thing is I wanna share this abstraction as part of my library and I'm not sure it'll work everywhere. For reference, here's the sharp unicode character compart.com/en/unicode/U+266F - in [list fromsymbol], this character gives me "226 153 175".
In fact I'm even able to use double sharps (??) and double flast (??). I guess I can use "lame" symbols for these also, like "x" and "bb", but it's nice if we have support for these symbols.
Now, at this page => https://www.alt-codes.net/music_note_alt_codes.php I see just a few of the music symbols (far from all). The rest are just empty squares... and I wonder then if some of you are seeing those squares here instead of the sharp/flat symbols.
So, I'm on macOS mojave, I never installed fonts here...
Anyway, so, I wonder what's the deal with unicode characters in general, how do they show up or not, and if and how we can know if Pd will display them.
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
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 done on purpose. And if it is on purpose how I could make it work?
I tried C # or C# but still get C$. I can't be the only one having this issue. How does anyone else do this?
Ingo
-----Original Message----- From: Pd-list [mailto:pd-list-bounces@lists.iem.at] On Behalf Of Jack Sent: Sunday, January 17, 2021 12:08 PM To: pd-list@lists.iem.at Subject: Re: [PD] unicode symbols and Pd
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 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-bounces@lists.iem.at] On Behalf Of Alexandre Torres Porres Sent: Sunday, January 17, 2021 3:19 AM To: Pd-List Subject: [PD] unicode symbols and Pd
Hi, I'm working on an abstraction that converts MIDI pitches to note name symbols, such as "C?"
At first I was using lame symbols like "#" and "b" for sharp/flat, but I then tried the unicode symbols and it works nice on my patch. The thing is I wanna share this abstraction as part of my library and I'm not sure it'll work everywhere. For reference, here's the sharp unicode character compart.com/en/unicode/U+266F - in [list fromsymbol], this character gives me "226 153 175".
In fact I'm even able to use double sharps (??) and double flast (??). I guess I can use "lame" symbols for these also, like "x" and "bb", but it's nice if we have support for these symbols.
Now, at this page => https://www.alt-codes.net/music_note_alt_codes.php I see just a few of the music symbols (far from all). The rest are just empty squares... and I wonder then if some of you are seeing those squares here instead of
the sharp/flat symbols.
So, I'm on macOS mojave, I never installed fonts here...
Anyway, so, I wonder what's the deal with unicode characters in general, how do they show up or not, and if and how we can know if Pd will
display them.
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
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 bug in canvas or something that's done on purpose. And if it is on purpose how I could make it work?
I tried C # or C# but still get C$. I can't be the only one having this issue. How does anyone else do this?
Ingo
Hi Ingo, I'm a newbie to Pd, using purr-data on Linux. I put together a patch:
[35(
|
[makefilename C%c]
|
[symbol
|
[print C-sharp]
and it seems to work OK for me. See attached screen-shot. (slight difference, I connected the symbol box in parallel, rather than series but I don't see that matters. I haven't worked out how to show that using Ascii-art.)
Bill
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-bounces@lists.iem.at] On Behalf Of Bill Purvis Sent: Sunday, January 17, 2021 1:42 PM To: pd-list@lists.iem.at Subject: Re: [PD] unicode symbols and Pd
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 bug in canvas or something that's done on purpose. And if it is on purpose how I could make it work?
I tried C # or C# but still get C$. I can't be the only one having this issue. How does anyone else do this?
Ingo
Hi Ingo, I'm a newbie to Pd, using purr-data on Linux. I put together a patch:
[35( | [makefilename C%c] | [symbol
| [print C-sharp]and it seems to work OK for me. See attached screen-shot. (slight difference, I connected the symbol box in parallel, rather than series but I don't see that matters. I haven't worked out how to show that using Ascii-art.)
Bill
-- +----------------------------------------+ | Bill Purvis | | email: bill@billp.org | +----------------------------------------+
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 object, you can check it while there's no fix yet.
Em dom., 17 de jan. de 2021 às 10:43, Ingo ingo@miamiwave.com escreveu:
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-bounces@lists.iem.at] On Behalf Of Bill
Purvis
Sent: Sunday, January 17, 2021 1:42 PM To: pd-list@lists.iem.at Subject: Re: [PD] unicode symbols and Pd
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 bug in canvas or something that's done on
purpose.
And if it is on purpose how I could make it work?
I tried C # or C# but still get C$. I can't be the only one having this issue. How does anyone else do this?
Ingo
Hi Ingo, I'm a newbie to Pd, using purr-data on Linux. I put together a patch:
[35( | [makefilename C%c] | [symbol
| [print C-sharp]and it seems to work OK for me. See attached screen-shot. (slight difference, I connected the symbol box in parallel, rather than series but I don't see that matters. I haven't worked out how to show that using Ascii-art.)
Bill
-- +----------------------------------------+ | Bill Purvis | | email: bill@billp.org | +----------------------------------------+
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Thanks, Alexandre! I'll check it!
Ingo
From: Alexandre Torres Porres [mailto:porres@gmail.com] Sent: Sunday, January 17, 2021 3:21 PM To: Ingo Cc: bill@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). 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 object, you can check it while there's no fix yet.
Em dom., 17 de jan. de 2021 às 10:43, Ingo <ingo@miamiwave.com mailto:ingo@miamiwave.com > escreveu:
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-bounces@lists.iem.at mailto:pd-list-bounces@lists.iem.at ] On Behalf Of Bill Purvis Sent: Sunday, January 17, 2021 1:42 PM To: pd-list@lists.iem.at mailto:pd-list@lists.iem.at Subject: Re: [PD] unicode symbols and Pd
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 bug in canvas or something that's done on purpose. And if it is on purpose how I could make it work?
I tried C # or C# but still get C$. I can't be the only one having this issue. How does anyone else do this?
Ingo
Hi Ingo, I'm a newbie to Pd, using purr-data on Linux. I put together a patch:
[35( | [makefilename C%c] | [symbol
| [print C-sharp]and it seems to work OK for me. See attached screen-shot. (slight difference, I connected the symbol box in parallel, rather than series but I don't see that matters. I haven't worked out how to show that using Ascii-art.)
Bill
-- +----------------------------------------+ | Bill Purvis | | email: bill@billp.org mailto:bill@billp.org | +----------------------------------------+
Pd-list@lists.iem.at mailto:Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
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 #. It shows $ instead.
Ingo
-----Original Message-----
From: Pd-list [mailto:pd-list-bounces@lists.iem.at] On Behalf Of Ingo
Sent: Sunday, January 17, 2021 2:36 PM
To: bill@billp.org; pd-list@lists.iem.at
Subject: Re: [PD] unicode symbols and Pd
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-bounces@lists.iem.at mailto:pd-list-bounces@lists.iem.at] On Behalf Of Bill
Purvis
Sent: Sunday, January 17, 2021 1:42 PM
To: mailto:pd-list@lists.iem.at pd-list@lists.iem.at
Subject: Re: [PD] unicode symbols and Pd
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 bug in canvas or something that's done on purpose.
And if it is on purpose how I could make it work?
I tried C # or C# but still get C$.
I can't be the only one having this issue.
How does anyone else do this?
Ingo
Hi Ingo,
I'm a newbie to Pd, using purr-data on Linux. I put together a patch:
[35(
|
[makefilename C%c]
|
[symbol\
|
[print C-sharp]
and it seems to work OK for me.
See attached screen-shot.
(slight difference, I connected the symbol box in parallel, rather
than series but I don't see that matters. I haven't worked out how to
show that using
Ascii-art.)
Bill
--
+----------------------------------------+
| Bill Purvis |
| email: mailto:bill@billp.org bill@billp.org |
+----------------------------------------+
mailto:Pd-list@lists.iem.at Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management ->
https://lists.puredata.info/listinfo/pd-list https://lists.puredata.info/listinfo/pd-list