Amarok/Manual/Playlist/AutomaticPlaylistGenerator: Difference between revisions
(Marked this version for translation) |
m (Updated for 2.8) |
||
(10 intermediate revisions by 5 users not shown) | |||
Line 5: | Line 5: | ||
<!--T:2--> | <!--T:2--> | ||
The '''Automated Playlist Generator (APG)''' automatically generates playlists based on constraints you set. These constraints can be set based on song data ( | The '''Automated Playlist Generator (APG)''' automatically generates playlists based on constraints you set. These constraints can be set based on song data (artist, genre, year) or access time (last played). There are also special constraints to determine how '''Amarok''' is going to look for songs. You will find the ''APG'' in your '''Media Sources''' pane, <menuchoice>Playlists -> Automated Playlist Generator</menuchoice>. | ||
==== APG Presets Toolbar ==== <!--T:3--> | ==== APG Presets Toolbar ==== <!--T:3--> | ||
<!--T:4--> | <!--T:4--> | ||
[[File: | [[File:Amarok-apg-presets-toolbar.png|center]] | ||
<!--T:5--> | <!--T:5--> | ||
Line 29: | Line 29: | ||
<!--T:25--> | <!--T:25--> | ||
* {{Icon|document-export}} Export the selected preset to a .xml file that can be imported. | * {{Icon|document-export}} Export the selected preset to a .xml file that can be imported. | ||
<!--T:27--> | <!--T:27--> | ||
Line 59: | Line 56: | ||
<translate> | <translate> | ||
<!--T:28--> | <!--T:28--> | ||
| <menuchoice>Match Tags</menuchoice> || The most important constraints, because they can be set to virtually any information regarding the file, including: artist name, album name, genre, year, last | | <menuchoice>Match Tags</menuchoice> || The most important constraints, because they can be set to virtually any information regarding the file, including: artist name, album name, genre, year, last played, and score.</translate> | ||
|- | |- | ||
<translate> | <translate> | ||
Line 82: | Line 79: | ||
<!--T:33--> | <!--T:33--> | ||
Another way to modify constraints that is present | Another way to modify constraints that is present on <menuchoice>Match Tags</menuchoice> with a textbased tag is found in the line below the <menuchoice>Field</menuchoice> option box. In the text field to the right you write the text to be matched and in the option box at the left of the value you can select <menuchoice>contains</menuchoice> (which will consider any songs that have the according text in their tag), <menuchoice>matches</menuchoice> (which will consider songs whose corresponding tag match exactly the one in the text box), <menuchoice>starts with</menuchoice> and <menuchoice>ends with</menuchoice>. | ||
<!--T:34--> | <!--T:34--> | ||
Similarly, you can also edit the way value-based constraints (such as the <menuchoice>Playlist Length</menuchoice> constraints and the playcount <menuchoice>Match Tag</menuchoice> constraint) behave by changing the option close to the text to settings such as <menuchoice>fewer than</menuchoice>, <menuchoice>equals</menuchoice> and <menuchoice>more than</menuchoice>. | |||
<!--T:35--> | <!--T:35--> | ||
Line 93: | Line 90: | ||
<!--T:15--> | <!--T:15--> | ||
Constraint groups can be added from the <menuchoice>Add new</menuchoice> option from the ''APG Preset Editor'' window, constraints under a group are logically linked, the same applies to groups under groups. | Constraint groups can be added from the <menuchoice>Add new</menuchoice> option from the '''APG Preset Editor''' window, constraints under a group are logically linked, the same applies to groups under groups. | ||
There are currently two kinds of constraint groups: "Match all" groups and "Match any" groups. "Match all" groups require that all the constraints under them are met by the song. "Match any" groups require that at least one of the constraints under them are met by the song. To add a constraint under a specific group highlight it on the preset editor and use the <menuchoice>Add new</menuchoice> option. | There are currently two kinds of constraint groups: "Match all" groups and "Match any" groups. "Match all" groups require that all the constraints under them are met by the song. "Match any" groups require that at least one of the constraints under them are met by the song. To add a constraint under a specific group highlight it on the preset editor and use the <menuchoice>Add new</menuchoice> option. | ||
Line 99: | Line 96: | ||
<!--T:17--> | <!--T:17--> | ||
Once you set up a preset, you just have to select it on the ''APG Presets'' panel and click | Once you set up a preset, you just have to select it on the '''APG Presets''' panel in the '''Automated Playlist Generator (APG)''' and click {{Icon|go-next}} the toolbar to run '''APG''' with the selected preset. You will then have a playlist matching your criteria, like this: | ||
<!--T:18--> | <!--T:18--> | ||
Line 114: | Line 111: | ||
<!--T:20--> | <!--T:20--> | ||
[[Category: | [[Category:Amarok2.8]] | ||
[[Category:Multimedia]] | [[Category:Multimedia]] | ||
[[Category:Tutorials]] | [[Category:Tutorials]] | ||
</translate> | </translate> |
Latest revision as of 16:27, 1 July 2013
Automatic Playlist Generator
The Automated Playlist Generator (APG) automatically generates playlists based on constraints you set. These constraints can be set based on song data (artist, genre, year) or access time (last played). There are also special constraints to determine how Amarok is going to look for songs. You will find the APG in your Media Sources pane,
.APG Presets Toolbar
![](/images.userbase/3/39/Amarok-apg-presets-toolbar.png)
This is the APG Presets toolbar. From left to right we have the following buttons:
Adds a blank preset that can be modified.
Opens up the APG Preset Editor window to edit the currently selected preset constraints.
Removes the selected preset from the list; can not be undone.
Import a preset from a .xml file. Has the potential to be malformed if edited outside Amarok; use the constraint tester.
Export the selected preset to a .xml file that can be imported.
Loads APG with the selected preset and automatically generates a playlist.
Working with Presets
![](/images.userbase/thumb/5/5b/APGpresetsMatchAllGroup.png/400px-APGpresetsMatchAllGroup.png)
Presets are sets of rules that Amarok APG will use when generating playlists. These rules are going to be referred to as constraints from now on; every preset is determined by the constraints which create it. Groups of constraints hierarchically and logically organized are called constraint trees.
Constraints
Constraints are the building blocks of constraint trees. They are simple statements that the APG will use to add songs to the playlist it generates. To add a constraint to the currently selected preset constraint tree click the button in the APG Preset toolbar and click the option on the APG Preset Editor window. Note that this will add the constraint under the selected item (constraint or constraint group).
Many different kinds of constraints can be added; each works in a different way inside the tree.
Constraint Types
Amarok APG supports several types of constraints:
Constraint | Description |
---|---|
The most important constraints, because they can be set to virtually any information regarding the file, including: artist name, album name, genre, year, last played, and score. | |
Set the running time (in HH:MM:SS format) that the playlist should have | |
Determine how many songs should be in the playlist | |
Tell Amarok where to start and stop looking for tracks | |
Prevent Amarok from selecting the same tracks, songs from the same artist, or the same album |
Note that you can change how constraints work in various manners, such as setting the fuzzy-exact slider, which determines how closely the constraint is going to be followed.
Another way to modify constraints that is present on
with a textbased tag is found in the line below the option box. In the text field to the right you write the text to be matched and in the option box at the left of the value you can select (which will consider any songs that have the according text in their tag), (which will consider songs whose corresponding tag match exactly the one in the text box), and .Similarly, you can also edit the way value-based constraints (such as the
constraints and the playcount constraint) behave by changing the option close to the text to settings such as , and .Another way to change constraint behavior is to check the
checkbox on them, this makes them behave the opposite way, a "Match Tag: artist contains name" becomes "Match Tag: artist not contains name".Constraint Groups
Constraint groups can be added from the
option from the APG Preset Editor window, constraints under a group are logically linked, the same applies to groups under groups. There are currently two kinds of constraint groups: "Match all" groups and "Match any" groups. "Match all" groups require that all the constraints under them are met by the song. "Match any" groups require that at least one of the constraints under them are met by the song. To add a constraint under a specific group highlight it on the preset editor and use the option.Using your Presets
Once you set up a preset, you just have to select it on the APG Presets panel in the Automated Playlist Generator (APG) and click the toolbar to run APG with the selected preset. You will then have a playlist matching your criteria, like this:
![](/images.userbase/thumb/d/df/Generatedlist.jpeg/300px-Generatedlist.jpeg)
![](/images.userbase/thumb/0/0c/Generatingtree.jpeg/400px-Generatingtree.jpeg)