Skip to content

Instantly share code, notes, and snippets.

@byennen
Created September 20, 2019 00:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save byennen/4f6447186e90e2b394d87731c7278bc4 to your computer and use it in GitHub Desktop.
Save byennen/4f6447186e90e2b394d87731c7278bc4 to your computer and use it in GitHub Desktop.
{
"unPaidRoyalties": "804.30",
"royaltiesPaid": "4389.43",
"performance": {
"2016": [
{
"q1": [
{
"performances": "201",
"paid": "40"
}
],
"q2": [
{
"performances": "301",
"paid": "50"
}
],
"q3": [
{
"performances": "110",
"paid": "20"
}
],
"q4": [
{
"performances": "1100",
"paid": "100"
}
]
}
],
"2017": [
{
"q1": [
{
"performances": "201",
"paid": "40"
}
],
"q2": [
{
"performances": "301",
"paid": "50"
}
],
"q3": [
{
"performances": "110",
"paid": "20"
}
],
"q4": [
{
"performances": "1100",
"paid": "100"
}
]
}
],
"2018": [
{
"q1": [
{
"performances": "201",
"paid": "40"
}
],
"q2": [
{
"performances": "301",
"paid": "50"
}
],
"q3": [
{
"performances": "110",
"paid": "20"
}
],
"q4": [
{
"performances": "1100",
"paid": "100"
}
]
}
],
"2019": [
{
"q1": [
{
"performances": "201",
"paid": "40"
}
],
"q2": [
{
"performances": "301",
"paid": "50"
}
],
"q3": [
{
"performances": "110",
"paid": "20"
}
],
"q4": [
{
"performances": "1100",
"paid": "100"
}
]
}
]
},
"topEarners": [
{
"name": "Smack My Track Up",
"value": "710"
},
{
"name": "Black Moon",
"value": "554"
},
{
"name": "Lost in the Feeling",
"value": "502"
},
{
"name": "Stars Are Cars",
"value": "497"
},
{
"name": "Dreaming of You",
"value": "400"
}
],
"avgDay": "118.82",
"states": "32",
"sources": "12",
"gapAnalysis": [
{
"name": "Black Moon",
"ascap": "123",
"trqk": "100"
},
{
"name": "Dreaming of You",
"ascap": "80",
"trqk": "210"
},
{
"name": "Fantasy Fish",
"ascap": "100",
"trqk": "190"
},
{
"name": "Forever No",
"ascap": "64",
"trqk": "156"
},
{
"name": "Lost in Feeling",
"ascap": "20",
"trqk": "140"
},
{
"name": "Stars are Cars",
"ascap": "28",
"trqk": "70"
},
{
"name": "Smack My Track Up",
"ascap": "18",
"trqk": "138"
}
]
}
@byennen
Copy link
Author

byennen commented Sep 20, 2019

This is the data needed to build the dashboard.

To condense this I think it would look something like this:

{
  "trqks": [
    {
      "name": "Black Moon",
      "2018": [
        {
          "q1": [
            {
              "ascap": "123",
              "bmi": "98",
              "sesac": "10",
              "performances": "201",
              "unpaid": "100",
              "paid": "40"
            },
          "q2": [
            {
              "ascap": "123",
              "bmi": "98",
              "sesac": "10",
              "performances": "201",
              "unpaid": "100",
              "paid": "40"
            },
          "q3": [
            {
              "ascap": "123",
              "bmi": "98",
              "sesac": "10",
              "performances": "201",
              "unpaid": "100",
              "paid": "40"
            },
          "q4": [
            {
              "ascap": "123",
              "bmi": "98",
              "sesac": "10",
              "performances": "201",
              "unpaid": "100",
              "paid": "40"
            }
          ]
        }
      ]
    }
  ]
}

@ericpeters0n
Copy link

ericpeters0n commented Sep 20, 2019

{
  "works": [
    {
      "name": "Black Moon",
      "audio": "UPLOADED_S3_AUDIO",
      "2018": [
        {
          "q1": [
                {
                   "pro": "ascap",
                   "performances": 99,
                    "earnings": "123" 
                },
                {
                   "pro": "trqk",
                   "performances": 199,
                    "earnings": "999" 
                }
            ]
            },
           "q2" : { ... }

@byennen
Copy link
Author

byennen commented Sep 20, 2019

{
  "works": [
    {
      "name": "Black Moon",
      "s3URL": "INSERT_AUDIO_DETECTION_URL",
     "tempo": "[INSERT_AUDIO_DETECTION_TEMPO]",
     "genre": "[INSERT_AUDIO_DECTECTION_GENRE]",
      "2018": [
        {
          "q1": [
                {
                   "pro": "ascap",
                   "performances": 99,
                    "earnings": "123" 
                },
              
            },
           "q2" : { ... }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment