The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,839 other subscribers

Link archive: A YouTube video with steps on making music score videos

Posted by jpluimers on 2026/06/19

For my link archive [Wayback/Archive] How I Make My Videos – YouTube by Cmaj7.

I quoted the steps below as YouTube will automatically fold them.

Same for many useful links I found because of this video.

Links

  1. [Wayback/Archive] Percy Grainger – Molly on the Shore (1907/1920) – YouTube (this was the score video I needed)
  2. [Wayback/Archive] Cmaj7 – YouTube
  3. [Wayback/Archive] Cmaj7 – YouTube – posts
  4. [Wayback/Archive] CMajSeven (CMajSeven) / Repositories – page 1 · GitHub
  5. [Wayback/Archive] CMajSeven (CMajSeven) / Repositories – page 2 · GitHub
  6. [Wayback/Archive] GitHub – CMajSeven/WorkflowTemplate: A guide to how I make my videos
  7. [Wayback/Archive] GitHub – edwardx999/ScoreProcessor: Command-line multi-threaded batch image processor specializing in score images

Queries:

Longer video [Wayback/Archive] Orchestral Score Video, Normal Speed run and Q&A, I suppose – YouTube

  1. 00:00 PDF conversion to PNGs
  2. 03:00 Cluster Clear, removing page numbers and serial numbers (-ccg and -fr with -hp and -vp)
  3. 11:38 Removing system dividers (-stme)
  4. 20:00 Cut (-cut) and using the makefile, straightening (-str), removing empty staves (manual)
  5. 45:00 Vertically splicing images (-spl), premature demonstration of zspl
  6. 54:13 (57:05) Vertically compressing images (-vc) and manual cleanup
  7. 1:19:55 Horizontal splicing using makefile in zspl to produce final images

When using stme, I should have git reset and did all of them over again with mff:128. It generally produces a cleaner result, and it is more obvious when it goes wrong. I was kind of rushing and did it only for the one.

Quoted steps:

The commands I use in this video (sorry they’re hard to see):

  1. converting bitmap pdfs: .\images_conversion.bat FILENAME
  2. converting vector pdfs: .\gs_conversion.bat FILENAME
  3. renaming: sproc *.png -o %3.%x t
  4. cluster clean: sproc *.png -ccg bsr:0,12
  5. padding: sproc *.png -hp 50 -vp 50
  6. removing page numbers and serial numbers:
    • odd pages: sproc *.png -flt .*[02468]\.png f -fr o:tr PAGECOORDS -fr o:bm SERIALCOORDS
    • even: sproc *.png -flt .*[02468]\.png -fr o:tl PAGECOORDS -fr o:bm SERIALCOORDS
  7. removing system dividers: sproc *.png -stme DIVIDER_TEMPLATE DOWNSCALE(4-16, usually) COORDS mff:128
  8. cutting pages: sproc ../base/*.png -cut
  9. straightening, centering (also in makefile): sproc *.png -hp 50 -vp 50 -str -hp 50 -vp 50
  10. splicing: sproc ../cut/*.png -spl
  11. horizontal splicing (in zspl): make

Notes

  • [0] Between edits, I usually back everything up with git. (look up “git init“, “git add“, and “git commit“)
  • [1] You open cmd/powershell by entering it into the address bar. If each page in the pdf consists of multiple images, rather than one image per page, use gs_conversion.bat in this case too. gs_conversion.bat needs ghostscript. images_conversion.bat needs pdfimages. If you use powershell instead of cmd (like me), you will need to use .\images_conversion.bat or .\gs_conversion.bat.
  • [2] To simplify the batch files, they use the default names of ghostscript and pdfimages. In a multi-movement work, I usually prepend the movement number.
  • [3] The difference is mff, which is mutual flood fill, which does a flood fill on the match using the template as a seed. This produces a cleaner result as opposed to the default cover, which just lays a white rectangle over the match.
  • [4] The parameters I change the most are mv (minimum vertical space), which changes the required amount of space between systems, mw and mh, the minimum width and height a system has to be. The case in which cut fails is if there is an element that is closer to the other system than the one it actually belongs to, most common in squished piano scores. When this occurs, I separate the systems manually, and run -cut on that one image.
  • [5] See a tutorial on make. The makefile contains commands to straighten, and to center and convert to gray scale images. Edit these commands to suit your score.
  • [6] Edits are often done on the spliced images as well (makefile serves the same purpose here). A somewhat experimental feature is -vc, vertical compress, which can remove white space between systems. See the stream for me using it. I do this manually too sometimes.
  • [7] ew is excess weight (penalty for exceeding optimal height).
  • [8] I never edit the results in yrot and zspl. Edit in spl and run make in zspl to update the final images. The cheat branch of WorkflowTemplate uses hsproc, which has -spl rotate the images before saving the images. It is faster.

Installing dependencies:

Links with archived versions:

--jeroen


[Wayback/Archive] How I Make My Videos – YouTube

[Wayback/Archive] Orchestral Score Video, Normal Speed run and Q&A, I suppose – YouTube

[Wayback/Archive] Percy Grainger – Molly on the Shore (1907/1920) – YouTube

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.