ModernLrc 3.0.0
dotnet add package ModernLrc --version 3.0.0
NuGet\Install-Package ModernLrc -Version 3.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ModernLrc" Version="3.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ModernLrc" Version="3.0.0" />
<PackageReference Include="ModernLrc" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add ModernLrc --version 3.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ModernLrc, 3.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package ModernLrc@3.0.0
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=ModernLrc&version=3.0.0
#tool nuget:?package=ModernLrc&version=3.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
ModernLrc
A fast LRC (lyrics) parser and writer for .NET 10 and .NET 11. Native AOT compatible, trim-safe, and no dependencies outside the BCL.
- Basic LRC, multi-timestamp lines, Enhanced LRC word timing and Walaoke voice markers (
M:/F:/D:). - Malformed input produces diagnostics with stable codes and line/column positions instead of exceptions.
- Reads strings, spans,
TextReader, bytes, streams and files, sync and async, with encoding detection. FindLineAtandLinesInRangelook up lines by playback position, applying[offset:N].- Writing a document and parsing it again gives an equal document, within the round-trip limits (timestamps are written as
mm:ss.xxby default).
using ModernLrc;
using ModernLrc.Model;
// Parse
var result = LrcParser.Parse("[ti:Demo]\n[00:01.00]hello\n");
Console.WriteLine(result.Document.Metadata.Title); // Demo
// Author + write
var doc = new LrcDocumentBuilder()
.WithTitle("My Song")
.AddLine("00:12.00", "first line")
.AddLine("00:14.20", "second line", LrcVoice.Female)
.Build();
string lrc = LrcWriter.Write(doc);
Documentation and API reference: https://anthonyy232.github.io/ModernLrcParser/
Source, benchmarks and issues: https://github.com/Anthonyy232/ModernLrcParser
Licensed under the GNU General Public License v3.0 only. Versions up to 2.0.2 were released under the MIT License.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. net11.0 is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- No dependencies.
-
net11.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on ModernLrc:
| Repository | Stars |
|---|---|
|
Anthonyy232/Nagi
A fast, private music player for your local library on Windows, with Navidrome and Jellyfin streaming
|