{"id":19248045,"url":"https://github.com/dockyardmc/dockyard-nbs","last_synced_at":"2026-01-31T14:32:27.859Z","repository":{"id":256794808,"uuid":"856454775","full_name":"DockyardMC/dockyard-nbs","owner":"DockyardMC","description":"Dockyard library that implements the NBS file format and allows for playing noteblock songs in-game","archived":false,"fork":false,"pushed_at":"2024-09-14T18:59:10.000Z","size":19,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-04-11T10:08:18.353Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DockyardMC.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-12T15:48:49.000Z","updated_at":"2024-09-18T05:12:16.000Z","dependencies_parsed_at":"2024-09-13T04:34:13.587Z","dependency_job_id":"07434f22-3333-4f1b-b11b-93232a4a3fbb","html_url":"https://github.com/DockyardMC/dockyard-nbs","commit_stats":null,"previous_names":["dockyardmc/dockyard-nbs"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DockyardMC/dockyard-nbs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DockyardMC%2Fdockyard-nbs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DockyardMC%2Fdockyard-nbs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DockyardMC%2Fdockyard-nbs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DockyardMC%2Fdockyard-nbs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DockyardMC","download_url":"https://codeload.github.com/DockyardMC/dockyard-nbs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DockyardMC%2Fdockyard-nbs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28945640,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T14:26:55.697Z","status":"ssl_error","status_checked_at":"2026-01-31T14:26:52.545Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T18:06:13.504Z","updated_at":"2026-01-31T14:32:27.835Z","avatar_url":"https://github.com/DockyardMC.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🎶 Dockyard NBS Library🎵\n\ndockyard-nbs is a dockyardmc library that implements the [NBS file format](https://opennbs.org/nbs) and allows for playing noteblock songs in-game\n\n## Installation\n\n\u003cimg src=\"https://cdn.worldvectorlogo.com/logos/kotlin-2.svg\" width=\"16px\"\u003e\u003c/img\u003e\n**Kotlin DSL**\n```kotlin\nrepositories {\n    maven {\n        name = \"devOS\"\n        url = uri(\"https://mvn.devos.one/releases\")\n    }\n}\n\ndependencies {\n    implementation(\"io.github.dockyardmc:dockyard-nbs:1.0\")\n}\n```\n\n\n## Usage\n\nYou can parse the nbs file either using `NBSFile.fromFile(file)` or `NBSReader.read(file)`. You then get a `NBSTrack` class and you can then add a \"listener\" to it and use the `start()` method to play it\n\n```kotlin\nval track = NBSReader.read(File(\"./nbs/bad_apple.nbs\"))\ntrack.listeners.add(player)\ntrack.start()\n```\nYou can change the volume by either:\n- Setting the `volume` field manually\n- Using `fadeTo(volume, time)`, `fadeFromZero(time)`, `fadeToZero(time)` functions which interpolate the volume over time\n\nYou can control the playback of the track by using:\n- `stop()` to stop the playback\n- `start()` to start/resume playback\n- `seek(time)` to skip\n- `reset()` to stop the track and reset it to initial state\n- `dispose()` to get dispose the track and the timer\n\nYou can also change the `looping` field to enable/disable automatic looping","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdockyardmc%2Fdockyard-nbs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdockyardmc%2Fdockyard-nbs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdockyardmc%2Fdockyard-nbs/lists"}