Amarok/Manual/Playlist/AutomaticPlaylistGenerator: Difference between revisions
(→APG Presets Toolbar: centered image) |
(fixed headings, removed construction tag) |
||
Line 1: | Line 1: | ||
[[Category:Amarok]] | [[Category:Amarok]] | ||
= Automated Playlist Generator = | == Automated Playlist Generator == | ||
The ''Automated Playlist Generator (APG)'' automatically generates playlists based on constraints you set. These constraints can be set based on song data (Author, Artist, Genre) or access time (Last Time Played). There are also special constraints to determine how '''Amarok''' is going to look for songs. You will find the ''APG'' in your ''Media'' pane, <menuchoice>Playlists -> Automated Playlist Generator</menuchoice>. | The ''Automated Playlist Generator (APG)'' automatically generates playlists based on constraints you set. These constraints can be set based on song data (Author, Artist, Genre) or access time (Last Time Played). There are also special constraints to determine how '''Amarok''' is going to look for songs. You will find the ''APG'' in your ''Media'' pane, <menuchoice>Playlists -> Automated Playlist Generator</menuchoice>. | ||
==APG Presets Toolbar== | === APG Presets Toolbar === | ||
[[File:Menuitems.jpg|center]] | [[File:Menuitems.jpg|center]] | ||
Line 19: | Line 18: | ||
*Run ''APG'' with selected preset: Loads ''APG'' with the selected preset and automatically generates a playlist. | *Run ''APG'' with selected preset: Loads ''APG'' with the selected preset and automatically generates a playlist. | ||
==Working with Presets== | === Working with Presets === | ||
[[File:APGpresetsMatchAllGroup.png|400 px|center|APG Preset Editor window]] | [[File:APGpresetsMatchAllGroup.png|400 px|center|APG Preset Editor window]] | ||
Line 25: | Line 24: | ||
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. | 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 ==== | ||
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 use the <menuchoice>Edit selected preset</menuchoice> option from the ''APG Preset toolbar'' and click the <menuchoice>Add new</menuchoice> option on the ''APG Preset Editor'' window. Note that this will add the constraint under the selected item (constraint or constraint group).<br /><br /> | 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 use the <menuchoice>Edit selected preset</menuchoice> option from the ''APG Preset toolbar'' and click the <menuchoice>Add new</menuchoice> option on the ''APG Preset Editor'' window. Note that this will add the constraint under the selected item (constraint or constraint group).<br /><br /> | ||
Many different kinds of constraints can be added; each works in a different way inside the tree. | Many different kinds of constraints can be added; each works in a different way inside the tree. | ||
===Constraint Types=== | ==== Constraint Types ==== | ||
'''Amarok''' ''APG'' supports several types of constraints: | '''Amarok''' ''APG'' supports several types of constraints: | ||
Line 52: | Line 51: | ||
Another way to change constraint behavior is to check the <menuchoice>invert</menuchoice> checkbox on them, this makes them behave the opposite way, a ''Match Tag: artist contains <name>'' becomes ''Match Tag: artist not contains <name>''. | Another way to change constraint behavior is to check the <menuchoice>invert</menuchoice> 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 ==== | ||
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. | ||
==Using your Presets== | === Using your Presets === | ||
Once you set up a preset, you just have to select it on the ''APG Presets'' panel and click the rightmost button on the toolbar, <menuchoice>Run APG with selected preset</menuchoice>. You will then have a playlist matching your criteria, like this: | Once you set up a preset, you just have to select it on the ''APG Presets'' panel and click the rightmost button on the toolbar, <menuchoice>Run APG with selected preset</menuchoice>. You will then have a playlist matching your criteria, like this: |
Revision as of 06:57, 31 January 2011
Automated Playlist Generator
The Automated Playlist Generator (APG) automatically generates playlists based on constraints you set. These constraints can be set based on song data (Author, Artist, Genre) or access time (Last Time Played). There are also special constraints to determine how Amarok is going to look for songs. You will find the APG in your Media pane,
.APG Presets Toolbar
This is the APG Presets toolbar. From left to right we have the following buttons:
- Add new preset: Adds a blank preset that can be modified.
- Edit selected preset: Opens up the APG Preset Editor window to edit the currently selected preset constraints.
- Delete selected preset: Removes the selected preset from the list; can NOT be undone.
- Import new preset: 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: Export the selected preset to a .xml file that can be imported.
- Run constraint tester: Tests the selected preset for consistency.
- Run APG with selected preset: Loads APG with the selected preset and automatically generates a playlist.
Working with Presets
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 use the
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 time played, bpm, sample rate 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 mainly on is the option box at the left of the value to: (which will consider any songs that have the according text in their tag), (which will consider songs whose corresponding match exactly the one in the text box), and .
You can also edit the way value-based (such as the Length 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 and click the rightmost button on the toolbar,
. You will then have a playlist matching your criteria, like this: