unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Basic WYSIWYG printing in GNU Emacs (Sheet music)
@ 2021-07-26  8:58 Anand Tamariya
  2021-07-27  0:24 ` Richard Stallman
  0 siblings, 1 reply; 15+ messages in thread
From: Anand Tamariya @ 2021-07-26  8:58 UTC (permalink / raw)
  To: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 514 bytes --]

Here is my next iteration on basic WYSIWYG printing in GNU Emacs for sheet
music. Now you can print sheet music for your favorite song in Emacs.

   -

   Run M-x ps-print-buffer-with-faces to send output to printer.
   -

   Run C-u M-x ps-print-buffer-with-faces to send output to file (PS
   format).

*Code:* https://gitlab.com/atamariya/emacs/tree/dev

*Music Symbol reference:* http://www.smufl.org/files/smufl-0.9.pdf

*Screenshots:*
https://lifeofpenguin.blogspot.com/2021/07/sheet-music-in-gnu-emacs.html

[-- Attachment #2: Type: text/html, Size: 1628 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Basic WYSIWYG printing in GNU Emacs (Sheet music)
  2021-07-26  8:58 Basic WYSIWYG printing in GNU Emacs (Sheet music) Anand Tamariya
@ 2021-07-27  0:24 ` Richard Stallman
  2021-07-27 10:04   ` Anand Tamariya
  0 siblings, 1 reply; 15+ messages in thread
From: Richard Stallman @ 2021-07-27  0:24 UTC (permalink / raw)
  To: Anand Tamariya; +Cc: emacs-devel

[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

Is this code designed to be added to Emacs, and then it would simply work
with no need for the user to know other commands?

What is the input file format?

-- 
Dr Richard Stallman (https://stallman.org)
Chief GNUisance of the GNU Project (https://gnu.org)
Founder, Free Software Foundation (https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)





^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Basic WYSIWYG printing in GNU Emacs (Sheet music)
  2021-07-27  0:24 ` Richard Stallman
@ 2021-07-27 10:04   ` Anand Tamariya
  2021-07-28  1:06     ` Richard Stallman
  0 siblings, 1 reply; 15+ messages in thread
From: Anand Tamariya @ 2021-07-27 10:04 UTC (permalink / raw)
  To: rms; +Cc: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 355 bytes --]

>
> Is this code designed to be added to Emacs, and then it would simply work
> with no need for the user to know other commands?
>
Yes. The only requirement is to use Truetype fonts. Since OS, Emacs and
ghostscript treat Truetype fonts uniformly, no other configuration is
required.

What is the input file format?
>
The input file format is irrelevant.

[-- Attachment #2: Type: text/html, Size: 741 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Basic WYSIWYG printing in GNU Emacs (Sheet music)
  2021-07-27 10:04   ` Anand Tamariya
@ 2021-07-28  1:06     ` Richard Stallman
  2021-07-28  4:47       ` Anand Tamariya
  0 siblings, 1 reply; 15+ messages in thread
From: Richard Stallman @ 2021-07-28  1:06 UTC (permalink / raw)
  To: Anand Tamariya; +Cc: emacs-devel

[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

  > What is the input file format?

  > The input file format is irrelevant.

I suspect there is some misunderstanding here.
Are you saying that your package can understand all possible file formats?


-- 
Dr Richard Stallman (https://stallman.org)
Chief GNUisance of the GNU Project (https://gnu.org)
Founder, Free Software Foundation (https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)





^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Basic WYSIWYG printing in GNU Emacs (Sheet music)
  2021-07-28  1:06     ` Richard Stallman
@ 2021-07-28  4:47       ` Anand Tamariya
  2021-07-29  4:32         ` Richard Stallman
                           ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: Anand Tamariya @ 2021-07-28  4:47 UTC (permalink / raw)
  To: rms; +Cc: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 359 bytes --]

>
>   > What is the input file format?
>
>   > The input file format is irrelevant.
>
> I suspect there is some misunderstanding here.
> Are you saying that your package can understand all possible file formats
>
My code only deals with converting what is shown on screen to postscript
for printer. Hence, if Emacs can display it, it will be printed as such.

