[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: LilyPond MIDI and sustain pedal
From: |
Jean Abou Samra |
Subject: |
Re: LilyPond MIDI and sustain pedal |
Date: |
Sun, 18 Oct 2020 10:33:36 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 |
Le 18/10/2020 à 10:17, Aaron Hill a écrit :
On 2020-10-17 11:33 pm, Andrew Bernard wrote:
I think it is the case that LilyPond can't output sustain pedal
information in MIDI files. So, how do people work with this? For
piano, or vibraphone, for example.
Which version are you using? The Piano_pedal_performer *should* be
outputting events for the following:
MIDI CC 64 (0x40) - Damper Pedal On/Off
MIDI CC 66 (0x42) - Sostenuto Pedal On/Off
MIDI CC 67 (0x43) - Soft Pedal On/Off
%%%%
\version "2.20.0"
\score {
{
| d'16 \sustainOn fis' g' b'~ 4 r2 \sustainOff
| c'16 \sustainOn e' f' a'~ 4 r2 \sustainOff
| cis'16 \sustainOn eis' fis' ais'~ 4 r2 \sustainOff
}
\midi { \tempo 4 = 120 }
}
%%%%
-- Aaron Hill
Hi,
On the output of this file, `lilymidi --pretty` indeed gives:
Filename: tmp.midi
MIDI format: 1 (one or more simultaneous tracks)
Divisions: 1536 per whole note
#Tracks: 2
Track 1:
Time 0:
Track name:
Text: creator:
Text: GNU LilyPond 2.20.0
Time signature: 4/4, metronome 3/16
Tempo: 500000 msec/quarter
Time 4608:
End of Track
Track 2:
Time 0:
Track name: \new:
*** Control mode change: 0, 64127
Note on: Channel 0, D4.166666666666667(62)
Time 96:
Note off: Channel 0, D4.166666666666667(62)
Note on: Channel 0, Fis4.5(66)
Time 192:
Note off: Channel 0, Fis4.5(66)
Note on: Channel 0, G4.583333333333333(67)
Time 288:
Note off: Channel 0, G4.583333333333333(67)
Note on: Channel 0, B4.916666666666667(71)
Time 768:
Note off: Channel 0, B4.916666666666667(71)
Control mode change: 0, 640
Time 1536:
Control mode change: 0, 64127
Note on: Channel 0, C4.0(60)
Time 1632:
Note off: Channel 0, C4.0(60)
Note on: Channel 0, E4.333333333333333(64)
Time 1728:
Note off: Channel 0, E4.333333333333333(64)
Note on: Channel 0, F4.416666666666667(65)
Time 1824:
Note off: Channel 0, F4.416666666666667(65)
Note on: Channel 0, A4.75(69)
Time 2304:
Note off: Channel 0, A4.75(69)
Control mode change: 0, 640
Time 3072:
Control mode change: 0, 64127
Note on: Channel 0, Cis4.083333333333333(61)
Time 3168:
Note off: Channel 0, Cis4.083333333333333(61)
Note on: Channel 0, F4.416666666666667(65)
Time 3264:
Note off: Channel 0, F4.416666666666667(65)
Note on: Channel 0, Fis4.5(66)
Time 3360:
Note off: Channel 0, Fis4.5(66)
Note on: Channel 0, Ais4.833333333333333(70)
Time 3840:
Note off: Channel 0, Ais4.833333333333333(70)
Control mode change: 0, 640
Time 4608:
End of Track
Best,
Jean
Re: LilyPond MIDI and sustain pedal, Timothy Lanfear, 2020/10/18