Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    MIDI to G-Code

    Scheduled Pinned Locked Moved
    General Discussion
    3
    23
    1.3k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A Former User?
      A Former User @A Former User
      last edited by

      @bearer said in MIDI to G-Code:

      video: https://streamable.com/yxzs87

      play this side by side the preview and see if you can tell a difference? i didn't go to the step of making videos of both to sync the audio to say left and right. in any case it was mostly meant as a "this is what is sounds like on my paneldue"

      1 Reply Last reply Reply Quote 0
      • fmaundefined
        fma
        last edited by

        It seems to works fine on your Duet; I can ear missing notes in this small part, on mine... I'll dig further tomorrow to see what notes make problems.

        Thanks.

        Frédéric

        A Former User? 1 Reply Last reply Reply Quote 0
        • A Former User?
          A Former User @fma
          last edited by

          no worries, it shouldn't make a difference but it was an 7i pandeldue (with a slightly MacGyver fix on the buzzer. can try an older regular 4.3 later, but with the same firmware i expect them to do the same thing.

          1 Reply Last reply Reply Quote 0
          • Phaedruxundefined
            Phaedrux Moderator
            last edited by

            I just tested your mario code on my older V2 PanelDue and it ran fine. I couldn't get it to play over DWC and can't disconnect the PanelDue without some dissaembly.

            Here's another version of the mario theme that's even faster that plays perfectly as well.

            MarioTheme.g

            Z-Bot CoreXY Build | Thingiverse Profile

            1 Reply Last reply Reply Quote 0
            • fmaundefined
              fma
              last edited by

              This file has even more missing notes... Looks like a com issue between the Duet and the PanelDue, don't you think? Is there a checksum used for this com? Some commands seem to be drop...

              Frédéric

              A Former User? Phaedruxundefined 2 Replies Last reply Reply Quote 0
              • A Former User?
                A Former User @fma
                last edited by

                @fma said in MIDI to G-Code:

                Is there a checksum used for this com

                there is, could be a possible factor. shorter cable or lower baud rate are simple tests. i used the supplied 1 meter or so cable for the 7i test (i did twist the pairs a little just to tidy it up a little)

                also took a stab at recording the preview but computer failed badly at recording its own audio (at least using the win10/xbox game thing)

                1 Reply Last reply Reply Quote 0
                • Phaedruxundefined
                  Phaedrux Moderator @fma
                  last edited by

                  @fma Can you provide a video of how it's playing on your end?

                  I am also using the 4 wire cable. It's about 1.2 to 1.5 meter long and I've braided the wires as it runs alongside some motor wiring.

                  Z-Bot CoreXY Build | Thingiverse Profile

                  1 Reply Last reply Reply Quote 0
                  • fmaundefined
                    fma
                    last edited by fma

                    Ok, I'll do that. My cable is 1m long, and I also twisted the wires. I will try to use a shielded cable.

                    Frédéric

                    A Former User? 1 Reply Last reply Reply Quote 0
                    • A Former User?
                      A Former User @fma
                      last edited by

                      @fma said in MIDI to G-Code:

                      I will try to use a shielded cable.

                      trying lower baud rate may be simpler as a test?

                      1 Reply Last reply Reply Quote 0
                      • fmaundefined
                        fma
                        last edited by

                        How do I do that?

                        Frédéric

                        1 Reply Last reply Reply Quote 0
                        • Phaedruxundefined
                          Phaedrux Moderator
                          last edited by

                          https://duet3d.dozuki.com/Wiki/Gcode#Section_M575_Set_serial_comms_parameters

                          Z-Bot CoreXY Build | Thingiverse Profile

                          1 Reply Last reply Reply Quote 0
                          • fmaundefined
                            fma
                            last edited by

                            It does not seem to work: as soon as I change the baudrate, the PanelDue is unable to communicate with the Duet...

                            Frédéric

                            1 Reply Last reply Reply Quote 0
                            • Phaedruxundefined
                              Phaedrux Moderator
                              last edited by

                              Did you change the baud rate at the PanelDue to match?

                              Z-Bot CoreXY Build | Thingiverse Profile

                              1 Reply Last reply Reply Quote 0
                              • fmaundefined
                                fma
                                last edited by

                                No :o/

                                Now it communicates, but it still misses notes. I only tried at 9600bauds; I will try other speeds tomorrow.

                                Frédéric

                                A Former User? 1 Reply Last reply Reply Quote 0
                                • A Former User?
                                  A Former User @fma
                                  last edited by

                                  @fma said in MIDI to G-Code:

                                  but it still misses notes

                                  if it stayed the same, no need to try other speeds, but if it missed more notes it might be too slow.

                                  1 Reply Last reply Reply Quote 0
                                  • First post
                                    Last post
                                  Unless otherwise noted, all forum content is licensed under CC-BY-SA