Midi to M300



  • Hello,
    is there a way to convert midi to Gcode using M300 command ?





  • @phaedrux THX!



  • I have added this to config.g but it does not play on machine startup while the same command in a macro works.

    ; STARTUP TUNE
    ;
    M300 S3000 P200
    G4 P200
    M300 S3520 P200
    G4 P200
    M300 S1300 P400

    If the machine is already booted up and I hit emergency stop then the tune is played correctly



  • I've found that the Duet needs some extra time at first bootup to finish doing what it's doing before the tone commands will execute properly.

    This is what I have and it seems to work fairly well most of the time. Though I think I need to make the pauses longer now. Recent firmwares seem to behave a little differently.

    ; BLTOUCH PREP
    ;
    G4 S1
    M280 P3 S160 I1 		; Alarm Release and Push-Pin UP just in case it's in alarm and deployed
    G4 S1
    M402				; Retract probe just in case it's down
    
    ; STARTUP TUNE
    ;
    M400
    G4 S1
    M300 P200 S1975.53
    G4 P201
    M300 P200 S2217.46
    G4 P201
    M300 P200 S1975.53
    G4 P201
    M300 P200 S2793.83
    G4 P201
    M300 P200 S2489.02
    G4 P201
    M300 P200 S2217.46
    G4 P201
    M300 P200 S2489.02
    G4 P201
    M300 P200 S2959.96
    G4 P201
    M300 P300 S3520.00
    G4 S1
    M400
    

Log in to reply