Re: lilypond-user Digest, Vol 206, Issue 108

2020-01-24 Thread Amir Teymuri


Good morning,

@David thank you for the reference to the Guile Manual, and @Urs thank you for 
your
introduction!

Bests,
Amir

lilypond-user-requ...@gnu.org writes:

> Send lilypond-user mailing list submissions to
>   lilypond-user@gnu.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>   https://lists.gnu.org/mailman/listinfo/lilypond-user
> or, via email, send a message with subject or body 'help' to
>   lilypond-user-requ...@gnu.org
>
> You can reach the person managing the list at
>   lilypond-user-ow...@gnu.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of lilypond-user digest..."
>
>
> Today's Topics:
>
>1. Re: Scheme function evluates only once (Urs Liska)
>2. Re: Scheme function evluates only once (David Kastrup)
>3. Re: Scheme function evluates only once (Thomas Morley)
>4. Re: Beams over rests and concaveness (Gilberto Agostinho)
>5. Re: Odd Behaviour: \break after \repeat (David Wright)
>6. partcombine & killCues (Michael Seifert)
>7. Re: partcombine & killCues (Aaron Hill)
>8. Clef change placement (Daniel Rosen)
>
>
> --
>
> Message: 1
> Date: Thu, 23 Jan 2020 22:46:55 +0100
> From: Urs Liska 
> To: David Kastrup , Amir Teymuri 
> Cc: lilypond-user 
> Subject: Re: Scheme function evluates only once
> Message-ID:
>   
> Content-Type: text/plain; charset="UTF-8"
>
> Hi,
>
> I intended to write about the same, but when I came back home to switch
> the computer back on David had already replied, although in clearer
> words than I would have done.
>
> But let me take the opportunity to introduce you to Amir who I think
> has never posted on the LilyPond lists so far. For those who might
> phyiscally be able but failed to put a face to his name: he also was in
> Salzburg, watching the conference closely.
>
> For those who weren't there: We are in the lucky position to have Amir
> as my "intern" for some time. He is supposed to spend about 4-5 weeks
> of full time work with me, for which he'll be "reimbursed" in credit
> points equivalent to 1/3 of a semester for his master in music
> informatics. He will mostly spend his energy on openLilyLib, presumably
> helping with the integration of the extension mechanism into LilyPond
> but also working on some specific functionality we haven't decided yet.
> Additionally I hope he will integrate a number of functions into
> LilyPond that are now in openLilyLib, \shapeII being on top of my
> personal wish list.
>
> He'll start seriously in a few weeks, but an initial pull request and
> this question show that he's already started getting familiar with the
> matter.
>
> Best
> Urs
>
> Am Donnerstag, den 23.01.2020, 21:33 +0100 schrieb David Kastrup:
>> Amir Teymuri  writes:
>> 
>> > Hi,
>> > 
>> > this is just a nonsense exercise for me to get to know LilyPond
>> > better!
>> > I can't figure out why in the following the #(rnd-col) is evaluated
>> > only
>> > once and not upon each compilation of my ly file? The first time i
>> > compile this i will get the four colors displayed:
>> > 
>> > (0.5 0.5 0)
>> > (0.5 0 1.0)
>> > (0.5 0 1.0)
>> > (0 0.5 1.0)
>> > 
>> > which however doesn't change in next compilations, so that there is
>> > no
>> > color change. Can someone explain what am i missing?
>> > Thanks
>> > 
>> > 
>> > %%
>> > \version "2.19.83"
>> > 
>> > #(define (rnd-col) (map (lambda (x) (* x 0.5)) (list (random 3)
>> > (random 3) (random 3
>> > 
>> > coloredAcc = #(define-music-function () ()
>> >   (newline)
>> >   (display (rnd-col))
>> >   #{  
>> >   \once \override Accidental.color = #(rnd-col)
>> >   #})
>> > 
>> > \relative c'' {
>> >   \coloredAcc cisis
>> >   \coloredAcc cisis!
>> >   \coloredAcc cisis!
>> >   \coloredAcc cisis!
>> > }
>> > %%
>> 
>> Guile manual:
>> 
>> File: guile.info,  Node: Random,  Prev: Bitwise Operations,  Up:
>> Numbers
>> 
>> 6.6.2.14 Random Number Generation
>> .
>> 
>> Pseudo-random numbers are generated from a random state object, which
>> can be created with ‘seed->random-state’ or ‘datum->random-
>> state’.  An
>> external

Scheme function evluates only once

2020-01-23 Thread Amir Teymuri
Hi,

this is just a nonsense exercise for me to get to know LilyPond better!
I can't figure out why in the following the #(rnd-col) is evaluated only
once and not upon each compilation of my ly file? The first time i
compile this i will get the four colors displayed:

(0.5 0.5 0)
(0.5 0 1.0)
(0.5 0 1.0)
(0 0.5 1.0)

which however doesn't change in next compilations, so that there is no
color change. Can someone explain what am i missing?
Thanks


%%
\version "2.19.83"

#(define (rnd-col) (map (lambda (x) (* x 0.5)) (list (random 3) (random 3) 
(random 3

coloredAcc = #(define-music-function () ()
   (newline)
   (display (rnd-col))
   #{  
   \once \override Accidental.color = #(rnd-col)
   #})

\relative c'' {
  \coloredAcc cisis
  \coloredAcc cisis!
  \coloredAcc cisis!
  \coloredAcc cisis!
}
%%
-- 
Amir Teymuri



Re: Changing Staffs

2018-08-15 Thread Amir Teymuri


To clarify what i mean, i was wondering if there is a command to set the
staff type back to the last one just at any point, or do i have to set a
\new PreviousStaff each time i want to cancel the current staff out and
continue with the last one?

Thank you,

Amir Teymuri writes:

> Thank you for your reply!
>
> Is there a command like \startStaff to set the staff type back to the
> previouse one, if i am in a nested staff type construction?
>
> Some thing which would have the effect of the following example for
> example:
>
>
> \version "2.19.80"
>
> \new Staff \with { \accepts RhythmicStaff \accepts DrumStaff \accepts 
> MensuralStaff }
> {
>   c'4 g'
>   \stopStaff
>   \new RhythmicStaff
>   {\omit Staff.TimeSignature c d f
>\stopStaff
>\new DrumStaff
>{\omit Staff.TimeSignature d f8 c d4
> \stopStaff
> \new MensuralStaff
> {\omit Staff.TimeSignature f e g8}
> \new DrumStaff 
> {\omit Staff.TimeSignature f c4 }
>   }
>\new RhythmicStaff 
>{\omit Staff.TimeSignature \time 3/8  g4. f d}
>  }
>   \startStaff
>
>   c''1 \bar "|."
> }
>
>
>
> David Kastrup writes:
>
>> Amir Teymuri  writes:
>>
>>> Hello,
>>>
>>> How can i change a Staff for instance from a noraml one to a
>>> RhythmicStaff and then set back to the noraml Staff?
>>>
>>> Greetings,
>>> Amir
>>
>> \version "2.19.80"
>>
>> \new Staff \with { \accepts RhythmicStaff }
>> {
>>   c'1 g'
>>   \stopStaff
>>   \new RhythmicStaff
>>   { \omit Staff.TimeSignature 8. 16 8 8 8. 16 8 8 }
>>   \startStaff
>>   c''1 \bar "|."
>> }


-- 
ateymur...@gmail.com

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Changing Staffs

2018-08-15 Thread Amir Teymuri


Thank you for your reply!

Is there a command like \startStaff to set the staff type back to the
previouse one, if i am in a nested staff type construction?

Some thing which would have the effect of the following example for
example:


\version "2.19.80"

\new Staff \with { \accepts RhythmicStaff \accepts DrumStaff \accepts 
MensuralStaff }
{
  c'4 g'
  \stopStaff
  \new RhythmicStaff
  {\omit Staff.TimeSignature c d f
   \stopStaff
   \new DrumStaff
   {\omit Staff.TimeSignature d f8 c d4
\stopStaff
\new MensuralStaff
{\omit Staff.TimeSignature f e g8}
\new DrumStaff 
{\omit Staff.TimeSignature f c4 }
  }
   \new RhythmicStaff 
   {\omit Staff.TimeSignature \time 3/8  g4. f d}
 }
  \startStaff

  c''1 \bar "|."
}



David Kastrup writes:

> Amir Teymuri  writes:
>
>> Hello,
>>
>> How can i change a Staff for instance from a noraml one to a
>> RhythmicStaff and then set back to the noraml Staff?
>>
>> Greetings,
>> Amir
>
> \version "2.19.80"
>
> \new Staff \with { \accepts RhythmicStaff }
> {
>   c'1 g'
>   \stopStaff
>   \new RhythmicStaff
>   { \omit Staff.TimeSignature 8. 16 8 8 8. 16 8 8 }
>   \startStaff
>   c''1 \bar "|."
> }


-- 
ateymur...@gmail.com

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Changing Staffs

2018-08-01 Thread Amir Teymuri
Hello,

How can i change a Staff for instance from a noraml one to a
RhythmicStaff and then set back to the noraml Staff?

Greetings,
Amir
-- 
ateymur...@gmail.com

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Lilypond interfaces

2018-04-17 Thread Amir Teymuri

Hello,

does anyone knows about interfaces and/or notation systems written in 
other programming languages which use lilypond as backend? Two examples 
of such interfaces are fomus (https://common-lisp.net/project/fomus/doc/)

and abjad (http://projectabjad.org/).

cheers,
Amir


- - - - - - - - - - -
ateymur...@gmail.com
- - - - - - - - - - -

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Very small rhythmic values

2018-02-20 Thread Amir Teymuri

Hello,

is a 128 the smallest possible rhythmic value one can write in Lilypond or 
is there a way to write even shorter values (e.g. 256 or even smaller)?


Thanks in advance,

- - - - - - - - - - -
ateymur...@gmail.com

- - - - - - - - - - -

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: lilypond-invoke-editor script openes 2 Emacs windows

2017-02-01 Thread Amir Teymuri
Hi Federico,

thanks for the link, it solved my problem,



On Mon, 30 Jan 2017 18:23:45 +0100
Federico Bruni wrote:

> Il giorno dom 29 gen 2017 alle 23:20, Amir Teymuri 
> <ateymur...@gmail.com> ha scritto:
> > i have instructed the Evince PDF viewer to open the
> > Emacs editor on clicking on objects using the
> > lilypond-invoke-editor script, however this opens two
> > same Emacs windows! Any idea why this happens?
> 
> Hi Amir
> 
> try this:
> https://lists.gnu.org/archive/html/lilypond-user/2013-12/msg01396.html
> 


...
Amir Teymuri <ateymur...@gmail.com>

X-Mailer: Sylpheed 3.5.0beta1 (GTK+ 2.24.25;
x86_64-pc-linux-gnu)

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


lilypond-invoke-editor script openes 2 Emacs windows

2017-01-29 Thread Amir Teymuri
Hi,

i have instructed the Evince PDF viewer to open the Emacs editor on clicking on 
objects using the lilypond-invoke-editor script, however this opens two same 
Emacs windows! Any idea why this happens?

Cheers,
Amir

...
Amir Teymuri <ateymur...@gmail.com>

X-Mailer: Sylpheed 3.5.0beta1 (GTK+ 2.24.25; x86_64-pc-linux-gnu)

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Footnotes for subtitle

2017-01-29 Thread Amir Teymuri
Hello Pierre,

many thanks for your help. The line i am writing in there footnote is longer 
than one line and hence the remaining goes beyond the page. Do you know how to 
arrange the length of the footnotes to match into the page?

Bests,
Amir

On Sun, 29 Jan 2017 09:13:26 +0100
Pierre Perol-Schneider wrote:

> Hi Amir,
> For some reason the LSR is not reachable for the moment
> but there is a snippet about footnotes in a header.
> Try:
> 
> \version "2.18.2"
> \header { subtitle = "subtitle*" tagline = #f }
> \markup { \null \footnote \null \italic \concat { "*"
> \hspace #.3 "subtitle"}}
> 
> 
> Cheers,
> 
> Cheers,
> Pierre
> 
> 2017-01-28 22:38 GMT+01:00 Amir Teymuri
> <ateymur...@gmail.com>:
> 
> > Hello,
> >
> > is it possible to right a footnote about a word in the
> > subtitle of the piece?
> >
> > Regards,
> > Amir
> >
> > ...
> > Amir Teymuri <ateymur...@gmail.com>
> > 
> > X-Mailer: Sylpheed 3.5.0beta1 (GTK+ 2.24.25;
> > x86_64-pc-linux-gnu)
> >
> > _______
> > lilypond-user mailing list
> > lilypond-user@gnu.org
> > https://lists.gnu.org/mailman/listinfo/lilypond-user
> >


...
Amir Teymuri <ateymur...@gmail.com>

X-Mailer: Sylpheed 3.5.0beta1 (GTK+ 2.24.25;
x86_64-pc-linux-gnu)

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Footnotes for subtitle

2017-01-28 Thread Amir Teymuri
Hello,

is it possible to right a footnote about a word in the subtitle of the piece?

Regards,
Amir

...
Amir Teymuri <ateymur...@gmail.com>

X-Mailer: Sylpheed 3.5.0beta1 (GTK+ 2.24.25; x86_64-pc-linux-gnu)

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Making end-double barline visible again

2017-01-28 Thread Amir Teymuri
Hello Lilypond users,

i have made barlines for the whole piece invisible using:

\layout {
   \context {
 \Score
 \omit SpanBar
   }
   \context {
 \Staff
 \omit BarLine
   }
}

and want to have the ending barlines at the end of the piece visible again.
How should i proceed?
Any help is appreciated.

Thanks

...
Amir Teymuri <ateymur...@gmail.com>

X-Mailer: Sylpheed 3.5.0beta1 (GTK+ 2.24.25; x86_64-pc-linux-gnu)

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Cluster exapnded over two systems

2017-01-27 Thread Amir Teymuri
Hello Lilypond users,

i want to notate a cluster for piano reaching from b, to a'' expanding over 
both right- and lefthand systems. however i have found till know the 
\makeClusters command which doesn't look like what i am looking for. Can any 
one help?

Thanks,
Amir

...
Amir Teymuri <ateymur...@gmail.com>

X-Mailer: Sylpheed 3.5.0beta1 (GTK+ 2.24.25; x86_64-pc-linux-gnu)

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Changing the staff of a note inside of a chord

2017-01-19 Thread Amir Teymuri
Hello,

how can i change the Staff of only one note of a chord? For example if
i have the following line:

r2 8[ 8] r8 8

and want to change the staff of only the very last bes'' to be on the
base clef (with the rest of the chord being remained at treble clef)?

Thanks,
Amir

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Lilypond+Emacs

2015-11-20 Thread Amir Teymuri
Hello Lilypond communiy,

 

i am new to lilypond, i am trying to set up the lilypond mode in emacs, till now unsuccessfuly!

This is what i have tried so far:


	downloaded the lilypond extecutable sh file from the homepage and installed it by doing this command: 
	sh lilypond-2.18.2-1.linux.x86.sh
	


in the directory i downloaded the sh file. But in my /usr/local/lilypond/ there is only a usr directory and nothing more (no el files or such)

 

What i going wrong?

 

Thank you


sudo sh lilypond-2.18.2-1.linux-x86.sh 


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Aw: Re: Lilypond+Emacs

2015-11-20 Thread Amir Teymuri

Hello,

 

i have now uninstalled lilypond and reinstalled it again from the package repository, there is no directories named usr/share/emacs/site-lisp/ in the lilypond directory in my ~/usr/share. I have put this in my init.el:

(setq load-path (append (list (expand-file-name "~/usr/share/emacs/site-lisp")) load-path))
(autoload 'LilyPond-mode "lilypond-mode" "LilyPond Editing Mode" t)
(add-to-list 'auto-mode-alist '("\\.ly$" . LilyPond-mode))
(add-to-list 'auto-mode-alist '("\\.ily$" . LilyPond-mode))
(add-hook 'LilyPond-mode-hook (lambda () (turn-on-font-lock)))

 

But if now i open an .ly file the text are colored, and i see a LilyPond at the top of minibuffer (as majormode), but there are no autocompletions (although there are auto-indentations), is this now the correct lilypond mode?

 

thanks

 

Gesendet: Freitag, 20. November 2015 um 17:14 Uhr
Von: "Simon Albrecht" <simon.albre...@mail.de>
An: "Amir Teymuri" <amirteym...@gmx.de>, lilypond-user@gnu.org
Betreff: Re: Lilypond+Emacs

On 20.11.2015 16:40, Amir Teymuri wrote:
> Hello Lilypond communiy,
> i am new to lilypond, i am trying to set up the lilypond mode in
> emacs, till now unsuccessfuly!
> This is what i have tried so far:
>
> 1. downloaded the lilypond extecutable sh file from the homepage and
> installed it by doing this command:
> sh lilypond-2.18.2-1.linux.x86.sh
>
> in the directory i downloaded the sh file. But in my
> /usr/local/lilypond/ there is only a usr directory and nothing more
> (no el files or such)

The .el files should be in lilypond/usr/share/emacs/site-lisp/.

HTH, Simon




___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user