Jump to content

Removing default preset ratings in Alchemy


Jordi Torres

Recommended Posts

By default, all presets in Alchemy have a rating consisting of three blue stars. (Update: As of Logic Pro 10.2.1, the default star rating for Alchemy presets now shows as three light gray stars.) This basically means that a preset has not yet been rated by the user. The moment the user rates a preset, the stars change to a golden color. One of the problems of having this 3-blue-star rating as default, is that it will actually count as a 3-star rating when sorting:

 

1740587983_ScreenShot2015-10-01at09_40_11.png.721565943adcf743eefe502a1282561c.png

 

This situation can be overcome by replacing the 3-blue-star rating with a 5-gray-star rating by means of SQL queries.

 

Unlike the default blue-star rating, this gray-star rating does count as zero when sorting:

 

file.php?id=29897

 

To make the change, download, install and open SQLiteStudio (freeware).

 

(The same can be achieved with other SQLite editors such as sqlitebrowser and SQLite Manager, but I've chosen this one for this tip)

 

==========================================================================================

 

STEP 1: Opening and connecting to the database

 

From the Database menu, choose "Add a database" (Command-O) to open Alchemy's preset ratings and tags database.

Click the folder icon to browse and select the database (/Users/your username/Library/ Application Support/Logic/ Alchemy_Preset_Ratings_And_Tags.db), then click OK:

 

439190266_ScreenShot2015-10-01at00_54_31.png.387b76967dad7969c6f5fd5ff7f5eb6e.png

 

1890308091_ScreenShot2015-10-01at10_16_49.png.ea8744a9757b2757cb091cb2d4e4a671.png

 

Double-click Alchemy's preset ratings database in the "Databases" window to connect to it:

 

1760311001_ScreenShot2015-10-01at00_57_55.png.2b74620e89eb203c56b18608fce45281.png

 

281439926_ScreenShot2015-10-01at10_26_33.png.dadfa5561eabfd315e555db7dc9abd3d.png

 

==========================================================================================

 

STEP 2: Populating the USER_RATINGS table

 

In order to be able to change the ratings, the database's USER_RATINGS table must be populated with records related to the ones in the items table. The records in the items table are basically all presets available in Alchemy in your system. The total number of records on the items can change from user to user, mostly depending on whether you have legacy Alchemy libraries installed.

 

To populate the USER_RATINGS table, open the SQL editor from Tools > Open SQL editor (Option-E) and paste the following code:

 

INSERT INTO USER_RATINGS (ITEM_ID, LOCAL_RATINGS, UPLOADED) 
SELECT ITEM_ID, SERVER_RATINGS, MINE 
FROM items 
WHERE ITEM_ID NOT IN (SELECT ITEM_ID FROM USER_RATINGS);

 

Execute the query by clicking the button I've outlined in red, or use the key command F9:

 

1956849131_ScreenShot2015-10-01at11_16_14.png.fdb4db9ec7d24a80c6fee4f97923e883.png

 

This will create records related to the ones in the items table, ignoring any records for which an entry already exists in the USER_RATINGS table. In other words, if you've already rated some presets, they will already have an entry in the USER_RATINGS table, so there's no need to re-create records for them.

 

==========================================================================================

 

STEP 3: Update the USER_RATINGS table

 

Now, to change all 3-blue-star ratings to 5-gray-star ratings, paste the following code in the SQL editor and run it:

 

UPDATE USER_RATINGS 
SET LOCAL_RATINGS = 1 
WHERE LOCAL_RATINGS = -1;

 

1310319534_ScreenShot2015-10-01at11_20_09.png.044f45ae4f73f5a920d81b7fa12d114d.png

 

This will change all default 3-blue-star ratings to 5-star gray ratings,

while leaving any ratings you may have already entered yourself untouched.

 

 

 

That's it! You may now quit SQLiteStudio and open Alchemy (although it's actually OK to have Alchemy open while you do all this, but ypu may need to close and re-open the plug-in window to see the changes) :)

 

 

BONUS QUERIES:

 

To check the contents of the USER_RATINGS table:

 

SELECT * FROM USER_RATINGS;

 

To check the contents of the USER_RATINGS table, in conjunction with the corresponding preset name from the items table:

 

SELECT I.ITEM_NAME , U.* 
FROM USER_RATINGS AS U 
INNER JOIN items AS I ON U.ITEM_ID = I.ITEM_ID
ORDER BY ITEM_NAME;

 

To delete all user ratings and go back to the default 3-blue-star rating:

 

DELETE FROM USER_RATINGS;

 

Hope you find this useful!

 

J.

Link to comment
Share on other sites

  • 3 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...