lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

The problem of Lilypond changing instrument and the issue of .ly convert


From: 柊希里子
Subject: The problem of Lilypond changing instrument and the issue of .ly converting to MIDI with a custom setting
Date: Wed, 3 Aug 2022 21:15:12 +0800

Hello, everyone on the mail list, I'm new to lilypond.

I have a list of questions below which I haven’t been able to solve despite my best effort searching on the internet. 


1. How do I convert the piano clef to violin and cello clef?

I've tried to modify the \set section, but converting it into MIDI and then opening it still didn't change the instrument:


= Original score ===================================
\new StaffGroup \with { systemStartDelimiter =
            #'SystemStartBrace }
        <<
            \new PianoStaff
            <<
                \set PianoStaff.instrumentName = "Piano"
                \set PianoStaff.midiInstrument = #"acoustic grand"
                \context Staff = "1" <<
                    \mergeDifferentlyDottedOn\mergeDifferentlyHeadedOn
                    \context Voice = "PartPOneVoiceOne" {  \PartPOneVoiceOne }
                    >> \context Staff = "2" <<
                    \mergeDifferentlyDottedOn\mergeDifferentlyHeadedOn
                    \context Voice = "PartPOneVoiceThree" {  \voiceOne \PartPOneVoiceThree }
                    \context Voice = "PartPOneVoiceTwo" {  \voiceTwo \PartPOneVoiceTwo }
                    \context Voice = "PartPOneVoiceFour" {  \voiceThree \PartPOneVoiceFour }
                    >>
                >>
            >>
= Turn into below ==================================
\new StaffGroup \with { systemStartDelimiter =
            #'SystemStartBrace }
        <<
            \new Staff
            <<
                \set Staff.instrumentName = "Violin"
                \set Staff.midiInstrument = #"violin"
               
                \context Staff = "1" <<
                    \mergeDifferentlyDottedOn\mergeDifferentlyHeadedOn
                    \context Voice = "PartPOneVoiceOne" {  \PartPOneVoiceOne }
                    >> \context Staff = "2" <<
                    \mergeDifferentlyDottedOn\mergeDifferentlyHeadedOn
                    \context Voice = "PartPOneVoiceThree" {  \voiceOne \PartPOneVoiceThree }
                    \context Voice = "PartPOneVoiceTwo" {  \voiceTwo \PartPOneVoiceTwo }
                    \context Voice = "PartPOneVoiceFour" {  \voiceThree \PartPOneVoiceFour }
                    >>
                >>
            >>
================================================

Ideally, I’d like to convert the left image to the right image:

image.png

2. How do I delete all the tempo expressions of the music score in the .ly file, and set the tempo to BPM=60?

I have replaced all the \tempo tag with \tempo 4=60, but after I tried the command 'lilypond -dmidi-extension=mid MyFile.ly', the tempo of the outputted MIDI file didn't seem to be changed.

the \midi section of .ly file: \midi { \tempo 4=60 }


3. I wonder if the "-dmidi-extension" command is still being maintained. Since I try to convert the .ly file into a .mid file with BPM=60, and changed the piano into violin and cello timbre, but that didn't work. Are there any other approaches to convert .ly into .mid?


Thanks for reading my questions. Any help or input from you will be greatly appreciated.


Sincerely,
Angie Wei

reply via email to

[Prev in Thread] Current Thread [Next in Thread]