Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I'm new #1

Open
MopishFungus opened this issue Oct 22, 2022 · 6 comments
Open

I'm new #1

MopishFungus opened this issue Oct 22, 2022 · 6 comments

Comments

@MopishFungus
Copy link

Hello I'm trying to use your script and I'm new to this would you be able to make a short tutorial video?

@white-gecko
Copy link
Owner

I'm sorry, so far I did not find the time. If someone, who knows how it works creates a video I would be happy to link it in the README.

@ajtran303
Copy link

ajtran303 commented Aug 14, 2023

Hi new people, these are the steps I took to use the library

make a new directory

mkdir fmf_converter
cd fmf_converter

create and start a virtual environment

python3 -m venv .venv
source .venv/bin/activate

install the package

pip install musicxml2fmf

After the installation, you will be able to use musicxml2fmf tool from the command line

example usage --help option

musicxml2fmf --help

example usage (converting a file, according to the help notes)

musicxml2fmf --input my_song.musicxml --output my_song.fmf

when done converting, deactivate the environment

deactivate

This isn't the ideal workflow but it's what I'm doing.

Disclaimer, I haven't been able to find a .musicxml file that will work with the package yet.

@ajtran303
Copy link

I got a working conversion with this:

musicxml2fmf --input hello_world.musicxml --output hello_world.fmf

hello_world.music.xml

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE score-partwise PUBLIC
    "-//Recordare//DTD MusicXML 4.0 Partwise//EN"
    "http://www.musicxml.org/dtds/partwise.dtd">
<score-partwise version="4.0">
  <part-list>
    <score-part id="P1">
      <part-name>Music</part-name>
    </score-part>
  </part-list>
  <part id="P1">
    <measure number="1">
      <attributes>
        <divisions>1</divisions>
        <key>
          <fifths>0</fifths>
        </key>
        <time>
          <beats>4</beats>
          <beat-type>4</beat-type>
        </time>
        <clef>
          <sign>G</sign>
          <line>2</line>
        </clef>
      </attributes>
      <note>
        <pitch>
          <step>C</step>
          <octave>4</octave>
        </pitch>
        <duration>4</duration>
        <type>whole</type>
      </note>
    </measure>
  </part>
</score-partwise>

@ajtran303
Copy link

I got that file from the example here: https://www.w3.org/2021/06/musicxml40/tutorial/hello-world/

@white-gecko
Copy link
Owner

Thank you for this introduction and step by step guide, I have linked it in the README. If you like to add it to the README I'm open for pullrequests.

@ajtran303
Copy link

Thank you for this introduction and step by step guide, I have linked it in the README. If you like to add it to the README I'm open for pullrequests.

sounds good @white-gecko

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants