From 9bec21ea1cb9137d8c5dae6ee2cb78aac1b5601a Mon Sep 17 00:00:00 2001 From: Profpatsch Date: Sat, 28 Sep 2024 01:30:49 +0200 Subject: feat(users/Profpatsch/lyric): add vscode extension & helpers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * tap-bpm: simple CLI program that accepts key inputs and averages a BPM value * lyric-timing-mpv-script: If you press Ctrl+l, mpv attaches the current timestamp to a .lrc file named after the song. This is for manually timing missing songs for uploading them to https://lrclib.net/ * extension: vscode extension for `.lrc` files, currently with the following features: 1. A “jump to LRC position” command which reads an .lrc timestamp from the current line and expects mpv to listen on `~/tmp/mpv-socket` (via `--input-ipc-server`), and will seek to the exact timestamp (down to the ms) in the currently playing song. 2. Some initial linting warnings - A lint that warns if the difference to the next timestamp is more than 10s (which usually means there’s an instrumental and the previous line is stuck) - A lint that checks that timestamps are monotonically increasing Change-Id: I32a4ac0e2c5bbe3d94e45ffcf647f81bc7c08aa0 Reviewed-on: https://cl.tvl.fyi/c/depot/+/12537 Tested-by: BuildkiteCI Reviewed-by: Profpatsch --- users/Profpatsch/.vscode/launch.json | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'users/Profpatsch/.vscode/launch.json') diff --git a/users/Profpatsch/.vscode/launch.json b/users/Profpatsch/.vscode/launch.json index baa087d437d1..54f510e091ec 100644 --- a/users/Profpatsch/.vscode/launch.json +++ b/users/Profpatsch/.vscode/launch.json @@ -13,6 +13,32 @@ "runtimeArgs": [ "run", ], + }, + { + "type": "node", + "name": "Run tap-bpm", + "skipFiles": [ + "/**" + ], + "request": "launch", + "program": "${workspaceFolder}/lyric/dist/index.js", + "preLaunchTask": "ninja build lyric", + "outFiles": [ + "${workspaceFolder}/lyric/dist/**/*.js" + ], + "args": [ + "tap-bpm" + ] + }, + { + "preLaunchTask": "npm build lyric extension", + "name": "Launch lyric vscode Extension", + "type": "extensionHost", + "request": "launch", + "args": [ + "--extensionDevelopmentPath=${workspaceFolder}/lyric/extension", + "${workspaceFolder}/lyric/extension" + ] } ] } -- cgit 1.4.1