2016-03-21 16:16:22 +01:00
|
|
|
% Add standard midi support, preferably able to
|
|
|
|
% switch instruments for different staves
|
|
|
|
|
2016-04-27 02:57:44 +02:00
|
|
|
bassPitchOne = #(ly:make-pitch -2 0 NATURAL)
|
|
|
|
bassPitchTwo = #(ly:make-pitch -3 6 NATURAL)
|
|
|
|
|
|
|
|
sidePitchOne = #(ly:make-pitch -2 2 DOUBLE-FLAT)
|
|
|
|
sidePitchTwo = #(ly:make-pitch -2 1 NATURAL)
|
|
|
|
|
|
|
|
tenorPitchOne = #(ly:make-pitch -2 3 NATURAL)
|
|
|
|
tenorPitchTwo = #(ly:make-pitch -2 4 NATURAL)
|
2017-02-02 17:06:20 +01:00
|
|
|
tenorPitchThree = #(ly:make-pitch -2 5 NATURAL)%
|
|
|
|
tenorPitchFour = #(ly:make-pitch -2 6 NATURAL)%
|
|
|
|
tenorPitchFive = #(ly:make-pitch -1 0 NATURAL)%Seems the nicest
|
|
|
|
tenorPitchSix = #(ly:make-pitch -1 1 NATURAL)%
|
2016-04-27 02:57:44 +02:00
|
|
|
tenorPitchSeven = #(ly:make-pitch -2 3 NATURAL)
|
|
|
|
tenorPitchEight = #(ly:make-pitch -2 3 NATURAL)
|
|
|
|
tenorPitchNine = #(ly:make-pitch -2 3 NATURAL)
|
|
|
|
tenorPitchTen = #(ly:make-pitch -2 3 NATURAL)
|
|
|
|
tenorPitchEleven = #(ly:make-pitch -2 3 NATURAL)
|
|
|
|
|
|
|
|
% Default Pitches
|
|
|
|
sideDefault = \sidePitchTwo
|
|
|
|
bassDefault = \bassPitchTwo
|
2017-02-02 17:06:20 +01:00
|
|
|
tenorDefault = \tenorPitchFive
|
2016-04-27 02:57:44 +02:00
|
|
|
|
|
|
|
midiDrumPitches.right-hand = \sideDefault
|
|
|
|
midiDrumPitches.left-hand = \sideDefault
|
2016-03-21 16:16:22 +01:00
|
|
|
|
2017-02-02 17:06:20 +01:00
|
|
|
midiTenor = {
|
|
|
|
\set midiDrumPitches.right-hand = \tenorDefault
|
|
|
|
\set midiDrumPitches.left-hand = \tenorDefault
|
|
|
|
}
|
|
|
|
|
2016-03-21 16:16:22 +01:00
|
|
|
\midi {
|
|
|
|
\context {
|
|
|
|
\DrumStaff
|
|
|
|
\name PipeBandDrumStaff
|
|
|
|
\alias DrumStaff
|
2016-04-27 02:57:44 +02:00
|
|
|
|
|
|
|
% trying midi are you?
|
|
|
|
midiInstrument = #"drums"
|
|
|
|
|
2016-03-21 16:16:22 +01:00
|
|
|
drumPitchTable = #(alist->hash-table midiDrumPitches)
|
|
|
|
}
|
|
|
|
\context {
|
|
|
|
\Score
|
|
|
|
\accepts "PipeBandDrumStaff"
|
|
|
|
}
|
|
|
|
\context {
|
|
|
|
\StaffGroup
|
|
|
|
\accepts "PipeBandDrumStaff"
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2016-04-27 02:57:44 +02:00
|
|
|
%setMidiHands =
|
|
|
|
%#(define-music-function
|
|
|
|
% (parser location pitch)
|
|
|
|
% (ly:pitch?)
|
|
|
|
% (
|
|
|
|
% (display "Set Hands to pitch")
|
|
|
|
% #{
|
|
|
|
% midiDrumPitches.right-hand = #pitch
|
|
|
|
% midiDrumPitches.left-hand = #pitch
|
|
|
|
%
|
|
|
|
% drumPitchTable = #(alist->hash-table midiDrumPitches)
|
|
|
|
% #}
|
|
|
|
% )
|
|
|
|
%)
|