{"id":25629727,"url":"https://github.com/AudioKit/Tonic","last_synced_at":"2025-02-22T19:18:16.347Z","repository":{"id":51687588,"uuid":"486435921","full_name":"AudioKit/Tonic","owner":"AudioKit","description":"Swift library for music theory","archived":false,"fork":false,"pushed_at":"2024-12-18T21:34:02.000Z","size":1207,"stargazers_count":163,"open_issues_count":6,"forks_count":22,"subscribers_count":13,"default_branch":"main","last_synced_at":"2025-02-14T17:40:17.668Z","etag":null,"topics":["chords","intervals","music","scales","theory"],"latest_commit_sha":null,"homepage":"https://www.audiokit.io/Tonic/","language":"Swift","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/AudioKit.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},"funding":{"github":"AudioKit"}},"created_at":"2022-04-28T03:43:34.000Z","updated_at":"2025-02-10T22:10:07.000Z","dependencies_parsed_at":"2024-03-01T23:23:45.744Z","dependency_job_id":"5689c7cd-3fdc-44c0-a7f7-babff7fd774f","html_url":"https://github.com/AudioKit/Tonic","commit_stats":{"total_commits":476,"total_committers":12,"mean_commits":"39.666666666666664","dds":"0.49369747899159666","last_synced_commit":"7f34a6c862fc44169df96ff73b23402315daa629"},"previous_names":["audulus/tonic"],"tags_count":29,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AudioKit%2FTonic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AudioKit%2FTonic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AudioKit%2FTonic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AudioKit%2FTonic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AudioKit","download_url":"https://codeload.github.com/AudioKit/Tonic/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240222484,"owners_count":19767465,"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":["chords","intervals","music","scales","theory"],"created_at":"2025-02-22T19:17:37.302Z","updated_at":"2025-02-22T19:18:16.342Z","avatar_url":"https://github.com/AudioKit.png","language":"Swift","readme":"# Tonic\n\n[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2FAudioKit%2FTonic%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/AudioKit/Tonic)\n[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2FAudioKit%2FTonic%2Fbadge%3Ftype%3Dplatforms)](https://swiftpackageindex.com/AudioKit/Tonic)\n\n\u003cimg src=\"Sources/Tonic/Tonic.docc/Resources/demo.png\" alt=\"Demo\" /\u003e\n\n\nSwift library for music theory, currently focused on chords/harmony.\n\nTonic answers musical questions, such as:\n\n- What's the note for this pitch in this key? \n\n    `Note(pitch: Pitch(midiNoteNumber), key: .Bb)`\n\n- What's the name of a chord? \n\n    `Chord(notes: notes).description`\n\n- What chords are in this key? \n\n    `Key.Cm.chords`\n\n- What chords in this key contain this note? \n\n    `Key.C.chords.filter { $0.noteClasses.contains(.C) }`\n\n- What notes do these keys have in common?  \n\n    `Key.C.noteSet.intersection(Key.Cm.noteSet)`\n\n- What notes don't these keys have in common? \n\n    `Key.C.noteSet.symmetricDifference(Key.Cm.noteSet)`\n\nThese questions are all tested in our unit tests explicitly.\n\n## Goals\n\n- **Correctness**. Try to be as correct with respect to music theory as possible.\n- **Strong typing**. Use types to prevent errors (e.g. `Pitch` instead of `UInt8`).\n- **Good performance**. Tonic uses bit sets to represent pitch sets and note sets.\n\n## Documentation\n\nThe documentation is host on the [AudioKit.io Website](https://www.audiokit.io/Tonic/). The package includes a demo project as well.\n\n## Install\n\nInstall using Swift Package Manager.\n","funding_links":["https://github.com/sponsors/AudioKit"],"categories":["Swift"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAudioKit%2FTonic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FAudioKit%2FTonic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAudioKit%2FTonic/lists"}