{"id":23190636,"url":"https://github.com/mlang/xsdcxx-musicxml","last_synced_at":"2025-04-05T06:42:17.257Z","repository":{"id":24249907,"uuid":"27643269","full_name":"mlang/xsdcxx-musicxml","owner":"mlang","description":null,"archived":false,"fork":false,"pushed_at":"2020-02-24T12:53:52.000Z","size":630,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-10T14:27:22.982Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"coderdiaz/vue-datasource","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mlang.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-12-06T17:53:55.000Z","updated_at":"2022-04-08T17:23:31.000Z","dependencies_parsed_at":"2022-07-10T10:46:12.241Z","dependency_job_id":null,"html_url":"https://github.com/mlang/xsdcxx-musicxml","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlang%2Fxsdcxx-musicxml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlang%2Fxsdcxx-musicxml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlang%2Fxsdcxx-musicxml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlang%2Fxsdcxx-musicxml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mlang","download_url":"https://codeload.github.com/mlang/xsdcxx-musicxml/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247299791,"owners_count":20916186,"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":[],"created_at":"2024-12-18T12:15:08.124Z","updated_at":"2025-04-05T06:42:17.232Z","avatar_url":"https://github.com/mlang.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"XSDCXX based MusicXML bindings for C++\n======================================\n\n.. _xsdcxx: http://codesynthesis.com/projects/xsd/\n\nxsdcxx-musicxml is a MusicXML binding for C++11 based on xsdcxx_.\nThe bulk of the source code is automatically generated from the MusicXML\nW3C XML Schema Definition (XSD).  Parsing, manipulation, and serialization\nof MusicXML documents is supported.\n\nThis library handles both, partwise *and* timewise MusicXML documents in a\nuniform way.  Client code is free to work with either of the two object models,\nand MusicXML documents are automatically converted to the requested format\nduring parsing.\n\n.. code-block:: c++\n\n    auto timewise = musicxml::parse\u003cmusicxml::score_timewise\u003e(std::cin, \"-\");\n    for (auto \u0026measure: timewise.measure()) {\n      for (auto \u0026part: measure.part()) {\n        std::clog \u003c\u003c measure.number() \u003c\u003c \": \" \u003c\u003c part.id()-\u003epart_name()\n                  \u003c\u003c std::endl;\n        //...\n      }\n    }\n    musicxml::serialize(std::cout, timewise);\n\nor\n\n.. code-block:: c++\n\n    auto partwise = musicxml::parse\u003cmusicxml::score_partwise\u003e(std::cin, \"-\");\n    for (auto \u0026part: partwise.part()) {\n      for (auto \u0026measure: part.measure()) {\n        std::clog \u003c\u003c part.id()-\u003epart_name() \u003c\u003c \": \" \u003c\u003c measure.number()\n                  \u003c\u003c std::endl;\n        //...\n      }\n    }\n    musicxml::serialize(std::cout, partwise);\n\nAlternatively, if you want to save to a different format as you have worked with,\nyou can use the musicxml::convert function to flip formats:\n\n.. code-block:: c++\n\n    // Serialize a score-partwise document.\n    musicxml::serialize(std::cout, musicxml::convert(timewise));\n    \nBoth, `musicxml::score_partwise::part_type::measure_type` and\n`musicxml::score_timewise::measure_type::part_type` use `boost::variant` to\nstore the different allowed element types in a heterogeneous container.  This\ncontainer can be accessed and set with the `music_data()` accessors, and its\ntype is available as member type `music_data_sequence`.\n\n`IDREF` attributes are configured to point directly to the referenced\nelement type(s).  Some IDREF's are optional though, so be sure to not\ndereference those unconditionally.\n\nBuilding\n--------\n\nCMake and XSDCXX are required to build this library.\n\nSee generate.cpp, partiwse.cpp and timewise.cpp for very simple usage examples.\n\nTo use this library in your project,\n\n.. code-block:: c++\n\n   #include \"xsdcxx-musicxml/musicxml.hpp\"\n\nand link with the `xsdcxx-musicxml` library.  If you prefer static linking, use\n`xsdcxx-musicxml-static`.\n\n.. _ADD_SUBDIRECTORY: http://www.cmake.org/cmake/help/v3.0/command/add_subdirectory.html\n\nYou can also use the CMake ADD_SUBDIRECTORY_ command to directly\ninclude this library as a subproject in your CMake based project.\n\nParent project\n--------------\n\n.. _BMC: https://github.com/mlang/bmc\n\nThis library is being developed as a sub-project of BMC_, the Braille Music Compiler.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmlang%2Fxsdcxx-musicxml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmlang%2Fxsdcxx-musicxml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmlang%2Fxsdcxx-musicxml/lists"}