Lesson 1 of 0
In Progress

Test lesson

admin1 March 7, 2023

To make the music responsive:

let’s test midi on post

puts the named class on the generated `<svg>` element.

Music Sheet Viewer

programing it onsite

Score layout

The score fits automatically to the content in which it’s placed without any specific indication.
If what is displayed is too small to fit to the allowed content it’s possible to justify the rendering, using the layout=”justified” parameter.

Format of the music sheet code when passed inline. Has no effect if file parameter is used.

Possible values :

  • mei (MEI)
  • xml (MusicXML)
  • abc (ABC)
  • or pae (RISM format)

Default format is pae as it’s compact and convenient for displaying music sheet fragments.

Note that « Music Sheet Viewer » doesn’t check that the code is written in the language passed to format parameter. If they don’t match, the result is unpredictable.

font

Renders the score with the corresponding SMuFL font. The following fonts are available :

  • Leipzig
  • Bravura
  • Gootville
  • Petaluma
  • Leland

By default, Leipzig is used.

MusicSheetViewerPlugin 4.1
MusicSheetViewerPlugin 4.1

load form a file

#Music Sheet Viewer ERROR : local file /home2/orchvil7/public_html//wp-content/uploads/2017/05/DoSerrure.mei does not exist

loading from an external url

MusicSheetViewerPlugin 4.1

With justification:

MusicSheetViewerPlugin 4.1

Chordpro

ChordPro is a simple text-based syntax used to write lead sheets, the lyrics and chords of a song. ChordPro also comes with a command line tool that pretty prints that text into other formats like PDF. You can read all about ChordPro here:ChordPro

a custom guitar chord.

let’s make our chord interactive

you can transpose the chords up and down and also print the output right from the rendered page.

 
  For example, this is the contents of a simple song: # A simple ChordPro song. {title: Swing Low Sweet Chariot} {start_of_chorus} Swing  
D 
low, sweet  
G 
chari
D 
ot, Comin’ for to carry me  
A7 
home. Swing  
D7 
low, sweet  
G 
chari
D 
ot, Comin’ for to  
A7 
carry me  
D 
home. {end_of_chorus} I  
D 
looked over Jordan, and  
G 
what did I  
D 
see, Comin’ for to carry me  
A7 
home. A  
D 
band of angels  
G 
comin’ after  
D 
me, Comin’ for to  
A7 
carry me  
D 
home. {comment: Chorus}  
 
# ————————————————— # HEART OF GOLD # Artist: Neil Young # Album: Harvest # Released: 1972 # ————————————————— {title:Heart Of Gold} {subtitle: A song about looking for true love} {artist: Neil Young} {composer: Neil Young} {year: 1972} {album: Harvest} {start_of_verse} {comment: Verse 1}  
Em 
I wanna l
C 
ive, 
 
 
D 
I wanna g
G 
ive. 
 
 
Em 
I’ve been a m
C 
iner for a h
D 
eart of g
G 
old. 
 
 
Em 
It’s these expr
C 
essions 
 
 
D 
I never g
G 
ive. {end_of_verse} {start_of_chorus}  
Em 
That keep me searchin’ for a  
G 
heart of gold  
C 
And I’m getting’ old.  
C 
 
Cmaj7 
 
C6 
 
G 
 
Em 
Keep me searchin’ for a  
G 
heart of gold  
C 
And I’m getting’ old.  
C 
 
Cmaj7 
 
C6 
 
G 
{end_of_chorus} 
 
 

 

 

 

let me test midi on site

from server

MusicSheetViewerPlugin 4.1

 

from gdrive

let’s try and make it play  

https://drive.google.com/file/d/1XMF5E2gQ1s47ME3j7hS_IPfh6BeqVOAd/view?usp=share_link