This page explains how to create short data URLs for emails and tutorials.

URLs for short examples that load when you open the URL for VHV can be created from the File→Copy MIME URL option in the VHV menu:

Link to example score in VHV
File→Copy MIME URL in the VHV menu

Here is example music in the VHV editor:

Copying the MIME URL will copy this URL to the clipboard:

which you can then paste into another applications such as for sending emails.

The t parameter in the URL indicates (MIME-encoded) text follows in the value of the parameter.

You can also use this to create a link on a webpage which which, when clicked, will load the embedded Humdrum data into VHV.

In addition, you can also copy only the MIME part of the URL and paste directly into VHV:

Pasting MIME-encoded Humdrum data into VHV editor
Pasting MIME-encoded Humdrum data into VHV editor.

VHV internally converts MIME data and can display the music notation for the encoded Humdrum data. You can also paste MIME data into the text editor and then go to File→MIME decode to decode the MIME data.

Longer files which exceed the limit for any specific browsers’ URL size limit can be encoded with the File→MIME encode option and then pasted into a email, for example. To decode the data, use File→MIME decode to convert back to a regular Humdrum file.

Also note that the links under each Humdrum example given in the documentation (“load into VHV”) use this same system for transferring the Humdrum data from the documentation into the VHV editor.