Re: I'm not smart enough to figure out the math for this.

2016-04-04 Thread Paul Morris
> On Mar 9, 2016, at 6:27 PM, David Kastrup  wrote:
> 
> \version "2.19.28"
> 
> show =
> #(define-music-function (mup item) (markup? symbol-list-or-music?)
>  (propertyTweak 'stencil
>   (lambda (grob)
>(grob-interpret-markup grob mup))
>   item))
> 
> \relative c' \new Staff {
>  \show \markup \compound-meter #'(4 . 3)
>  \time 3/4
>  c4 c c | c c c
> }
> 
> Maybe we should have \show (possibly with a different name) as a nice
> supplement to \omit/\hide.

This seems like a good idea to me.  Previously when this was discussed, I 
argued that the function should take a stencil as well as a markup and maybe a 
procedure too…  but I now see the sense in just providing a simple and 
high-level shortcut that takes a markup.  (And “ \markup \stencil sss “ still 
allows use of stencils.)

Cheers,
-Paul___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: I'm not smart enough to figure out the math for this.

2016-03-09 Thread David Kastrup
Simon Albrecht  writes:

> On 08.03.2016 22:06, Michael Rivers wrote:
>> Thanks for the solutions. I'm OK with an error message!
>
> Or you can insert
>
> #(ly:expect-warning "strange")
>
> in your source.

Here is a warning-less version:

\version "2.19.28"

show =
#(define-music-function (mup item) (markup? symbol-list-or-music?)
  (propertyTweak 'stencil
   (lambda (grob)
(grob-interpret-markup grob mup))
   item))

\relative c' \new Staff {
  \show \markup \compound-meter #'(4 . 3)
  \time 3/4
  c4 c c | c c c
}

Maybe we should have \show (possibly with a different name) as a nice
supplement to \omit/\hide.

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


Re: I'm not smart enough to figure out the math for this.

2016-03-08 Thread Blöchl Bernhard


Do not understand the signification to break the rules as you 
immediately get an error response of lilypond. But for education 
purposes ...


I hope Michael Rivers and the list will accept my apology.


Am 08.03.2016 21:41, schrieb Simon Albrecht:

On 08.03.2016 21:19, Blöchl Bernhard wrote:

May be you need some private coaching in waltz math ?
Here it is:

\relative c' { \time 3/4
  c4 c c | c c c
}


Bernhard, what the heck do you think you’re up to?
Please _read_ others’ posts before sneering at them, or better just
quit the sneering.
Michael wrote that he wanted a _printed_ time signature of 4/3, for
teaching purposes.

Regards, Simon


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


Re: I'm not smart enough to figure out the math for this.

2016-03-08 Thread Simon Albrecht

On 08.03.2016 22:06, Michael Rivers wrote:

Thanks for the solutions. I'm OK with an error message!


Or you can insert

#(ly:expect-warning "strange")

in your source.

Best, Simon

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


Re: I'm not smart enough to figure out the math for this.

2016-03-08 Thread Michael Rivers
Thanks for the solutions. I'm OK with an error message!



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/I-m-not-smart-enough-to-figure-out-the-math-for-this-tp188290p188297.html
Sent from the User mailing list archive at Nabble.com.

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


Re: I'm not smart enough to figure out the math for this.

2016-03-08 Thread Simon Albrecht

On 08.03.2016 21:19, Blöchl Bernhard wrote:

May be you need some private coaching in waltz math ?
Here it is:

\relative c' { \time 3/4
  c4 c c | c c c
} 


Bernhard, what the heck do you think you’re up to?
Please _read_ others’ posts before sneering at them, or better just quit 
the sneering.
Michael wrote that he wanted a _printed_ time signature of 4/3, for 
teaching purposes.


Regards, Simon

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


Re: I'm not smart enough to figure out the math for this.

2016-03-08 Thread Blöchl Bernhard

May be you need some private coaching in waltz math ?
Here iot is:

\relative c' { \time 3/4
  c4 c c | c c c
}

Am 08.03.2016 21:00, schrieb Michael Rivers:
I'm trying to make a snippet for students with intentional mistakes for 
them

to correct. I want the time signature to say 4/3, but for the music to
actually be in 3/4. Should I use "scaleDurations", and what should the 
ratio

be? Or is there a better way to do this?

\version "2.19.24"

\relative c' { \time 4/3
   c4 c c | c c c }



--
View this message in context:
http://lilypond.1069038.n5.nabble.com/I-m-not-smart-enough-to-figure-out-the-math-for-this-tp188290.html
Sent from the User mailing list archive at Nabble.com.

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


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


Re: I'm not smart enough to figure out the math for this.

2016-03-08 Thread David Kastrup
Michael Rivers  writes:

> I'm trying to make a snippet for students with intentional mistakes for them
> to correct. I want the time signature to say 4/3, but for the music to
> actually be in 3/4. Should I use "scaleDurations", and what should the ratio
> be? Or is there a better way to do this?
>
> \version "2.19.24"
>
> \relative c' { \time 4/3 
>c4 c c | c c c } 

\version "2.19.24"

\scaleDurations 16/9
\relative c' { \time 4/3 
   c4 c c | c c c } 

Expect a warning.

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


Re: I'm not smart enough to figure out the math for this.

2016-03-08 Thread Mike Solomon

> On 08 Mar 2016, at 22:00, Michael Rivers  wrote:
> 
> I'm trying to make a snippet for students with intentional mistakes for them
> to correct. I want the time signature to say 4/3, but for the music to
> actually be in 3/4. Should I use "scaleDurations", and what should the ratio
> be? Or is there a better way to do this?
> 
> \version "2.19.24"
> 
> \relative c' { \time 4/3 
>   c4 c c | c c c } 
> 

\relative c' {
  \time 4/3
  a4*16/9 a4*16/9 a4*16/9 | 
}

16/9 comes from first scaling quarter notes to 4/3 (so that 4 would fit in a 
bar of 4/3) and then scaling again by 4/3 so that 3 would fit in a bar (like 
triplets).

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


Re: I'm not smart enough to figure out the math for this.

2016-03-08 Thread Kieren MacMillan
Hi Michael,

> I want the time signature to say 4/3, but for the music to actually be in 3/4.

In this case, you can simply override the fraction and ignore the error:

\version "2.19.24"

\relative c' {
  \time 3/4
  \set Staff.timeSignatureFraction = 4/3
  c4 c c | c c c
}

Hope that helps!
Kieren.


Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: i...@kierenmacmillan.info


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