Welcome Guest ( Log In | Register )

Blending with functions as fields [moderation: in Columns UI], [Development is not for questions about general usage]
post Jul 10 2012, 14:24
Post #1

Group: Members
Posts: 2
Joined: 10-July 12
Member No.: 101308

So, I've added the album replay gain value to my groupings in the playlist, which groups by album. I'm trying to add color to this based on the replay gain, basically green for -8db or more (e.g. -4db, 0db, +x db), red for -12db or less (e.g. -13db), and a blended value for values between -8db and -12db. The first lines turns -12 to 0, and -8 to 4, ready to use with blend. The blend works as intended if i hard code numbers between 0 and 4 (or any others for that matter). Yet the two parts don't work together, and I can't figure out why. unsure.gif Puts and get are used just for clarification.


On a side note, how to use external editors for scripts? On another side not, how to not have the values converted to integers?

This post has been edited by e1m1: Jul 10 2012, 14:28
Go to the top of the page
+Quote Post
Start new topic
post Jul 10 2012, 15:16
Post #2

Group: Developer
Posts: 844
Joined: 28-November 03
Member No.: 10088

Try this at your own risk ... it is an old string I no longer use.

//track gain
$puts(TG,$add(2100,$replace(%__replaygain_track_gain%,.,, dB,)))
//album gain
$puts(AG,$add(2100,$replace(%__replaygain_album_gain%,.,, dB,)))
Go to the top of the page
+Quote Post

Posts in this topic

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


RSS Lo-Fi Version Time is now: 27th November 2015 - 07:25