[-- Attachment #2: Type: text/html, Size: 600 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Basic WYSIWYG printing in GNU Emacs (Sheet music)
  2021-07-28  4:47       ` Anand Tamariya
@ 2021-07-29  4:32         ` Richard Stallman
  2021-07-29  8:59           ` Anand Tamariya
  2021-07-29  4:32         ` Richard Stallman
  2021-07-29  4:39         ` Richard Stallman
  2 siblings, 1 reply; 15+ messages in thread
From: Richard Stallman @ 2021-07-29  4:32 UTC (permalink / raw)
  To: Anand Tamariya; +Cc: emacs-devel

[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

  > My code only deals with converting what is shown on screen to postscript
  > for printer. Hence, if Emacs can display it, it will be printed as such.

I understand now what job your package does.  It's a useful addition.

How do you display sheet music in Emacs?

-- 
Dr Richard Stallman (https://stallman.org)
Chief GNUisance of the GNU Project (https://gnu.org)
Founder, Free Software Foundation (https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)





^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Basic WYSIWYG printing in GNU Emacs (Sheet music)
  2021-07-28  4:47       ` Anand Tamariya
  2021-07-29  4:32         ` Richard Stallman
@ 2021-07-29  4:32         ` Richard Stallman
  2021-07-29  4:39         ` Richard Stallman
  2 siblings, 0 replies; 15+ messages in thread
From: Richard Stallman @ 2021-07-29  4:32 UTC (permalink / raw)
  To: Anand Tamariya; +Cc: emacs-devel

[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

  > My code only deals with converting what is shown on screen to postscript
  > for printer. Hence, if Emacs can display it, it will be printed as such.

I understand now what job your package does.  It's a useful addition.

How do you display sheet music in Emacs?

-- 
Dr Richard Stallman (https://stallman.org)
Chief GNUisance of the GNU Project (https://gnu.org)
Founder, Free Software Foundation (https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)





^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Basic WYSIWYG printing in GNU Emacs (Sheet music)
  2021-07-28  4:47       ` Anand Tamariya
  2021-07-29  4:32         ` Richard Stallman
  2021-07-29  4:32         ` Richard Stallman
@ 2021-07-29  4:39         ` Richard Stallman
  2 siblings, 0 replies; 15+ messages in thread
From: Richard Stallman @ 2021-07-29  4:39 UTC (permalink / raw)
  To: Anand Tamariya; +Cc: emacs-devel

[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

  > My code only deals with converting what is shown on screen to postscript
  > for printer. Hence, if Emacs can display it, it will be printed as such.

I understand now what job your package does.  It's a useful addition.

How do you display sheet music in Emacs?

-- 
Dr Richard Stallman (https://stallman.org)
Chief GNUisance of the GNU Project (https://gnu.org)
Founder, Free Software Foundation (https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)





^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Basic WYSIWYG printing in GNU Emacs (Sheet music)
  2021-07-29  4:32         ` Richard Stallman
@ 2021-07-29  8:59           ` Anand Tamariya
  2021-07-30  0:36             ` Richard Stallman
  2021-07-31  1:36             ` Richard Stallman
  0 siblings, 2 replies; 15+ messages in thread
From: Anand Tamariya @ 2021-07-29  8:59 UTC (permalink / raw)
  To: rms; +Cc: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 138 bytes --]

>
> How do you display sheet music in Emacs?
>
Instructions here
https://lifeofpenguin.blogspot.com/2021/07/sheet-music-in-gnu-emacs.html

[-- Attachment #2: Type: text/html, Size: 470 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Basic WYSIWYG printing in GNU Emacs (Sheet music)
  2021-07-29  8:59           ` Anand Tamariya
@ 2021-07-30  0:36             ` Richard Stallman
  2021-07-30  9:07               ` Anand Tamariya
  2021-07-31  1:36             ` Richard Stallman
  1 sibling, 1 reply; 15+ messages in thread
From: Richard Stallman @ 2021-07-30  0:36 UTC (permalink / raw)
  To: Anand Tamariya; +Cc: emacs-devel

[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

  > https://lifeofpenguin.blogspot.com/2021/07/sheet-music-in-gnu-emacs.html

That is interesting.

Are there programs to convert other musical notation files
into this Unicode format?  Can it handle rests, dots, ties,
bar lines, and so on?

-- 
Dr Richard Stallman (https://stallman.org)
Chief GNUisance of the GNU Project (https://gnu.org)
Founder, Free Software Foundation (https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)





^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Basic WYSIWYG printing in GNU Emacs (Sheet music)
  2021-07-30  0:36             ` Richard Stallman
@ 2021-07-30  9:07               ` Anand Tamariya
  2021-07-30 16:12                 ` [External] : " Drew Adams
  0 siblings, 1 reply; 15+ messages in thread
From: Anand Tamariya @ 2021-07-30  9:07 UTC (permalink / raw)
  To: rms; +Cc: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 530 bytes --]

  > https://lifeofpenguin.blogspot.com/2021/07/sheet-music-in-gnu-emacs.html
>
> That is interesting.
>
> Are there programs to convert other musical notation files
> into this Unicode format?

I'm not aware of any such program. But with an active W3C Music Notation
Community Group <https://www.w3.org/community/music-notation/> , I expect
to see more of this in the near future.

  Can it handle rests, dots, ties,
> bar lines, and so on?
>
 Complete symbol reference is available here.
