Laudetur Jesus Christus +

Aaron - this feature I will be adding this weekend, after I return from Warsaw. 
It shouldn't be too difficult to implement. I was thinking of providing a 
simple keybind C-c t which would take an argument either positive or negative 
to move the score up or down the scale.

Transposing is not so difficult actually in gregorio, just simply mapping the 
note letters and doing a regexp-replace.

Would you want the clef to move as well during this transpose? It would seem 
for just transposing the notes higher or lower the clef should stay where it is.

What you might think would be the best practice for when the user wants to 
transpose to a note not supported by gregorio, for instance below 'a' or above 
'm'. I was thinking of two possibilities:

1/ ignore the keypress altogether, so that nothing happens
2/ replace the notes that go above or below to '%' so that syntax coloring will 
show the error automatically.
3/ alert the user by some sort of message.

In my opinion the 2nd option (automatic commenting out notes that are out of 
range) as the most useful. However you might have a better idea. A message 
could be added in the minibuffer as an alert.

I would also think that the transpose-function shouldn't change the region 
marks, to allow for multiple presses of the transpose key and also allow 
undo-region.

Of course you could bind the functions to other keypresses, for instance C-c u 
for up the scale, C-c d for down, but the most emacs way of doing this is to 
prefix the function with an argument (M 3 C-c t would be a third up for 
instance).

Btw, the fact that gregorio-mode is based on TeX-mode, you can do 
comment-region just as in LaTeX documents to comment out a bunch of code. (C-c 
;) Very useful!

JJ +

> Thanks for the great work!  If I might suggest a feature, one thing that
> I've always wanted from an editor is a "transpose" feature.  Like an
> emacs "comment-region", I'd like to be able to select a chunk of gabc
> text and shift the music up or down en masse
> 
> A

_______________________________________________
Gregorio-users mailing list
[email protected]
https://mail.gna.org/listinfo/gregorio-users

Reply via email to