Re: transcribe notes

2012-06-14 Thread Philip Thomas
Peter Wannemacher wrote (13.06.2012 17:52):

I would like to contribute to this cheat-sheet. 
I would be pleased to 
create ideas or comment on those of others.

Excellent! I hope to make some sort of draft available in the next couple 
of weeks to get the ball rolling from my point of view.

Cheers, Philip

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


Re: Need some guidance from a Lilypond Scheme expert

2012-06-14 Thread jakob lund
2012/6/11 Matthew Probst matt...@yak.org:
 I understand the Scheme language at intermediate level, but am not adept at
 processing Lilypond data structures.

 I'm looking into Snippet 465:

 http://lsr.dsi.unimi.it/LSR/Item?id=465

 I have the following in my Lilypond code, for typesetting a common guitar
 strum pattern:

 rhtOne = #(rhythm-template #{ s16 s16 r8 s16 #} )
 \relative c' { r4 \rhtOne f a d1 r2 }

 This works fine.  However, this does not:

 rhtOne = #(rhythm-template #{ s16 s16 r8 s16 #} )
 Dnine = { \relative c' { f a d1 } }
 \relative c' { r4 \rhtOne \Dnine r2 }


 The problem is that the snippet constructs a single chord event to apply the
 rythm to, by walking down the 'elements property of the first parameter, and
 collecting their pitches into a list with (map):

 http://pastebin.com/tSm1tw65

 The data structure this sees from my first Lilypond example is like this:

 http://pastebin.com/Tx8qhz6u


 However, the data structure created by my second Lilypond example looks more
 like this:


 http://pastebin.com/FuCRHDyK


 In the first example, it sees an 'EventChord, so we properly fetch a list of
 all its children's 'pitch properties.  In the second example, it's
 'SequentialMusic, not  an 'EventChord.  What I want to do is walk down the
 data structure and find the first EventChord or NoteEvent.


 That doesn't seem too hard, actually.  Need to define a function
 first-non-sequence, and conditionally drill farther into the data structure
 until I find the first non-sequence.  Understanding that this is pseudocode
 instead of proper syntax,  I'd need to do something roughly like the
 following:


 http://pastebin.com/3eNNYjHE


 Also have to potentially recurse farther into nested levels of
 'SequentialMusic or down each item in the 'elements list, I am comfortable
 fleshing it out to that level.


 What I'm wondering, is what (if any) Lilypond scheme function do I use to
 determine the type of a music data structure?  I could certainly just say
 (car mus) but I'm wondering if there's a function I should use for the sake
 of encapsulation.  I see that one can get properties of a music element with
 (ly:music-property mus 'SYMBOL), the existing snippet code grabs the
 'elements list using (ly:music-property mus 'elements).

try (ly:music-property mus 'name) I think that does it?

Jakob.



 If it's just a matter of use (car mus) and comparing the symbol against a
 given list of options, fine, I just don't know if I'm going the right way.
  I've been looking at the docs for several days now, and have done so at
 several times in the past, and I'm just not quickly finding what I need.


 My goal is to finally immerse myself into the Scheme side of Lilypond, and
 start implementing some fixes to the various rhythm-pitch template snippets
 that I've been wishing for, instead of complaining.


 ___
 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:

2012-06-14 Thread jakob lund
You could try to install QJackctl, which is designed to control the
jack audio server, but also lets you control alsa midi connections.
Then start rumor, and on the qjackctl interface, click Connect and
select the alsa tab. You should then see some midi ports (ideally,
an output from your keyboard controller and and input to rumor, that
you can then manually connect)

(note that you can do the same thing via the command-line aconnect, if
you are into that sort of thing...)

Hope that helps...
Jakob

2012/6/10 Stefan Thomas kontrapunktste...@googlemail.com:
 Dear community,
 I have the following problem, which is more a problem with rumor and linux
 than with lilypond.
 When I type

 rumor --oss

 I get

 Can not open /dev/sequencer

 When I just type rumor
 I get

 ALSA port connection error; do it manually using `aconnect'

 and it doesn't react von midi-input.
 What can I do now to get it working?

 ___
 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: Problems with \inversion

2012-06-14 Thread ALEXANDRE FICAGNA
You're right, it worked better with relative for melody.
Still, it seems that changing from-pitch alters the note of
transposition, while to-pitch changes absolutely nothing.

Best
Alexandre

2012/6/13 Trevor Daniels t.dani...@treda.co.uk:

 ALEXANDRE FICAGNA wrote Wednesday, June 13, 2012 2:57 PM


I still didn't picture exactly how \inverse works in its from-pitch
 to-pitch variables, but I tried an example and what I got is the
 correct inversion of pitches, but each one was an octave above.

 Here's the code:

 \version 2.14.2

 #(set-global-staff-size 15)

 \paper {
  #(define dump-extents #t)
  ragged-right = ##t
  line-width = 17\cm
 }

 melody= { a8 gis ees d g4 }

 \score {
 \new PianoStaff
 
 \new Staff \relative c' {
 %\override Stem #'transparent = ##t %uncomment to hide Stems
 %\override Beam #'transparent = ##t %uncomment to hide Beams
 \melody \retrograde \melody
 }
 \new Staff \relative c {
 \clef treble
 %\override Stem #'transparent = ##t %uncomment to hide Stems
 %\override Beam #'transparent = ##t %uncomment to hide Beams
 \inversion a' a \melody
 \retrograde \inversion a' a   \melody
 }

 \layout {
  indent = #0
  \context {
    \Staff
    \remove Bar_number_engraver
    \remove Time_signature_engraver
  }
 }
 }

 If you use \relative for melody, \inversion behaves more as you
 would expect.  Either there is a bug which causes the incorrect
 behaviour you see when given absolute notes or the documentation
 needs to explain this better.  Note though that \inversion will
 also transpose if from-pitch and to-pitch differ.

 Copied to bug list for further discussion.

 Trevor



-- 
www.myspace.com/alexandreficagna

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


Re: Problems with \inversion

2012-06-14 Thread Trevor Daniels

ALEXANDRE FICAGNA wrote Thursday, June 14, 2012 12:12 PM


 You're right, it worked better with relative for melody.
 Still, it seems that changing from-pitch alters the note of
 transposition, while to-pitch changes absolutely nothing.

David explained the reason for the behaviour in your earlier
note.  In fact the behaviour is quite correct, although maybe
surprising, due to inverting absolute notes and then treating
them as relative.  Perhaps the docs should warn about this
banana skin.

The interval between from-pitch and to-pitch determines
the transposition of the motif after inverting about from-pitch.  
Try the example below.  You'll see the inverted motif begins 
on b after inverting about a' due to the transposition from 
a' to b'.

Another way of looking at it is the inversion takes place
about the mid-point between from-pitch and to-pitch.

Trevor

melody= \relative c'' { a8 gis ees d g4 }

\score {
  \new Staff {
\clef treble
\melody
\inversion a' b' \melody
  }
  \layout {
indent = #0
\context {
  \Staff
  \remove Bar_number_engraver
  \remove Time_signature_engraver
}
  }
}
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Trills With Accidentals

2012-06-14 Thread P Spalding

Oh !!   Thank you, thank you.  Very kind of you.   Lots of goodies in the
file.

Sincerely,

RDL


ArnoldTheresius wrote:
 
 
 P Spalding wrote:
 
 
 That would be excellent, Arnold.   I've been inking in the accidental in
 past.
 
 
 Here you are!
 
  http://old.nabble.com/file/p33991423/pitchedArticulations.ly
 pitchedArticulations.ly  is my include file. Created on Win7 - I hope the
 CR/NL will not harm on UNIX.
 
 
 A 'short' description is in this PDF document
  http://old.nabble.com/file/p33991423/pitchedArticulationsTest.pdf
 pitchedArticulationsTest.pdf 
 which is created from this LY file
  http://old.nabble.com/file/p33991423/pitchedArticulationsTest.ly
 pitchedArticulationsTest.ly .
 In this LY file also my huge test suite is included, but at the moment
 it's commented out to get only this two page instruction.
 Allthough I compiled this example with 2.15.39, I allready tested my
 include file with 2.12.3 and 2.14.2. A few position differences are
 adjusted by querying the lilypond version in the scheme code.
 
 I hope it's a gem for you. According to the file size it should be a huge
 gem.
 
 Enjoy it, Arnold
 P.S. I want to upload it to the LSR when 2.16 is out and the LSR is
 migrated to 2.16.
 

-- 
View this message in context: 
http://old.nabble.com/Trills-With-Accidentals-tp33979017p34015358.html
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.


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