Add builtin presets json

This commit is contained in:
Jordan Eldredge 2018-11-09 07:13:10 -08:00
parent f83110f141
commit 4290b3102e
4 changed files with 254 additions and 1 deletions

View file

@ -29,7 +29,8 @@
"build-skin": "rm skins/base-2.91.wsz && cd skins/base-2.91 && zip -x .* -x 'Skining Updates.txt' -r ../base-2.91.wsz .",
"build-skin-png": "rm skins/base-2.91-png.wsz && cd skins/base-2.91-png && zip -x .* -x 'Skining Updates.txt' -r ../base-2.91-png.wsz .",
"compile-skin": "node scripts/compileSkin.js > css/base-skin.css",
"skin-info": "unzip -vl skins/base-2.91.wsz"
"skin-info": "unzip -vl skins/base-2.91.wsz",
"build-presets": "node scripts/parsePresetFiles.js > presets/builtin.json"
},
"repository": {
"type": "git",

243
presets/builtin.json Normal file
View file

@ -0,0 +1,243 @@
{
"type": "Winamp EQ library file v1.1",
"presets": [
{
"name": "Classical",
"hz60": 33,
"hz170": 33,
"hz310": 33,
"hz600": 33,
"hz1000": 33,
"hz3000": 33,
"hz6000": 20,
"hz12000": 20,
"hz14000": 20,
"hz16000": 16,
"preamp": 33
},
{
"name": "Club",
"hz60": 33,
"hz170": 33,
"hz310": 38,
"hz600": 42,
"hz1000": 42,
"hz3000": 42,
"hz6000": 38,
"hz12000": 33,
"hz14000": 33,
"hz16000": 33,
"preamp": 33
},
{
"name": "Dance",
"hz60": 48,
"hz170": 44,
"hz310": 36,
"hz600": 32,
"hz1000": 32,
"hz3000": 22,
"hz6000": 20,
"hz12000": 20,
"hz14000": 32,
"hz16000": 32,
"preamp": 33
},
{
"name": "Laptop speakers/headphones",
"hz60": 40,
"hz170": 50,
"hz310": 41,
"hz600": 26,
"hz1000": 28,
"hz3000": 35,
"hz6000": 40,
"hz12000": 48,
"hz14000": 53,
"hz16000": 56,
"preamp": 33
},
{
"name": "Large hall",
"hz60": 49,
"hz170": 49,
"hz310": 42,
"hz600": 42,
"hz1000": 33,
"hz3000": 24,
"hz6000": 24,
"hz12000": 24,
"hz14000": 33,
"hz16000": 33,
"preamp": 33
},
{
"name": "Party",
"hz60": 44,
"hz170": 44,
"hz310": 33,
"hz600": 33,
"hz1000": 33,
"hz3000": 33,
"hz6000": 33,
"hz12000": 33,
"hz14000": 44,
"hz16000": 44,
"preamp": 33
},
{
"name": "Pop",
"hz60": 29,
"hz170": 40,
"hz310": 44,
"hz600": 45,
"hz1000": 41,
"hz3000": 30,
"hz6000": 28,
"hz12000": 28,
"hz14000": 29,
"hz16000": 29,
"preamp": 33
},
{
"name": "Reggae",
"hz60": 33,
"hz170": 33,
"hz310": 31,
"hz600": 22,
"hz1000": 33,
"hz3000": 43,
"hz6000": 43,
"hz12000": 33,
"hz14000": 33,
"hz16000": 33,
"preamp": 33
},
{
"name": "Rock",
"hz60": 45,
"hz170": 40,
"hz310": 23,
"hz600": 19,
"hz1000": 26,
"hz3000": 39,
"hz6000": 47,
"hz12000": 50,
"hz14000": 50,
"hz16000": 50,
"preamp": 33
},
{
"name": "Soft",
"hz60": 40,
"hz170": 35,
"hz310": 30,
"hz600": 28,
"hz1000": 30,
"hz3000": 39,
"hz6000": 46,
"hz12000": 48,
"hz14000": 50,
"hz16000": 52,
"preamp": 33
},
{
"name": "Ska",
"hz60": 28,
"hz170": 24,
"hz310": 25,
"hz600": 31,
"hz1000": 39,
"hz3000": 42,
"hz6000": 47,
"hz12000": 48,
"hz14000": 50,
"hz16000": 48,
"preamp": 33
},
{
"name": "Full Bass",
"hz60": 48,
"hz170": 48,
"hz310": 48,
"hz600": 42,
"hz1000": 35,
"hz3000": 25,
"hz6000": 18,
"hz12000": 15,
"hz14000": 14,
"hz16000": 14,
"preamp": 33
},
{
"name": "Soft Rock",
"hz60": 39,
"hz170": 39,
"hz310": 36,
"hz600": 31,
"hz1000": 25,
"hz3000": 23,
"hz6000": 26,
"hz12000": 31,
"hz14000": 37,
"hz16000": 47,
"preamp": 33
},
{
"name": "Full Treble",
"hz60": 16,
"hz170": 16,
"hz310": 16,
"hz600": 25,
"hz1000": 37,
"hz3000": 50,
"hz6000": 58,
"hz12000": 58,
"hz14000": 58,
"hz16000": 60,
"preamp": 33
},
{
"name": "Full Bass & Treble",
"hz60": 44,
"hz170": 42,
"hz310": 33,
"hz600": 20,
"hz1000": 24,
"hz3000": 35,
"hz6000": 46,
"hz12000": 50,
"hz14000": 52,
"hz16000": 52,
"preamp": 33
},
{
"name": "Live",
"hz60": 24,
"hz170": 33,
"hz310": 39,
"hz600": 41,
"hz1000": 42,
"hz3000": 42,
"hz6000": 39,
"hz12000": 37,
"hz14000": 37,
"hz16000": 36,
"preamp": 33
},
{
"name": "Techno",
"hz60": 45,
"hz170": 42,
"hz310": 33,
"hz600": 23,
"hz1000": 24,
"hz3000": 33,
"hz6000": 45,
"hz12000": 48,
"hz14000": 48,
"hz16000": 47,
"preamp": 33
}
]
}

BIN
presets/winamp.q1 Normal file

Binary file not shown.

9
scripts/parsePresetFiles.js Executable file
View file

@ -0,0 +1,9 @@
const fs = require("fs");
const path = require("path");
const { parser } = require("winamp-eqf");
const presetsPath = path.join(__dirname, "../presets/winamp.q1");
const content = fs.readFileSync(presetsPath);
const presetObjects = parser(content);
console.log(JSON.stringify(presetObjects, null, " "));