{"id":20796407,"url":"https://github.com/jazz-soft/jzz-midi-sty","last_synced_at":"2026-02-25T14:07:44.097Z","repository":{"id":155879502,"uuid":"627700941","full_name":"jazz-soft/JZZ-midi-STY","owner":"jazz-soft","description":"Yamaha-PSR styles","archived":false,"fork":false,"pushed_at":"2025-04-11T21:58:13.000Z","size":55,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-11T14:44:13.140Z","etag":null,"topics":["midi","style","yamaha"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/jazz-soft.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","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,"zenodo":null},"funding":{"github":"jazz-soft","custom":"https://paypal.me/jazzsoft"}},"created_at":"2023-04-14T02:36:51.000Z","updated_at":"2025-04-11T21:55:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"9c66606d-da9e-480d-bf29-0ed463870d52","html_url":"https://github.com/jazz-soft/JZZ-midi-STY","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/jazz-soft/JZZ-midi-STY","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jazz-soft%2FJZZ-midi-STY","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jazz-soft%2FJZZ-midi-STY/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jazz-soft%2FJZZ-midi-STY/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jazz-soft%2FJZZ-midi-STY/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jazz-soft","download_url":"https://codeload.github.com/jazz-soft/JZZ-midi-STY/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jazz-soft%2FJZZ-midi-STY/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259301674,"owners_count":22836974,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["midi","style","yamaha"],"created_at":"2024-11-17T16:27:06.314Z","updated_at":"2026-02-25T14:07:44.050Z","avatar_url":"https://github.com/jazz-soft.png","language":"JavaScript","funding_links":["https://github.com/sponsors/jazz-soft","https://paypal.me/jazzsoft"],"categories":[],"sub_categories":[],"readme":"# JZZ-midi-STY\nYamaha-PSR styles\n\n[![npm](https://img.shields.io/npm/v/jzz-midi-sty.svg)](https://www.npmjs.com/package/jzz-midi-sty)\n[![npm](https://img.shields.io/npm/dt/jzz-midi-sty.svg)](https://www.npmjs.com/package/jzz-midi-sty)\n[![jsDelivr](https://data.jsdelivr.com/v1/package/npm/jzz-midi-sty/badge)](https://www.jsdelivr.com/package/npm/jzz-midi-sty)\n[![build](https://github.com/jazz-soft/JZZ-midi-STY/actions/workflows/build.yml/badge.svg)](https://github.com/jazz-soft/JZZ-midi-STY/actions)\n[![Coverage Status](https://coveralls.io/repos/github/jazz-soft/JZZ-midi-STY/badge.svg?branch=main)](https://coveralls.io/github/jazz-soft/JZZ-midi-STY?branch=main)\n\n[Work-in-progress demo](https://jazz-soft.github.io/modules/sty/index.html)\n\n## Install\n\n`npm install jzz-midi-sty --save`  \nor `yarn add jzz-midi-sty`  \nor get the full development version and minified scripts from [**GitHub**](https://github.com/jazz-soft/JZZ-midi-STY)\n\n## Usage\n\n##### Plain HTML\n\n```html\n\u003cscript src=\"JZZ.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"JZZ.midi.SMF.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"JZZ.midi.STY.js\"\u003e\u003c/script\u003e\n//...\n```\n\n##### CDN (jsdelivr)\n\n```html\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/jzz\"\u003e\u003c/script\u003e\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/jzz-midi-smf\"\u003e\u003c/script\u003e\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/jzz-midi-sty\"\u003e\u003c/script\u003e\n//...\n```\n\n##### CDN (unpkg)\n\n```html\n\u003cscript src=\"https://unpkg.com/jzz\"\u003e\u003c/script\u003e\n\u003cscript src=\"https://unpkg.com/jzz-midi-smf\"\u003e\u003c/script\u003e\n\u003cscript src=\"https://unpkg.com/jzz-midi-sty\"\u003e\u003c/script\u003e\n//...\n```\n\n##### CommonJS\n\n```js\nvar JZZ = require('jzz');\nrequire('jzz-midi-smf')(JZZ);\nrequire('jzz-midi-sty')(JZZ);\n//...\n```\n\n##### TypeScript / ES6\n\n```ts\nimport { JZZ } from 'jzz';\nimport { SMF } from 'jzz-midi-smf';\nimport { STY } from 'jzz-midi-sty';\nSMF(JZZ);\nSTY(JZZ);\n//...\n```\n\n##### AMD\n\n```js\nrequire(['JZZ', 'JZZ.midi.SMF', 'JZZ.midi.STY'], function(JZZ, dummy1, dummy2) {\n  // ...\n});\n```\n\n## Style files\n\n##### Reading file\n\n```js\nvar fs = require('fs');\nvar data = fs.readFileSync('my-style.sty', 'binary');\n// data can be String, Buffer, ArrayBuffer, Uint8Array, Int8Array,\n// or a JZZ.MIDI.SMF object\nvar sty = new JZZ.MIDI.STY(data);\n```\n\n##### Extracting MIDI tracks\n\n```js\nconsole.log('All style tracks:', sty.tracks());\n// additional track names not reported by tracks() can be:\n// '', 'SFF1', 'SFF2', 'OTSc1', 'OTSc2', 'OTSc3', 'OTSc4' (if present)\nvar smf = sty.export('Intro A'); // see JZZ.MIDI.SMF\nfs.writeFileSync('intro-a.mid', smf.dump(), 'binary');\nfs.writeFileSync('otsc1.mid', sty.export('OTSc1').dump(), 'binary');\n```\n\n##### Cleaning up\n\n```js\n// remove the OTSc section: it is not required\n// unless you use it on a Yamaha keyboard (see the docs...)\ndelete sty.otsc;\n// remove the FNRc section: it is not used for playback\n// and in most cases contains garbage (see the docs...)\ndelete sty.fnrc;\n```\n\n##### Writing file\n\n```js\nfs.writeFileSync('new-style.sty', sty.dump(), 'binary');\n```\n\n## Some useful Style links\n* http://wierzba.homepage.t-online.de/stylefiles_v101.pdf\n* http://www.jososoft.dk/yamaha/articles/keyboard_and_style.pdf\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjazz-soft%2Fjzz-midi-sty","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjazz-soft%2Fjzz-midi-sty","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjazz-soft%2Fjzz-midi-sty/lists"}