1
0
Fork 0
mirror of https://github.com/kastdeur/lilydrum.git synced 2024-12-23 01:33:32 +01:00
lilydrum/lib/midi.ily

73 lines
1.7 KiB
Text
Raw Normal View History

2016-03-21 16:16:22 +01:00
% Add standard midi support, preferably able to
% switch instruments for different staves
#(newline)
#(display "Midi Support loaded")
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)
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
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
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)
% #}
% )
%)