Re: \path in markup dashed line

2021-01-27 Thread Aaron Hill

Sending to mailing list for visibility...

On 2021-01-27 5:37 pm, Dimitris Marinakis wrote:
For some reason in both of my systems (Mac & PC), tested with all 
recent

versions, this code only works correctly in 2.19.xx . With the other
versions only the default path gets displayed. All the dashed ones
disappear.
What would cause such behaviour?


Changes to how outputters work it would seem.  Adding a custom stencil 
command requires different work:



% #(module-define! (resolve-module '(scm output-ps))
%   'dashed-path dashed-path-ps)

#(let* ((module (resolve-module '(scm output-ps)))
(alist (module-ref module 'stencil-dispatch-alist '(
  (module-define! module 'stencil-dispatch-alist
   (acons 'dashed-path dashed-path-ps alist)))


As shown above, replace the logic that defines dashed-path as a 
procedure within the output-ps module instead with logic that appends a 
new dispatch entry.


With that, I was able to use 2.22.0 and compile my original code 
otherwise unchanged.



-- Aaron Hill



Re: Remove "Solo" text when using part combiner

2021-01-27 Thread Karlin High

On 1/27/2021 9:03 PM, Calvin Ransom wrote:
I am combining some piano parts and LilyPond engraves the word "Solo" in 
various places, is there any way to prevent this from happening?




\new Staff \with {
  printPartCombineTexts = ##f
}

--
Karlin High
Missouri, USA



Remove "Solo" text when using part combiner

2021-01-27 Thread Calvin Ransom
New LilyPond user here,

I am combining some piano parts and LilyPond engraves the word "Solo" in
various places, is there any way to prevent this from happening?

Thanks,

Calvin


Re: Solution "Midi Through Port-0"?

2021-01-27 Thread Federico Bruni

Sorry, I hit reply before finishing...


On Wed, Jan 27 2021 at 11:33:58 PM +0100, Federico Bruni 
 wrote:
On Wed, Jan 27 2021 at 08:24:50 PM +0100, Silvain Dupertuis 
 wrote:

I am on Ubuntu (18.04 on my main machine) and use Frescobaldi
 Midi output works fine for me.
I did not play with settings so far...
For midi ports, I have
Output reader = TiMidity port 0
Entry port = Midi Through Port-0



You did not have to play with the settings probably because you 
already had timidity installed and running as a service in background.


More information on MIDI playback is in the wiki:


https://github.com/frescobaldi/frescobaldi/wiki/MIDI-playback-on-Linux




The only thing : If I just press the  button
 (whatever it is called in English, in French, it says "graver")
 it does not save ouput. I have to save the Lilypond file also to 
get PDF and midi output.


This is a common misunderstanding.
There's an option in the Preferences to autosave the file when you 
click on Engrave button.


Perhaps the default should be the opposite of what it is now.
I think I made this suggestion on some Github issue.






Re: Solution "Midi Through Port-0"?

2021-01-27 Thread Federico Bruni
On Wed, Jan 27 2021 at 08:24:50 PM +0100, Silvain Dupertuis 
 wrote:

I am on Ubuntu (18.04 on my main machine) and use Frescobaldi
 Midi output works fine for me.
I did not play with settings so far...
For midi ports, I have
Output reader = TiMidity port 0
Entry port = Midi Through Port-0



You did not have to play with the settings probably because you already 
had timidity installed and running as a service in background.


More information on MIDI playback is in the wiki:



The only thing : If I just press the  button
 (whatever it is called in English, in French, it says "graver")
 it does not save ouput. I have to save the Lilypond file also to get 
PDF and midi output.








Re: Scheme: help with "Center text below hairpin dynamics"

2021-01-27 Thread David Stephen Grant
Many thanks for this! For my case the hairpin-attached text will have
a different size to other text anyway, so a slight difference is
perfectly fine.

Best,
David

On Wed, 27 Jan 2021 at 22:59, Thomas Morley  wrote:
>
> Am Mi., 27. Jan. 2021 um 21:32 Uhr schrieb David Stephen Grant
> :
> >
> > Hi all,
> >
> > For "Center text below hairpin dynamics" in the LSR
> > (http://lsr.di.unimi.it/LSR/Snippet?id=233) I'd like the text to scale
> > with the staff size for ossia staves. Does anyone have any pointers?
> >
> > hairpinWithCenteredText =
> > #(define-music-function (parser location text) (markup?)
> >   #{
> > \once \override Voice.Hairpin.after-line-breaking =
> >   #(lambda (grob)
> > (let* ((stencil (ly:hairpin::print grob))
> >(par-y (ly:grob-parent grob Y))
> >(dir (ly:grob-property par-y 'direction))
> >(staff-space (ly:output-def-lookup
> >  (ly:grob-layout grob) 'staff-space))
> >(staff-line-thickness
> >  (ly:output-def-lookup (ly:grob-layout grob) 
> > 'line-thickness))
> >(new-stencil (ly:stencil-aligned-to
> >  (ly:stencil-combine-at-edge
> >(ly:stencil-aligned-to stencil X CENTER)
> >Y dir
> >(ly:stencil-aligned-to
> >  (grob-interpret-markup grob text) X CENTER))
> >  X LEFT))
> >(par-x (ly:grob-parent grob X))
> >(dyn-text (grob::has-interface par-x 
> > 'dynamic-text-interface))
> >(dyn-text-stencil-x-length
> >  (if dyn-text
> >(interval-length
> >  (ly:stencil-extent (ly:grob-property par-x 'stencil) 
> > X))
> >0))
> >(x-shift
> >  (if dyn-text
> >(-
> >  (+ staff-space dyn-text-stencil-x-length)
> >  (* 0.5 staff-line-thickness)) 0)))
> >
> > (ly:grob-set-property! grob 'Y-offset 0)
> > (ly:grob-set-property! grob 'stencil
> >(ly:stencil-translate-axis
> > new-stencil
> > x-shift X
> >   #})
> >
> > hairpinPoco =
> > \hairpinWithCenteredText \markup { \fontsize #-1 "poco" }
> >
> > music = {
> >   \hairpinPoco
> >   c'4 \< e' f' g' \!
> > }
> >
> > \score {
> >   <<
> > \new Staff \with {
> >   fontSize = #-5
> >   \override StaffSymbol.staff-space = #(magstep -5)
> > } \music
> > \new Staff \music
> >   >>
> > }
> >
>
> Hi David,
>
> below does a fairly good job.
> Alas, it's not perfect: The added TextScript does not have exactly the
> same size as the text added text to the hairpin and I have no clue why
> not ...
>
> hairpinWithCenteredText =
> #(define-music-function (parser location text) (markup?)
>   #{
> \once \override Voice.Hairpin.after-line-breaking =
>   #(lambda (grob)
> (let* ((stencil (ly:hairpin::print grob))
>(par-y (ly:grob-parent grob Y))
>(dir (ly:grob-property par-y 'direction))
>(staff-space (ly:output-def-lookup
>  (ly:grob-layout grob) 'staff-space))
>(staff-line-thickness
>  (ly:output-def-lookup (ly:grob-layout grob) 'line-thickness))
>(new-stencil (ly:stencil-aligned-to
>  (ly:stencil-combine-at-edge
>(ly:stencil-aligned-to stencil X CENTER)
>Y dir
>(ly:stencil-aligned-to
>  (grob-interpret-markup
>grob
>(make-fontsize-markup
>  (magnification->font-size
>(+ (ly:staff-symbol-staff-space grob)
>   (/ staff-line-thickness 2)))
>text)) X CENTER))
>  X LEFT))
>(par-x (ly:grob-parent grob X))
>(dyn-text (grob::has-interface par-x 'dynamic-text-interface))
>(dyn-text-stencil-x-length
>  (if dyn-text
>(interval-length
>  (ly:stencil-extent (ly:grob-property par-x 'stencil) X))
>0))
>(x-shift
>  (if dyn-text
>(-
>  (+ staff-space dyn-text-stencil-x-length)
>  (* 0.5 staff-line-thickness)) 0)))
>
> (ly:grob-set-property! grob 'Y-offset 0)
> (ly:grob-set-property! grob 'stencil
>(ly:stencil-translate-axis
> new-stencil
> x-shift X
>   #})
>
> hairpinPoco =
> \hairpinWithCenteredText \markup { \fontsize #-1 "poco" }
>
> music = {
>   \hairpinPoco
>   c'4 \<_"poco" e' f' g' \!
> }
>
> val = #-5
>
> \score {
>   <<
> \new Staff \with {
>   fontSize = \val
>   \override 

Re: Scheme: help with "Center text below hairpin dynamics"

2021-01-27 Thread Thomas Morley
Am Mi., 27. Jan. 2021 um 21:32 Uhr schrieb David Stephen Grant
:
>
> Hi all,
>
> For "Center text below hairpin dynamics" in the LSR
> (http://lsr.di.unimi.it/LSR/Snippet?id=233) I'd like the text to scale
> with the staff size for ossia staves. Does anyone have any pointers?
>
> hairpinWithCenteredText =
> #(define-music-function (parser location text) (markup?)
>   #{
> \once \override Voice.Hairpin.after-line-breaking =
>   #(lambda (grob)
> (let* ((stencil (ly:hairpin::print grob))
>(par-y (ly:grob-parent grob Y))
>(dir (ly:grob-property par-y 'direction))
>(staff-space (ly:output-def-lookup
>  (ly:grob-layout grob) 'staff-space))
>(staff-line-thickness
>  (ly:output-def-lookup (ly:grob-layout grob) 'line-thickness))
>(new-stencil (ly:stencil-aligned-to
>  (ly:stencil-combine-at-edge
>(ly:stencil-aligned-to stencil X CENTER)
>Y dir
>(ly:stencil-aligned-to
>  (grob-interpret-markup grob text) X CENTER))
>  X LEFT))
>(par-x (ly:grob-parent grob X))
>(dyn-text (grob::has-interface par-x 'dynamic-text-interface))
>(dyn-text-stencil-x-length
>  (if dyn-text
>(interval-length
>  (ly:stencil-extent (ly:grob-property par-x 'stencil) X))
>0))
>(x-shift
>  (if dyn-text
>(-
>  (+ staff-space dyn-text-stencil-x-length)
>  (* 0.5 staff-line-thickness)) 0)))
>
> (ly:grob-set-property! grob 'Y-offset 0)
> (ly:grob-set-property! grob 'stencil
>(ly:stencil-translate-axis
> new-stencil
> x-shift X
>   #})
>
> hairpinPoco =
> \hairpinWithCenteredText \markup { \fontsize #-1 "poco" }
>
> music = {
>   \hairpinPoco
>   c'4 \< e' f' g' \!
> }
>
> \score {
>   <<
> \new Staff \with {
>   fontSize = #-5
>   \override StaffSymbol.staff-space = #(magstep -5)
> } \music
> \new Staff \music
>   >>
> }
>

Hi David,

below does a fairly good job.
Alas, it's not perfect: The added TextScript does not have exactly the
same size as the text added text to the hairpin and I have no clue why
not ...

hairpinWithCenteredText =
#(define-music-function (parser location text) (markup?)
  #{
\once \override Voice.Hairpin.after-line-breaking =
  #(lambda (grob)
(let* ((stencil (ly:hairpin::print grob))
   (par-y (ly:grob-parent grob Y))
   (dir (ly:grob-property par-y 'direction))
   (staff-space (ly:output-def-lookup
 (ly:grob-layout grob) 'staff-space))
   (staff-line-thickness
 (ly:output-def-lookup (ly:grob-layout grob) 'line-thickness))
   (new-stencil (ly:stencil-aligned-to
 (ly:stencil-combine-at-edge
   (ly:stencil-aligned-to stencil X CENTER)
   Y dir
   (ly:stencil-aligned-to
 (grob-interpret-markup
   grob
   (make-fontsize-markup
 (magnification->font-size
   (+ (ly:staff-symbol-staff-space grob)
  (/ staff-line-thickness 2)))
   text)) X CENTER))
 X LEFT))
   (par-x (ly:grob-parent grob X))
   (dyn-text (grob::has-interface par-x 'dynamic-text-interface))
   (dyn-text-stencil-x-length
 (if dyn-text
   (interval-length
 (ly:stencil-extent (ly:grob-property par-x 'stencil) X))
   0))
   (x-shift
 (if dyn-text
   (-
 (+ staff-space dyn-text-stencil-x-length)
 (* 0.5 staff-line-thickness)) 0)))

(ly:grob-set-property! grob 'Y-offset 0)
(ly:grob-set-property! grob 'stencil
   (ly:stencil-translate-axis
new-stencil
x-shift X
  #})

hairpinPoco =
\hairpinWithCenteredText \markup { \fontsize #-1 "poco" }

music = {
  \hairpinPoco
  c'4 \<_"poco" e' f' g' \!
}

val = #-5

\score {
  <<
\new Staff \with {
  fontSize = \val
  \override StaffSymbol.staff-space = #(magstep val)
} \music
\new Staff \music
  >>
}

Cheers,
  Harm



Scheme: help with "Center text below hairpin dynamics"

2021-01-27 Thread David Stephen Grant
Hi all,

For "Center text below hairpin dynamics" in the LSR
(http://lsr.di.unimi.it/LSR/Snippet?id=233) I'd like the text to scale
with the staff size for ossia staves. Does anyone have any pointers?

hairpinWithCenteredText =
#(define-music-function (parser location text) (markup?)
  #{
\once \override Voice.Hairpin.after-line-breaking =
  #(lambda (grob)
(let* ((stencil (ly:hairpin::print grob))
   (par-y (ly:grob-parent grob Y))
   (dir (ly:grob-property par-y 'direction))
   (staff-space (ly:output-def-lookup
 (ly:grob-layout grob) 'staff-space))
   (staff-line-thickness
 (ly:output-def-lookup (ly:grob-layout grob) 'line-thickness))
   (new-stencil (ly:stencil-aligned-to
 (ly:stencil-combine-at-edge
   (ly:stencil-aligned-to stencil X CENTER)
   Y dir
   (ly:stencil-aligned-to
 (grob-interpret-markup grob text) X CENTER))
 X LEFT))
   (par-x (ly:grob-parent grob X))
   (dyn-text (grob::has-interface par-x 'dynamic-text-interface))
   (dyn-text-stencil-x-length
 (if dyn-text
   (interval-length
 (ly:stencil-extent (ly:grob-property par-x 'stencil) X))
   0))
   (x-shift
 (if dyn-text
   (-
 (+ staff-space dyn-text-stencil-x-length)
 (* 0.5 staff-line-thickness)) 0)))

(ly:grob-set-property! grob 'Y-offset 0)
(ly:grob-set-property! grob 'stencil
   (ly:stencil-translate-axis
new-stencil
x-shift X
  #})

hairpinPoco =
\hairpinWithCenteredText \markup { \fontsize #-1 "poco" }

music = {
  \hairpinPoco
  c'4 \< e' f' g' \!
}

\score {
  <<
\new Staff \with {
  fontSize = #-5
  \override StaffSymbol.staff-space = #(magstep -5)
} \music
\new Staff \music
  >>
}



Re: \repeat unfold 0 times?

2021-01-27 Thread Lukas-Fabian Moser

Hi Zachary,

I have found a way to use a scheme conditional to check if repeatcount 
is greater than zero before evaluating repeat. Here's the snippet:


​\version "2.20.0"

m = #0
n = #1
o = #2


\new Staff {
  \repeat unfold #m dis'1
  #(let ((x #{ \repeat unfold #m dis1 #}))
        (if (> m 0) x))
  #(let ((x #{ \repeat unfold #n d1 #}))
        (if (> n 0) x))
  #(let ((x #{ \repeat unfold #o des1 #}))
        (if (> o 0) x))
}

I'm looking for a more elegant solution that doesn't have me going in 
and out of scheme and lilypond. Please offer me some suggestions.


How about:

\version "2.22.0"

m = 0
n = 1
o = 2

empty-music = {}

unfold =
#(define-music-function (n mus) (index? ly:music?)
   (if (positive? n)
   #{ \repeat unfold #n { #mus } #}
   #{ #} ))

\new Staff {
  \unfold \m dis1
  \unfold \n des1
  \unfold \o dis1
}

Lukas



Re: Solution "Midi Through Port-0"?

2021-01-27 Thread Silvain Dupertuis

Curious.

I am on Ubuntu (18.04 on my main machine) and use Frescobaldi
Midi output works fine for me.
I did not play with settings so far...
For midi ports, I have
Output reader = TiMidity port 0
Entry port = Midi Through Port-0

The only thing : If I just press the button
(whatever it is called in English, in French, it says "graver")
it does not save ouput. I have to save the Lilypond file also to get PDF and 
midi output.

What is happning in your case?
No output or what?

Normally, ALSA (Advanced Linux Sound Architecture) should be installed
and taking care of the sound on the system.

You can check on the command line (copy from my systm).
alsa
=> Usage: /sbin/alsa {unload|reload|force-unload|force-reload|suspend|resume}
or, to see where the software is installed
which alsa
=> /sbin/alsa

But I no not think Lilypond needs it to build a midi file.
You might need it to open you midi file and listen to the sound...

Le 27.01.21 à 18:27, andy c a écrit :

Hello there,

I am a new Lilypond/Frescobaldi (and also Linux (Ubuntu20)) user, found out MIDI output 
is not working on Frescobaldi.


In preferences-MIDI settings the only player output options is "Midi Through 
Port-0"

in Denemo the MIDI output works just fine, couldn't find anything on Firefox and 
Lilypond.org search bar.


How can I get MIDI output to work?

thanks,
Andy




--
Silvain Dupertuis
Route de Lausanne 335
1293 Bellevue (Switzerland)
tél. +41-(0)22-774.20.67
portable +41-(0)79-604.87.52
web: silvain-dupertuis.org 


avoid alignment of hairpin and dynamic text

2021-01-27 Thread Werner LEMBERG

How can I avoid the vertical alignment of a hairpin and a dynamic text
that starts or stops the hairpin?  For example, in this situation

  { f1\< | e''\p }

I want to make LilyPond position the `\p` independently of the the
crescendo – in particular, I don't want to fiddle with `padding`,
`extra-offset`, or something similar to move the `\p' up; LilyPond
already knows how to position the `\p` correctly.[*]

In other words, how can I influence where a `DynamicLineSpanner`
starts and end?


Werner


[*] I need this for some special situations where vertical space is
very limited.


\repeat unfold 0 times?

2021-01-27 Thread Pine, Zachary V
Hello All,

I have a little scheme function which gives me the number of times to repeat a 
particular bit of music in my composition. Sometimes I want that number to be 
zero and thus print no music at all.

I'm using the "\repeat unfold repeatcount" syntax. However, when repeatcount is 
zero, the music is still engraved one time.

I have found a way to use a scheme conditional to check if repeatcount is 
greater than zero before evaluating repeat. Here's the snippet:

​\version "2.20.0"

m = #0
n = #1
o = #2


\new Staff {
  \repeat unfold #m dis'1
  #(let ((x #{ \repeat unfold #m dis1 #}))
(if (> m 0) x))
  #(let ((x #{ \repeat unfold #n d1 #}))
(if (> n 0) x))
  #(let ((x #{ \repeat unfold #o des1 #}))
(if (> o 0) x))
}

I'm looking for a more elegant solution that doesn't have me going in and out 
of scheme and lilypond. Please offer me some suggestions.

Best,
Zachary Pine


Re: Rhythmic staff MIDI

2021-01-27 Thread Martín Rincón Botero
Great! Glad it helped.

www.martinrinconbotero.com
On 27. Jan 2021, 19:02 +0100, ebenezer , 
wrote:
> Thank you Martín,
> That snippet has helped enormously. I had tried to incorporate drumStyleTable 
> earlier but it didn't work the way I was using it. I tried 
> StaffSymbol.line-count = #1 and that looks good, too :)
> Cheers!
>
> On 2021-01-27 15:32, Martín Rincón Botero wrote:
> > Oops, missed a couple of curly braces:
> >
> > \context DrumStaff = "bongo"
> >             \with
> >             {
> >                 \override StaffSymbol.line-count = #2
> >                 drumStyleTable = #bongos-style
> >                 instrumentName = \markup { Bongo }
> >                 shortInstrumentName = \markup { Bng. }
> >             }
> >             {
> >             \drummode
> >                 {
> >                 boh4 bol boh bol
> >                 }
> >             }
> >
> >
> >
> > > Am Mi., 27. Jan. 2021 um 16:31 Uhr schrieb Martín Rincón Botero 
> > > :
> > > > Well, I don't use the RhythmicStaff for bongos and wouldn't recommend 
> > > > it either. What I use looks something like this:
> > > >
> > > > \context DrumStaff = "bongo"
> > > >             \with
> > > >             {
> > > >                 \override StaffSymbol.line-count = #2
> > > >                 drumStyleTable = #bongos-style
> > > >                 instrumentName = \markup { Bongo }
> > > >                 shortInstrumentName = \markup { Bng. }
> > > >             }
> > > >             \drummode
> > > >                 {
> > > >                 boh4 bol boh bol
> > > >                 }
> > > >
> > > > Perhaps you'll find this esthetically pleasing as well ;-). With this 
> > > > setup I haven't had any issues with MIDI. You don't even have to 
> > > > manually select any MIDI instrument or do any extra configuration. At 
> > > > least for me, this "just works" and is notationally correct.
> > > >
> > > > Cheers,
> > > > Martín.
> > > >
> > > >
> > > > > Am Mi., 27. Jan. 2021 um 16:21 Uhr schrieb ebenezer 
> > > > > :
> > > > > > Hello Martin,
> > > > > > No, I can use DrumStaff. I'm still experimenting with LilyPond, 
> > > > > > finding out what works easily and what doesn't.
> > > > > > Aesthetically, a RhythmicStaff looks better, so if it's something I 
> > > > > > can accomplish without too much effort (~1 day), I would delve 
> > > > > > deeper.
> > > > > > Since posting I have found that Drum_note_performer will output 
> > > > > > MIDI, but it's a soft piano sound, so I am now stuck at this point.
> > > > > > Thanks.
> > > > > >
> > > > > > On 2021-01-27 13:22, Martín Rincón Botero wrote:
> > > > > > > Hello,
> > > > > > >
> > > > > > > is there any reason for not using DrumStaff if that works fine 
> > > > > > > for MIDI?
> > > > > > >
> > > > > > > Regards,
> > > > > > > Martín.
> > > > > > >
> > > > > > > www.martinrinconbotero.com
> > > > > > > On 27. Jan 2021, 11:52 +0100, ebenezer 
> > > > > > > , wrote:
> > > > > > > > Hello everyone,
> > > > > > > > I am attempting to use a percussion staff for a bongo part in a 
> > > > > > > > score.
> > > > > > > > staffBongo = \drummode {
> > > > > > > > boh4_\markup { \sans boh } boho8 bohm8 % -- and so on...
> > > > > > > > }
> > > > > > > > partBongo = \new RhythmicStaff \with {
> > > > > > > > } \staffBongo
> > > > > > > > doesn't output any MIDI. Note that using a DrumStaff works 
> > > > > > > > fine. The contexts under \midi {} are the same for both 
> > > > > > > > DrumStaff and RhythmicStaff. What am I doing that is incorrect, 
> > > > > > > > please?
> > > > > > > > Thanks.
> > > > > > > >
> > > > > >
> > > >
> > > >
> > > > --
> > > > www.martinrinconbotero.com
> >
> >
> > --
> > www.martinrinconbotero.com
>


Re: Rhythmic staff MIDI

2021-01-27 Thread ebenezer

Thank you Martín,

That snippet has helped enormously. I had tried to incorporate 
drumStyleTable earlier but it didn't work the way I was using it. I 
tried StaffSymbol.line-count = #1 and that looks good, too :)


Cheers!


On 2021-01-27 15:32, Martín Rincón Botero wrote:

Oops, missed a couple of curly braces:

\context DrumStaff = "bongo"
\with
{
\override StaffSymbol.line-count = #2
drumStyleTable = #bongos-style
instrumentName = \markup { Bongo }
shortInstrumentName = \markup { Bng. }
}
{
\drummode
{
boh4 bol boh bol
}
}



Am Mi., 27. Jan. 2021 um 16:31 Uhr schrieb Martín Rincón Botero 
mailto:martinrinconbot...@gmail.com>>:


Well, I don't use the RhythmicStaff for bongos and wouldn't
recommend it either. What I use looks something like this:

\context DrumStaff = "bongo"
\with
{
\override StaffSymbol.line-count = #2
drumStyleTable = #bongos-style
instrumentName = \markup { Bongo }
shortInstrumentName = \markup { Bng. }
}
\drummode
{
boh4 bol boh bol
}

Perhaps you'll find this esthetically pleasing as well ;-). With
this setup I haven't had any issues with MIDI. You don't even have
to manually select any MIDI instrument or do any extra
configuration. At least for me, this "just works" and is
notationally correct.

Cheers,
Martín.


Am Mi., 27. Jan. 2021 um 16:21 Uhr schrieb ebenezer
mailto:ebene...@thedorsetpagdens.plus.com>>:

Hello Martin,

No, I can use DrumStaff. I'm still experimenting with
LilyPond, finding out what works easily and what doesn't.

Aesthetically, a RhythmicStaff looks better, so if it's
something I can accomplish without too much effort (~1 day), I
would delve deeper.

Since posting I have found that Drum_note_performer will
output MIDI, but it's a soft piano sound, so I am now stuck at
this point.

Thanks.


On 2021-01-27 13:22, Martín Rincón Botero wrote:

Hello,

is there any reason for not using DrumStaff if that works
fine for MIDI?

Regards,
Martín.

www.martinrinconbotero.com 
On 27. Jan 2021, 11:52 +0100, ebenezer

, wrote:


Hello everyone,

I am attempting to use a percussion staff for a bongo part
in a score.

staffBongo = \drummode {

boh4_\markup { \sans boh } boho8 bohm8 % -- and so on...

}

partBongo = \new RhythmicStaff \with {

} \staffBongo

doesn't output any MIDI. Note that using a DrumStaff works
fine. The contexts under \midi {} are the same for both
DrumStaff and RhythmicStaff. What am I doing that is
incorrect, please?

Thanks.





-- 
www.martinrinconbotero.com 




--
www.martinrinconbotero.com 




Re: Solution "Midi Through Port-0"?

2021-01-27 Thread Jean Bréfort
Hi,

This has been discussed some time ago on the french list. The solution
is described there (in french):

https://lists.gnu.org/archive/html/lilypond-user-fr/2016-02/msg00051.html

You can also add the command to your .profile (that's what I did and it
works). The actual command is:

timidity -iA -B2,8 -Os1l -s 44100 -EFreverb=0&

Hope this helps,
Jean

Le mercredi 27 janvier 2021 à 14:27 -0300, andy c a écrit :
> Hello there,
> 
> I am a new Lilypond/Frescobaldi (and also Linux (Ubuntu20)) user,  found 
> out MIDI output is not working on Frescobaldi.
> 
> In preferences-MIDI settings the only player output options is "Midi 
> Through Port-0"
> 
> in Denemo the MIDI output works just fine, couldn't find anything on 
> Firefox and Lilypond.org search bar.
> 
> How can I get MIDI output to work?
> 
> thanks,
> Andy
> 
> 





Solution "Midi Through Port-0"?

2021-01-27 Thread andy c

Hello there,

I am a new Lilypond/Frescobaldi (and also Linux (Ubuntu20)) user,  found 
out MIDI output is not working on Frescobaldi.


In preferences-MIDI settings the only player output options is "Midi 
Through Port-0"


in Denemo the MIDI output works just fine, couldn't find anything on 
Firefox and Lilypond.org search bar.


How can I get MIDI output to work?

thanks,
Andy




Re: Rhythmic staff MIDI

2021-01-27 Thread Martín Rincón Botero
Oops, missed a couple of curly braces:

\context DrumStaff = "bongo"
\with
{
\override StaffSymbol.line-count = #2
drumStyleTable = #bongos-style
instrumentName = \markup { Bongo }
shortInstrumentName = \markup { Bng. }
}
{
\drummode
{
boh4 bol boh bol
}
}



Am Mi., 27. Jan. 2021 um 16:31 Uhr schrieb Martín Rincón Botero <
martinrinconbot...@gmail.com>:

> Well, I don't use the RhythmicStaff for bongos and wouldn't recommend it
> either. What I use looks something like this:
>
> \context DrumStaff = "bongo"
> \with
> {
> \override StaffSymbol.line-count = #2
> drumStyleTable = #bongos-style
> instrumentName = \markup { Bongo }
> shortInstrumentName = \markup { Bng. }
> }
> \drummode
> {
> boh4 bol boh bol
> }
>
> Perhaps you'll find this esthetically pleasing as well ;-). With this
> setup I haven't had any issues with MIDI. You don't even have to manually
> select any MIDI instrument or do any extra configuration. At least for me,
> this "just works" and is notationally correct.
>
> Cheers,
> Martín.
>
>
> Am Mi., 27. Jan. 2021 um 16:21 Uhr schrieb ebenezer <
> ebene...@thedorsetpagdens.plus.com>:
>
>> Hello Martin,
>>
>> No, I can use DrumStaff. I'm still experimenting with LilyPond, finding
>> out what works easily and what doesn't.
>>
>> Aesthetically, a RhythmicStaff looks better, so if it's something I can
>> accomplish without too much effort (~1 day), I would delve deeper.
>>
>> Since posting I have found that Drum_note_performer will output MIDI, but
>> it's a soft piano sound, so I am now stuck at this point.
>>
>> Thanks.
>>
>> On 2021-01-27 13:22, Martín Rincón Botero wrote:
>>
>> Hello,
>>
>> is there any reason for not using DrumStaff if that works fine for MIDI?
>>
>> Regards,
>> Martín.
>>
>> www.martinrinconbotero.com
>> On 27. Jan 2021, 11:52 +0100, ebenezer
>>  ,
>> wrote:
>>
>> Hello everyone,
>>
>> I am attempting to use a percussion staff for a bongo part in a score.
>>
>> staffBongo = \drummode {
>>
>> boh4_\markup { \sans boh } boho8 bohm8 % -- and so on...
>>
>> }
>>
>> partBongo = \new RhythmicStaff \with {
>> } \staffBongo
>>
>> doesn't output any MIDI. Note that using a DrumStaff works fine. The
>> contexts under \midi {} are the same for both DrumStaff and RhythmicStaff.
>> What am I doing that is incorrect, please?
>> Thanks.
>>
>>
>>
>
> --
> www.martinrinconbotero.com
>


-- 
www.martinrinconbotero.com


Re: Rhythmic staff MIDI

2021-01-27 Thread Martín Rincón Botero
Well, I don't use the RhythmicStaff for bongos and wouldn't recommend it
either. What I use looks something like this:

\context DrumStaff = "bongo"
\with
{
\override StaffSymbol.line-count = #2
drumStyleTable = #bongos-style
instrumentName = \markup { Bongo }
shortInstrumentName = \markup { Bng. }
}
\drummode
{
boh4 bol boh bol
}

Perhaps you'll find this esthetically pleasing as well ;-). With this setup
I haven't had any issues with MIDI. You don't even have to manually select
any MIDI instrument or do any extra configuration. At least for me, this
"just works" and is notationally correct.

Cheers,
Martín.


Am Mi., 27. Jan. 2021 um 16:21 Uhr schrieb ebenezer <
ebene...@thedorsetpagdens.plus.com>:

> Hello Martin,
>
> No, I can use DrumStaff. I'm still experimenting with LilyPond, finding
> out what works easily and what doesn't.
>
> Aesthetically, a RhythmicStaff looks better, so if it's something I can
> accomplish without too much effort (~1 day), I would delve deeper.
>
> Since posting I have found that Drum_note_performer will output MIDI, but
> it's a soft piano sound, so I am now stuck at this point.
>
> Thanks.
>
> On 2021-01-27 13:22, Martín Rincón Botero wrote:
>
> Hello,
>
> is there any reason for not using DrumStaff if that works fine for MIDI?
>
> Regards,
> Martín.
>
> www.martinrinconbotero.com
> On 27. Jan 2021, 11:52 +0100, ebenezer
>  ,
> wrote:
>
> Hello everyone,
>
> I am attempting to use a percussion staff for a bongo part in a score.
>
> staffBongo = \drummode {
>
> boh4_\markup { \sans boh } boho8 bohm8 % -- and so on...
>
> }
>
> partBongo = \new RhythmicStaff \with {
> } \staffBongo
>
> doesn't output any MIDI. Note that using a DrumStaff works fine. The
> contexts under \midi {} are the same for both DrumStaff and RhythmicStaff.
> What am I doing that is incorrect, please?
> Thanks.
>
>
>

-- 
www.martinrinconbotero.com


Re: Rhythmic staff MIDI

2021-01-27 Thread ebenezer

Hello Martin,

No, I can use DrumStaff. I'm still experimenting with LilyPond, finding 
out what works easily and what doesn't.


Aesthetically, a RhythmicStaff looks better, so if it's something I can 
accomplish without too much effort (~1 day), I would delve deeper.


Since posting I have found that Drum_note_performer will output MIDI, 
but it's a soft piano sound, so I am now stuck at this point.


Thanks.


On 2021-01-27 13:22, Martín Rincón Botero wrote:

Hello,

is there any reason for not using DrumStaff if that works fine for MIDI?

Regards,
Martín.

www.martinrinconbotero.com
On 27. Jan 2021, 11:52 +0100, ebenezer 
, wrote:


Hello everyone,

I am attempting to use a percussion staff for a bongo part in a score.

staffBongo = \drummode {

boh4_\markup { \sans boh } boho8 bohm8 % -- and so on...

}

partBongo = \new RhythmicStaff \with {

} \staffBongo

doesn't output any MIDI. Note that using a DrumStaff works fine. The 
contexts under \midi {} are the same for both DrumStaff and 
RhythmicStaff. What am I doing that is incorrect, please?


Thanks.





Re: Rhythmic staff MIDI

2021-01-27 Thread Martín Rincón Botero
Hello,

is there any reason for not using DrumStaff if that works fine for MIDI?

Regards,
Martín.

www.martinrinconbotero.com
On 27. Jan 2021, 11:52 +0100, ebenezer , 
wrote:
> Hello everyone,
> I am attempting to use a percussion staff for a bongo part in a score.
> staffBongo = \drummode {
> boh4_\markup { \sans boh } boho8 bohm8 % -- and so on...
> }
> partBongo = \new RhythmicStaff \with {
> } \staffBongo
> doesn't output any MIDI. Note that using a DrumStaff works fine. The contexts 
> under \midi {} are the same for both DrumStaff and RhythmicStaff. What am I 
> doing that is incorrect, please?
> Thanks.
>


Rhythmic staff MIDI

2021-01-27 Thread ebenezer

Hello everyone,

I am attempting to use a percussion staff for a bongo part in a score.

staffBongo = \drummode {

  boh4_\markup { \sans boh }  boho8 bohm8  % --  and so on...

}

partBongo = \new RhythmicStaff \with {

} \staffBongo

doesn't output any MIDI. Note that using a DrumStaff works fine. The 
contexts under \midi {} are the same for both DrumStaff and 
RhythmicStaff. What am I doing that is incorrect, please?


Thanks.