http://www.smufl.org/files/smufl-0.9.pdf

[-- Attachment #2: Type: text/html, Size: 1206 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* RE: [External] : Re: Basic WYSIWYG printing in GNU Emacs (Sheet music)
  2021-07-30  9:07               ` Anand Tamariya
@ 2021-07-30 16:12                 ` Drew Adams
  0 siblings, 0 replies; 15+ messages in thread
From: Drew Adams @ 2021-07-30 16:12 UTC (permalink / raw)
  To: Anand Tamariya, rms@gnu.org; +Cc: emacs-devel@gnu.org

Is David Kastrup's LilyPond work with Emacs perhaps
relevant to this discussion?

http://lilypond.org/

http://lilypond.org/doc/v2.21/Documentation/usage/text-editor-support.html

  Emacs has a ‘lilypond-mode’, which provides keyword
  autocompletion, indentation, LilyPond specific
  parenthesis matching and syntax coloring, handy
  compile short-cuts and reading LilyPond manuals
  using Info. If ‘lilypond-mode’ is not installed on
  your platform, see below.

  An Emacs mode for entering music and running LilyPond
  is contained in the source archive in the ‘elisp’
  directory. Do make install to install it to elispdir.
  file ‘lilypond-init.el’ should be placed to
  load-path‘/site-start.d/’ or appended to your
  ‘~/.emacs’ or ‘~/.emacs.el’.

(I know nothing about it, and I'm not a musician.  I just
recall seeing messages in emacs-devel about it over the years.)

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Basic WYSIWYG printing in GNU Emacs (Sheet music)
  2021-07-29  8:59           ` Anand Tamariya
  2021-07-30  0:36             ` Richard Stallman
@ 2021-07-31  1:36             ` Richard Stallman
  2021-08-02  5:01               ` Anand Tamariya
  1 sibling, 1 reply; 15+ messages in thread
From: Richard Stallman @ 2021-07-31  1:36 UTC (permalink / raw)
  To: Anand Tamariya; +Cc: emacs-devel

[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

We'd like to consider merging your changes into Emacs.  Would you be
willing to send them in the form of a patch that we would install?
That would mean, a context diff file showing the changes,
plus an explanation to use as a log entry.

-- 
Dr Richard Stallman (https://stallman.org)
Chief GNUisance of the GNU Project (https://gnu.org)
Founder, Free Software Foundation (https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)





^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Basic WYSIWYG printing in GNU Emacs (Sheet music)
  2021-07-31  1:36             ` Richard Stallman
@ 2021-08-02  5:01               ` Anand Tamariya
  2021-08-03  7:42                 ` Richard Stallman
  0 siblings, 1 reply; 15+ messages in thread
From: Anand Tamariya @ 2021-08-02  5:01 UTC (permalink / raw)
  To: rms; +Cc: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 329 bytes --]

> We'd like to consider merging your changes into Emacs.  Would you be
> willing to send them in the form of a patch that we would install?
> That would mean, a context diff file showing the changes,
> plus an explanation to use as a log entry.
>
This will land up in Emacs eventually. I've already signed the license
agreement.

[-- Attachment #2: Type: text/html, Size: 555 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Basic WYSIWYG printing in GNU Emacs (Sheet music)
  2021-08-02  5:01               ` Anand Tamariya
@ 2021-08-03  7:42                 ` Richard Stallman
  0 siblings, 0 replies; 15+ messages in thread
From: Richard Stallman @ 2021-08-03  7:42 UTC (permalink / raw)
  To: Anand Tamariya; +Cc: emacs-devel

[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

  > This will land up in Emacs eventually. I've already signed the license
  > agreement.

Thank you.

-- 
Dr Richard Stallman (https://stallman.org)
Chief GNUisance of the GNU Project (https://gnu.org)
Founder, Free Software Foundation (https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)





^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2021-08-03  7:42 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-26  8:58 Basic WYSIWYG printing in GNU Emacs (Sheet music) Anand Tamariya
2021-07-27  0:24 ` Richard Stallman
2021-07-27 10:04   ` Anand Tamariya
2021-07-28  1:06     ` Richard Stallman
2021-07-28  4:47       ` Anand Tamariya
2021-07-29  4:32         ` Richard Stallman
2021-07-29  8:59           ` Anand Tamariya
2021-07-30  0:36             ` Richard Stallman
2021-07-30  9:07               ` Anand Tamariya
2021-07-30 16:12                 ` [External] : " Drew Adams
2021-07-31  1:36             ` Richard Stallman
2021-08-02  5:01               ` Anand Tamariya
2021-08-03  7:42                 ` Richard Stallman
2021-07-29  4:32         ` Richard Stallman
2021-07-29  4:39         ` Richard Stallman

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).