{"id":15292764,"url":"https://github.com/keijiro/minis","last_synced_at":"2025-04-09T04:05:18.528Z","repository":{"id":39007145,"uuid":"217452911","full_name":"keijiro/Minis","owner":"keijiro","description":"Minis: MIDI Input for New Input System -- A plugin that adds MIDI input support to Unity's new Input System","archived":false,"fork":false,"pushed_at":"2024-01-23T07:45:22.000Z","size":202,"stargazers_count":609,"open_issues_count":12,"forks_count":48,"subscribers_count":20,"default_branch":"master","last_synced_at":"2025-04-09T04:04:51.609Z","etag":null,"topics":["midi","unity","unity3d"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/keijiro.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":"2019-10-25T04:46:40.000Z","updated_at":"2025-04-08T20:41:51.000Z","dependencies_parsed_at":"2024-06-18T17:02:34.563Z","dependency_job_id":"c146a38f-e4e4-484e-ae22-90a45d6260a1","html_url":"https://github.com/keijiro/Minis","commit_stats":{"total_commits":58,"total_committers":1,"mean_commits":58.0,"dds":0.0,"last_synced_commit":"7a7e9a4d2c82d84685699108d3f93b9d50e57f12"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keijiro%2FMinis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keijiro%2FMinis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keijiro%2FMinis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/keijiro%2FMinis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/keijiro","download_url":"https://codeload.github.com/keijiro/Minis/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247974715,"owners_count":21026742,"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","unity","unity3d"],"created_at":"2024-09-30T16:26:36.141Z","updated_at":"2025-04-09T04:05:18.486Z","avatar_url":"https://github.com/keijiro.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"Minis: MIDI Input for New Input System\n======================================\n\n![gif](https://i.imgur.com/xo9BgV4.gif)\n![gif](https://i.imgur.com/UFqQcEz.gif)\n\n**Minis** (MIDI Input for New Input System) is a Unity plugin that adds MIDI\ninput device support to [Unity's new Input System].\n\n[Unity's new Input System]:\n  https://blogs.unity3d.com/2019/10/14/introducing-the-new-input-system/\n\nSystem Requirements\n-------------------\n\n- Unity 2019.3 or later\n- 64-bit desktop platforms (Windows, macOS, Linux)\n\nOn Linux, ALSA (libasound2) must be installed on the system.\n\nHow To Install\n--------------\n\nThis package uses the [scoped registry] feature to resolve package\ndependencies. Please add the following sections to the manifest file\n(Packages/manifest.json).\n\n[scoped registry]: https://docs.unity3d.com/Manual/upm-scoped.html\n\nTo the `scopedRegistries` section:\n\n```\n{\n  \"name\": \"Keijiro\",\n  \"url\": \"https://registry.npmjs.com\",\n  \"scopes\": [ \"jp.keijiro\" ]\n}\n```\n\nTo the `dependencies` section:\n\n```\n\"jp.keijiro.minis\": \"1.0.10\"\n```\n\nAfter changes, the manifest file should look like below:\n\n```\n{\n  \"scopedRegistries\": [\n    {\n      \"name\": \"Keijiro\",\n      \"url\": \"https://registry.npmjs.com\",\n      \"scopes\": [ \"jp.keijiro\" ]\n    }\n  ],\n  \"dependencies\": {\n    \"jp.keijiro.minis\": \"1.0.10\",\n    ...\n```\n\nHow To Use\n----------\n\n### Input Controls\n\nWhen Minis is installed to a project, MIDI control elements appear under\n\"Other\" \u003e \"MIDI Device\". You can also use the \"Listen\" button to select a\ncontrol.\n\n![gif](https://i.imgur.com/nFzQM2M.gif)\n\n**TIPS** - There is a small known issue where the listener only reacts to notes\nwith high velocity (higher than 63). You may have to press a key strongly.\n\nThe MIDI Notes are shown as button controls with names like \"Note C4\". These\ncontrols work as pressure-sensitive buttons. These button values are normalized\nas values between 0.0 to 1.0.\n\nThe MIDI Controls (CC) are shown as axis controls with names like \"Control 10\".\nThese axis values are normalized as values between 0.0 to 1.0.\n\nFor further usage of the new Input System, please see the [Input System manual].\n\n[Input System manual]:\n  https://docs.unity3d.com/Packages/com.unity.inputsystem@latest/\n\n### MIDI Channels\n\nMinis treats each MIDI channel as an individual device. MIDI devices are\ndynamically added to the Input System when it detects a MIDI message from a\nnew channel.\n\n**TIPS** - It means that the Input System can't detect a MIDI device until it\nsends a message. You may have to prompt the user to press a key to activate the\ndevice.\n\nWhen multiple MIDI interfaces are connected to the system, channels under these\ninterfaces are also treated as individual devices. For instance, if you have\nconnected two MIDI interfaces to a computer, you can use up to 32 input devices\nat the same time (as each interface can handle up to 16 channels).\n\n### MIDI Device Assigner\n\n![inspector](https://i.imgur.com/xHkTuOgm.jpg)\n\nMIDI Device Assigner is a small utility that assigns a MIDI device to\nPlayerInput. You can specify a MIDI channel and a product name as a search\ncondition. It assigns a found device to a PlayerInput instance that exists in\nthe same GameObject.\n\nScripting Examples\n------------------\n\nThis repository contains some examples showing how to use Minis from C# scripts.\n\n[**DeviceCallback.cs**](Assets/Script/DeviceCallback.cs) - This script shows\nhow to define a callback to get notified on MIDI device additions and removals.\n\n[**DeviceQuery.cs**](Assets/Script/DeviceQuery.cs) - This script shows how to\nsearch MIDI devices by a pattern matching with a product name and a channel\nnumber.\n\n[**NoteCallback.cs**](Assets/Script/NoteCallback.cs) - This script shows how to\ndefine a callback to get notified on MIDI note-on/off events.\n\nFrequently Asked Questions\n--------------------------\n\n#### Does it support MIDI out?\n\nNo, but the backend (RtMidi) supports MIDI out. You can use the output\nfunctionality by directly accessing it. Please check the [RtMidi for Unity]\nrepository that contains a MIDI out sample script.\n\n[RtMidi for Unity]: https://github.com/keijiro/jp.keijiro.rtmidi\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeijiro%2Fminis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkeijiro%2Fminis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeijiro%2Fminis/lists"}