{"id":32114256,"url":"https://github.com/soundascode/elm-maestro","last_synced_at":"2025-12-11T20:54:55.420Z","repository":{"id":62418875,"uuid":"84970252","full_name":"soundascode/elm-maestro","owner":"soundascode","description":"Elm music theory library","archived":false,"fork":false,"pushed_at":"2020-04-15T14:30:14.000Z","size":127,"stargazers_count":12,"open_issues_count":4,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-06T06:58:25.445Z","etag":null,"topics":["elm","library","music-theory"],"latest_commit_sha":null,"homepage":null,"language":"Elm","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/soundascode.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}},"created_at":"2017-03-14T16:12:27.000Z","updated_at":"2022-12-31T11:31:09.000Z","dependencies_parsed_at":"2022-11-01T16:46:26.325Z","dependency_job_id":null,"html_url":"https://github.com/soundascode/elm-maestro","commit_stats":null,"previous_names":["oleiade/elm-maestro"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/soundascode/elm-maestro","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soundascode%2Felm-maestro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soundascode%2Felm-maestro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soundascode%2Felm-maestro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soundascode%2Felm-maestro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/soundascode","download_url":"https://codeload.github.com/soundascode/elm-maestro/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soundascode%2Felm-maestro/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280112194,"owners_count":26274088,"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","status":"online","status_checked_at":"2025-10-20T02:00:06.978Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["elm","library","music-theory"],"created_at":"2025-10-20T15:15:39.916Z","updated_at":"2025-10-20T15:15:44.501Z","avatar_url":"https://github.com/soundascode.png","language":"Elm","funding_links":[],"categories":[],"sub_categories":[],"readme":"# elm-maestro\n\nThis library provides music theory abstractions and functionalities.\n\n**Alpha stage**: *this library is not considered stable yet, and could be\nsubject to API changes in the future.*\n\n## Installation\n\n```bash\nelm-package oleiade/elm-maestro\n```\n\nor add the dependency in your `elm-package.json` file directly\n\n```json\n\"oleiade/elm-maestro\": \"0.1.0 \u003c= v \u003c 0.2.0\"\n```\n\n## Usage\n\n### Types and abstractions\n\n#### Pitch\n\nThe `Maestro.PitchClass` module exposes the following types:\n\n```elm\ntype alias Pitch =\n    { class : PitchClass, accidental : Accidental }\n\ntype PitchClass\n    = C\n    | D\n    | E\n    | F\n    | G\n    | A\n    | B\n\ntype Accidental\n    = Natural\n    | Sharp\n    | Flat\n    | SharpSharp\n    | FlatFlat\n```\n\nin order to represent pitches/pitches as follows:\n\n```elm\nimport Maestro.PitchClass exposing(PitchClass(..), Accidental(..))\n\ncNatural = newPitch C Natural\ndSharp = newPitch D Sharp\nbFlat = newPitch B Flat\n```\n\n#### Note\n\nThe `Maestro.Note` module exposes the following types:\n\n```elm\ntype alias Note =\n    { pitch : Pitch\n    , octave : Octave\n    }\n\ntype alias Octave =\n    Int\n```\n\nin order to represent notes as follows:\n\n```elm\nimport Maestro.PitchClass exposing (Pitch, PitchClass(..), Accidental(..))\nimport Maestro.Note exposing (newNote)\n\ne3Natural = newNote E Natural 3\nf4Sharp = newNote F Sharp 4\na1Flat = newNote A Flat 1\n```\n\n#### Interval\n\nThe `Maestro.Interval` module exposes the following type:\n\n```elm\ntype Interval\n    = Unison\n    | MinorSecond\n    | MajorSecond\n    | MinorThird\n    | MajorThird\n    | PerfectFourth\n    | PerfectFifth\n    | MinorSixth\n    | MajorSixth\n    | MinorSeventh\n    | MajorSeventh\n    | PerfectOctave\n    | MinorNinth\n    | MajorNinth\n    | MinorTenth\n    | MajorTenth\n    | PerfectEleventh\n    | AugmentedEleventh\n    | PerfectTwelfth\n    | MinorThirteen\n    | MajorThirteen\n    | MinorFourteenth\n    | MajorFourteenth\n    | DoubleOctave\n```\n\nand will allow you to find the note at interval from a start note\nlike follows:\n\n```elm\nimport Maestro.PitchClass exposing (PitchClass(..), Accidental(..), newPitch)\nimport Maestro.Interval exposing (Interval(..), addInterval)\n\nexample : Note\nexample =\n  addInterval (newNote C Natural 3)  MajorThird\n```\n\n### Scale\n\nA Scale is represented as a list of Pitch. It is built from a pitch and a mode as\nfollows:\n\n```elm\nimport Maestro.PitchClass exposing (newPitch, PitchClass(..), Accidental(..))\nimport Maestro.Scale exposing (scale, Mode(..))\n\nexample : Scale\nexample =\n    doSomethingWith \u003c| scale (newPitch C Natural) Major\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoundascode%2Felm-maestro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoundascode%2Felm-maestro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoundascode%2Felm-maestro/lists"}