--- /dev/null
+
+\score {
+ \notes \context PianoStaff <
+ \context Staff = "up" {
+ \autochange Staff \relative c' {
+ [c8 e'] [c' c,,]
+ \stemdown
+ c'8 c c g,
+ g8 d' d d
+ \stemup
+ b8 c d e
+ }
+ }
+ \context Staff = "down" {
+ \clef bass;
+ s1*2
+ }
+ >
+ \paper{
+ \translator{
+ \StaffContext
+ autoKneeGap = #13.0
+ autoInterstaffKneeGap = #4.0
+ }
+ }
+}
\score {
- \notes \context PianoStaff <
- \context Staff = "up" {
- \autochange Staff \relative c' {
- [c8 e'] [c' c,,]
- \stemdown
- c'8 c c g,
- g8 d' d d
- \stemup
- b8 c d e
- }
- }
- \context Staff = "down" {
- \clef bass;
- s1*2
- }
- >
+ \context Staff \notes\relative c'{
+% \property Voice.autoKneeGap = #13
+ [c8 e'] [c' c,,]
+ }
\paper{
\translator{
\StaffContext
- autoKneeGap = "13.0";
- autoInterstaffKneeGap = "4.0";
+ autoKneeGap = #13
}
}
}
--- /dev/null
+%{
+Have some fun beam quanting
+%}
+
+% no y quantising
+#(define (beam-vertical-position-quants m dy) '())
+
+% rediculous dy quanting
+#(define beam-height-quants '(0 4))
+
+\score {
+ \notes\relative c'{
+ c8 c c c
+ c8 e g a
+ c,8 f b e
+ }
+}
#include "lily-proto.hh"
#include "input.hh"
+#include "lily-guile.hh" // we need SCM
/** A "tonal" pitch. This is a pitch as it figures in diatonal western
music (12 semitones in an octave), as opposed to a frequence in Hz
void print () const;
};
+SCM to_scm (Musical_pitch p);
+void scm_to (SCM s, Musical_pitch* p);
+
#include "compare.hh"
INSTANTIATE_COMPARE(Musical_pitch, Musical_pitch::compare);
#include "debug.hh"
#include "main.hh"
+SCM
+to_scm (Musical_pitch p)
+{
+ return gh_list (gh_int2scm (p.notename_i_),
+ gh_int2scm (p.accidental_i_),
+ gh_int2scm (p.octave_i_),
+ SCM_UNDEFINED);
+}
+
+/*
+ TODO: check -- is_pitch () ?
+ */
+void
+scm_to (SCM s, Musical_pitch* p)
+{
+ *p = Musical_pitch (gh_scm2int (gh_car (s)),
+ gh_scm2int (gh_cadr (s)),
+ gh_scm2int (gh_caddr (s)));
+}
+
Musical_pitch::Musical_pitch (int n, int a, int o)
{
notename_i_ = n;
+
+#(eval-string (ly-gulp-file "paper.scm"))
+
\paper {
texsetting = "";
pssetting = "";
'(minimum-space 0.0)))))
-;; Measured in interlines (urg: how to say #interline?)
-(define (stem-shorten flags) 0.5)
-(define (beamed-stem-shorten multiplicity) 0.5)
-
;;;;;;;; TeX