HiI'm trying to create a teaching page for samba "grooves" for non-music readers !!
Each groove is typically about 4 measures long and each instrument plays up to 4 notes per measure (the tune is made up from multiple repetitions of these grooves!)
I want to use the same note definitions in multiple scores in the .ly file so I can have each instrument separately (possibly with a mnemonic)
and also together on one stave - so you can more easily see where the the notes are played in relation to the other instruments - I hope my attached .pdf file gives an insight
I have created quite a big example as I am still learning!In it I use bassdrum (bd) for my "pulse" and cowbell (cb) for the tamborim - as I cannot find these actual instruments in the midi voices
Of the back of my example I have a few questions...1) how do I define a set of notes for each of two instruments such that I can use them alone and with eachother (I don't want to see rests and notes on the same vertical line)
2) How do I make the rests smaller (#'mensural does not seem to work)3) How do I extend the bar lines so they span all the scores (like the initial one does!)
4) Do I have to use other instruments to simulate samba instruments (it would be nice to be able to generate midi and play the combined and individual parts
I have other questions - but I suspect I might be going about this in the wrong way - so feel free to point out how I might want to do this "properly" :-)
Thanks Phil
\version "2.19.21"
#(ly:set-option 'point-and-click #f)
#(set-global-staff-size 24)
\header {
title = "Bass and Tam"
}
tamborim_notes = \drummode {
cb r cb r
cb r cb r
r cb r cb
cb r r r
}
tamborim_words = \lyricmode {
one two
three four
one "2"
"3"
}
pulse_notes = \drummode {
r r r r
bd r r r
r r r r
bd r r r
}
pulse_words = \lyricmode {
}
#(define mysamba
'(
(cowbell default #f 0)
(bassdrum default #f -1)
)
)
music = {
<<
\new DrumStaff \with {
instrumentName = "Tamborim "
drumStyleTable = #(alist->hash-table mysamba)
\override StaffSymbol.line-count = #1
\override StaffSymbol.staff-space = #1
\override Stem.transparent = ##t
\override NoteHead.X-offset = #0
\override StaffSymbol.line-positions = #'( 0 )
\override Stem.X-offset = #1.25
\override Stem.Y-offset = #0.25
\override Staff.Rest.style = #'mensural
\override Rest.staff-position = 0
\omit Score.TimeSignature
} {
\repeat volta 3
\new DrumVoice { \voiceOne \tamborim_notes }
\addlyrics \tamborim_words
}
\new DrumStaff \with {
instrumentName = "Both "
drumStyleTable = #(alist->hash-table mysamba)
\override StaffSymbol.line-count = #4
\override StaffSymbol.staff-space = #3
\override Stem.transparent = ##t
\override NoteHead.X-offset = #0
\override StaffSymbol.line-positions = #'( 0 -1 )
\override Stem.X-offset = #1.25
\override Stem.Y-offset = #0.25
\override Staff.Rest.style = #'mensural
\override Rest.staff-position = -0.5
\override Staff.clef-Position = -0.5
\omit Score.TimeSignature
} {
\repeat volta 3
<<
\new DrumVoice { \voiceOne \pulse_notes }
\new DrumVoice { \voiceTwo \tamborim_notes }
>>
}
\new DrumStaff \with {
instrumentName = "Pulse "
drumStyleTable = #(alist->hash-table mysamba)
\override StaffSymbol.line-count = #1
\override StaffSymbol.staff-space = #1
\override Stem.transparent = ##t
\override NoteHead.X-offset = #0
\override StaffSymbol.line-positions = #'( -1 )
\override Stem.X-offset = #1.25
\override Stem.Y-offset = #0.25
\override Staff.Rest.style = #'mensural
\override Rest.staff-position = -1
\omit Score.TimeSignature
} {
\repeat volta 3
\new DrumVoice { \voiceOne \pulse_notes }
\addlyrics \pulse_words
}
>>
}
\score {
\music
\layout {
}
}
bd-cb-example.pdf
Description: Adobe PDF document
