# Kehysten käyttö lisäsisällölle

## Overview

A **frame** is a rectangular container in the score into which one or more text objects or images may be inserted. In the score editor the edges of the frame are marked by dotted lines (these do not show up in the printed score).

A frame may be one of three types:

* **Vertical frame**: A full-width container inserted before the first system, after the last system, or between systems. It may contain several text objects and/or images.
* **Horizontal frame**: A container between two measures which may contain several text objects and/or images.
* **Text frame**: A full-width container inserted before the first system, after the last system, or between systems. It differs from a vertical frame in that it can only contain a single text object.

{% hint style="info" %}
Although you \_can\_ use frames to create extra space between systems, it is best to use \[spacers]\(pages-and-vertical-spacing.md#spacers) for this purpose.
{% endhint %}

## Uses of frames

Here are a few ways frames are used:

* Display the title, subtitle, composer, arranger, lyricist, etc., at the top of a score. New scores automatically include a vertical frame filled with this info which you can specify on the second page of the [New Score dialog](https://handbook.musescore.org/fi/basics/setting-up-your-score#additional-score-information).
* Display details of movements within a score
* Display lyrics at the end of a song
* Create a blank horizontal space before a coda

## Adding frames between or before/after systems

### Text frames

A **text frame** is a full-width container placed either before the first system, after the last system, or between systems. A single [text block](https://handbook.musescore.org/fi/text/text-blocks) may be added to the frame. The height of the frame is automatically adjusted to the height of the text block within it.

#### Adding a text frame

1. Select a measure or a frame
2. Käytä jotakin seuraavista menetelmistä:
   * From the **menu bar** select **Add -> Frames -> Insert text frame**
   * Klikkaa **Asettelu**-paletista "Lisää tekstikehys" -kuvaketta
   * Käytä "Lisää tekstikehys" -toiminnolle määritettyä pikanäppäintä (voit asettaa tämän kohdassa [Asetukset -> Pikanäppäimet](https://handbook.musescore.org/fi/customization/preferences#shortcuts)).

Jos valittu tahti on viivastoryhmän ensimmäinen, kehys lisätään yksinkertaisesti viivastoryhmän yläpuolelle. Jos valittu tahti on mikä tahansa muu kuin ensimmäinen, se aloittaa uuden viivastoryhmän ja kehys ilmestyy sen yläpuolelle.

#### Adding text

[Tekstilohkon](https://handbook.musescore.org/fi/text/text-blocks) lisäämineen tekstikehykseen:

1. Double-click the frame
2. Kirjoita haluttu teksti.

Alternatively, you can right-click on the frame and choose **Edit element**, or select the frame and use the shortcuts `F2` or `Alt`+`Shift`+`E`.

Tekstillä on oletuksena "Kehys"-tyyli, mutta voit muuttaa tämän käyttämällä "Tekstityyli"-valintaa **Ominaisuudet**-paneelin **Teksti**-välilehdellä. Voit myös käyttää merkkitason muotoilua tavalliseen tapaan.

### Vertical frames

A **vertical frame** is a full-width container placed either before the first system, after the last system, or between systems. Multiple text blocks and/or images may be added to the frame.

#### Adding a vertical frame

1. Select a measure or a frame
2. Käytä jotakin seuraavista menetelmistä:
   * From the **menu bar** select **Add -> Frames -> Insert vertical frame**
   * Klikkaa **Asettelu**-paletista "Lisää pystykehys" -kuvaketta
   * Käytä "Lisää pystykehys" -toiminnolle määritettyä pikanäppäintä (voit asettaa tämän kohdassa [Asetukset -> Pikanäppäimet](https://handbook.musescore.org/fi/customization/preferences#shortcuts)).

Jos valittu tahti on viivastoryhmän ensimmäinen, kehys lisätään yksinkertaisesti viivastoryhmän yläpuolelle. Jos valittu tahti on mikä tahansa muu kuin ensimmäinen, se aloittaa uuden viivastoryhmän ja kehys ilmestyy sen yläpuolelle.

#### Adding text

Lisää [tekstilohko](https://handbook.musescore.org/fi/text/text-blocks) pystykehykseen käyttämällä jotakin seuraavista tavoista:

* Klikkaa kehystä hiiren oikealla, valitse **Lisää** ja valitse sitten jokin vaihtoehdoista (Teksti, Otsikko, Alaotsikko, Säveltäjä, Sanoittaja, Stemman nimi).
* Select the frame, and from the menu bar choose **Add -> Text**. Then choose one of the first five options (Title, Subtitle, Composer, Lyricist, Part name).
* Valitse kehys ja lisää haluamasi tekstilohkot pikanäppäimillä (voit määrittää ne [Asetukset: Pikanäppäimet](https://handbook.musescore.org/fi/customization/preferences#shortcuts) -valintaikkunassa).

#### Adding an image

1. Klikkaa pystykehystä hiiren oikealla
2. Select **Add -> Image**
3. Search for and add the image from the **Insert image** dialog.

#### Size

The height of the vertical frame is automatically adjusted to the height of any text block contained within it. You can override this using **Height** in the **Vertical frame** tab of the **Properties** panel.

### Position and alignment of content

The position of text objects relative to the edges of vertical/text frames can be altered by adjusting the relevant **padding** (Top/Bottom/Left/Right) in the **Vertical frame** (or **Text frame**) tab of the **Properties** panel.

For example, a left- and top-aligned text object will be pushed away from the respective edge by increasing the **Left padding** and/or **Top padding**, and so on.

### Spacing

In the **Vertical frame** or **Text frame** tab of the **Properties** panel, adjust **Gap above** and **Gap below** to create extra space above/below the frame.

## Adding frames between measures

### Horizontal frames

**Vaakakehystä** käytetään luomaan tyhjää tilaa tietyn viivastoryhmän tahtien välille. Se voi sisältää myös valinnaista tekstiä ja/tai kuvia.

#### Adding a horizontal frame

1. Select a measure
2. Käytä jotakin seuraavista menetelmistä:
   * From the **menu bar** select **Add -> Frames -> Insert horizontal frame**
   * In the **Layout** palette click on the **Insert horizontal frame** icon
   * Use an **Insert horizontal frame** keyboard shortcut (you can set this up in the **Preferences: Shortcuts** dialog).

Kehys lisätään valitun tahdin ja sitä seuraavan tahdin väliin.

#### Adding text

To add a text block to a horizontal frame, right-click on the frame and select **Add -> Text**.

#### Adding an image

1. Klikkaa vaakakehystä hiiren oikealla
2. Select **Add -> Image**
3. Etsi ja lisää kuva "Lisää kuva" -ikkunassa.

#### Size

Voit muokata kehyksen leveyttä **Ominaisuudet**-paneelin **Vaakakehys**-välilehdellä.

#### Spacing

Voit säätää vaakakehyksen kummallakin puolella olevaa tyhjää tilaa käyttämällä arvoja "Väli vasemmalla" ja "Väli oikealla" **Ominaisuudet**-paneelin **Vaakakehys**-välilehdellä.

#### Other horizontal frame properties

* **Näytä sulkeet, nuottiavaimet ja sävellajit seuraavassa tahdissa**

## Adding frames to the end of the score

Inserting frames using the methods described above will place them before the selection in the score.

If you need to place a frame at the very end of the score, apply one of the following methods:

* From the **menu bar**, navigate through **Add -> Frames -> Insert at end of score** then select the frame type you want
* Use an **Insert \[frame type] at end of score** keyboard shortcut (you can set this up in the **Preferences: Shortcuts** dialog).

## Special frame types

See [Fretboard diagram legend](https://handbook.musescore.org/fi/idiomatic-notation/guitar/fretboard-diagram-legend)
