Playlist.h | Playlist.h | |||
---|---|---|---|---|
skipping to change at line 175 | skipping to change at line 175 | |||
Adventurousness, /// A value of 0 means no adventurousness, onl y known and preferred music will be played. A value of 1 means high adventu rousness, mostly unknown music will be played. This parameter only applies to catalog and catalog-radio type playlists. | Adventurousness, /// A value of 0 means no adventurousness, onl y known and preferred music will be played. A value of 1 means high adventu rousness, mostly unknown music will be played. This parameter only applies to catalog and catalog-radio type playlists. | |||
MoreLikeThis, /// When steering: Supply a song id to steer this session towards. Can be boosted from 0-5 like so: SO12341234^2. Default is 1 | MoreLikeThis, /// When steering: Supply a song id to steer this session towards. Can be boosted from 0-5 like so: SO12341234^2. Default is 1 | |||
LessLikeThis, /// When steering: Supply a song id to steer this session away from. Can be boosted from 0-5 like so: SO12341234^2. Default is 1 | LessLikeThis, /// When steering: Supply a song id to steer this session away from. Can be boosted from 0-5 like so: SO12341234^2. Default is 1 | |||
TargetTempo, /// When steering: 0.0 < tempo < 500. (BPM). Targe t a desired tempo for the songs in this dynamic playlist session | TargetTempo, /// When steering: 0.0 < tempo < 500. (BPM). Targe t a desired tempo for the songs in this dynamic playlist session | |||
TargetLoudness, /// When steering: -100. < loudness < 100. (BPM )dB. Target a desired loudness for the songs in this dynamic playlist sessi on | TargetLoudness, /// When steering: -100. < loudness < 100. (BPM )dB. Target a desired loudness for the songs in this dynamic playlist sessi on | |||
TargetDanceability, /// When steering: 0.0 < danceability < 1. Target a desired danceability for the songs in this dynamic playlist sessio n | TargetDanceability, /// When steering: 0.0 < danceability < 1. Target a desired danceability for the songs in this dynamic playlist sessio n | |||
TargetEnergy, /// When steering: 0.0 < energy < 1.Target a desi red energy for the songs in this dynamic playlist session | TargetEnergy, /// When steering: 0.0 < energy < 1.Target a desi red energy for the songs in this dynamic playlist session | |||
TargetSongHotttnesss, /// When steering: 0.0 < song_hotttnesss < 1.Target a desired song_hotttnesss for the songs in this dynamic playlist session | TargetSongHotttnesss, /// When steering: 0.0 < song_hotttnesss < 1.Target a desired song_hotttnesss for the songs in this dynamic playlist session | |||
TargetArtistHotttnesss, /// When steering: 0.0 < artist_hottttn esss < 1.Target a desired artist_hottttnesss for the songs in this dynamic playlist session | TargetArtistHotttnesss, /// When steering: 0.0 < artist_hottttn esss < 1.Target a desired artist_hottttnesss for the songs in this dynamic playlist session | |||
TargetArtistFamiliarity, /// When steering: 0.0 < artist_famili arity < 1.Target a desired energy for the artist_familiarity in this dynami c playlist session | TargetArtistFamiliarity, /// When steering: 0.0 < artist_famili arity < 1.Target a desired energy for the artist_familiarity in this dynami c playlist session | |||
SongType, /// Type of Song (atm: Live, Studio, Christmas) | ||||
}; | }; | |||
/** | /** | |||
* The types of feedback that can be used to steer a dynamic playli st | * The types of feedback that can be used to steer a dynamic playli st | |||
*/ | */ | |||
enum DynamicFeedbackParam { | enum DynamicFeedbackParam { | |||
BanArtist, /// Ban this artist from this dynamic session. [arti st_id, track_id, song_id, "last"] | BanArtist, /// Ban this artist from this dynamic session. [arti st_id, track_id, song_id, "last"] | |||
FavoriteArtist, /// Mark this artist as 'liked' for this sessio n. [artist_id, track_id, song_id, "last"] | FavoriteArtist, /// Mark this artist as 'liked' for this sessio n. [artist_id, track_id, song_id, "last"] | |||
BanSong, /// Ban this song from this dynamic session. [track_id , song_id, "last"] | BanSong, /// Ban this song from this dynamic session. [track_id , song_id, "last"] | |||
SkipSong, /// Mark this song as skipped by the user. Will not a ppear for the rest of the session. [track_id, song_id, "last"] | SkipSong, /// Mark this song as skipped by the user. Will not a ppear for the rest of the session. [track_id, song_id, "last"] | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 1 lines changed or added | |||
Song.h | Song.h | |||
---|---|---|---|---|
skipping to change at line 79 | skipping to change at line 79 | |||
MaxFamiliarity, | MaxFamiliarity, | |||
MinFamiliarity, | MinFamiliarity, | |||
MaxHotttnesss, | MaxHotttnesss, | |||
MinHotttnesss, | MinHotttnesss, | |||
MaxLongitude, | MaxLongitude, | |||
MinLongitude, | MinLongitude, | |||
MaxEnergy, | MaxEnergy, | |||
MinEnergy, | MinEnergy, | |||
Mode, | Mode, | |||
Key, | Key, | |||
Sort | Sort, | |||
SongType | ||||
}; | }; | |||
typedef QPair< Echonest::Song::SearchParam, QVariant > SearchParamData; | typedef QPair< Echonest::Song::SearchParam, QVariant > SearchParamData; | |||
typedef QVector< SearchParamData > SearchParams; | typedef QVector< SearchParamData > SearchParams; | |||
enum IdentifyParam { | enum IdentifyParam { | |||
Code, | Code, | |||
IdentifyArtist, | IdentifyArtist, | |||
IdentifyTitle, | IdentifyTitle, | |||
IdentifyRelease, | IdentifyRelease, | |||
IdentifyDuration, | IdentifyDuration, | |||
skipping to change at line 172 | skipping to change at line 173 | |||
qreal artistFamiliarity() const; | qreal artistFamiliarity() const; | |||
void setArtistFamiliarity( qreal artistFamiliarity ); | void setArtistFamiliarity( qreal artistFamiliarity ); | |||
/** | /** | |||
* The location of this artist. | * The location of this artist. | |||
*/ | */ | |||
ArtistLocation artistLocation() const; | ArtistLocation artistLocation() const; | |||
void setArtistLocation( const ArtistLocation& artistLocation ); | void setArtistLocation( const ArtistLocation& artistLocation ); | |||
/** | /** | |||
* The type of the song (atm: christmas, studio, live) | ||||
*/ | ||||
QList< QString > songTypes() const; | ||||
void setSongTypes( const QList< QString >& songTypes ); | ||||
void addSongType( const QString& songType ); | ||||
/** | ||||
* This fetches the data from The Echo Nest for the requested data, so i t | * This fetches the data from The Echo Nest for the requested data, so i t | |||
* returns a QNetworkReply*. When the finished() signal is emitted | * returns a QNetworkReply*. When the finished() signal is emitted | |||
* from the QNetworkReply object call parseInformation() to save the | * from the QNetworkReply object call parseInformation() to save the | |||
* data back to this Song object. | * data back to this Song object. | |||
* | * | |||
*/ | */ | |||
QNetworkReply* fetchInformation( SongInformation information = SongInform ation() ) const; | QNetworkReply* fetchInformation( SongInformation information = SongInform ation() ) const; | |||
/** | /** | |||
* Search for a song from The Echo Nest with the given search parameters. See | * Search for a song from The Echo Nest with the given search parameters. See | |||
End of changes. 2 change blocks. | ||||
1 lines changed or deleted | 9 lines changed or added | |||
TypeInformation.h | TypeInformation.h | |||
---|---|---|---|---|
skipping to change at line 97 | skipping to change at line 97 | |||
class ECHONEST_EXPORT SongInformation | class ECHONEST_EXPORT SongInformation | |||
{ | { | |||
public: | public: | |||
enum SongInformationFlag { | enum SongInformationFlag { | |||
AudioSummaryInformation = 0x001, | AudioSummaryInformation = 0x001, | |||
Tracks = 0x002, | Tracks = 0x002, | |||
Hotttnesss = 0x04, | Hotttnesss = 0x04, | |||
ArtistHotttnesss = 0x008, | ArtistHotttnesss = 0x008, | |||
ArtistFamiliarity = 0x010, | ArtistFamiliarity = 0x010, | |||
ArtistLocation = 0x020, | ArtistLocation = 0x020, | |||
SongType = 0x40, | ||||
NoInformation = 0x800 | NoInformation = 0x800 | |||
}; | }; | |||
Q_DECLARE_FLAGS( SongInformationFlags, SongInformationFlag ) | Q_DECLARE_FLAGS( SongInformationFlags, SongInformationFlag ) | |||
SongInformation(); | SongInformation(); | |||
SongInformation( SongInformationFlags flags ); | SongInformation( SongInformationFlags flags ); | |||
SongInformation( SongInformationFlags flags, const QStringList& idS paces ); | SongInformation( SongInformationFlags flags, const QStringList& idS paces ); | |||
SongInformation( const SongInformation& other ); | SongInformation( const SongInformation& other ); | |||
~SongInformation(); | ~SongInformation(); | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 1 lines changed or added | |||