alexyu132 / midi-m300

Tool for converting MIDI tracks to M300 speaker gcode for 3D printers
GNU General Public License v3.0
100 stars 19 forks source link

M300 S0 #3

Open dweenz opened 5 months ago

dweenz commented 5 months ago

Hi I am here to ask a question. Is there a way to remake this midi to m300 converter so that instead of M300 PXXX S0 it places a G4 PXXX command instead? The M300 PXXX S0 creates a tone on my printer buzzer. I can get it to not play the tone if I delete the S0 altogether and set my omit frequency to 15000. But that's way too much editing especially for longer songs. And replacing the M300 PXXX S0 with G4 PXXX takes even longer.

Thanks for your hard work!

Cheers, Darren

ethicalhacker7192 commented 5 months ago

Perhaps I will implement that in my fork, where you have an experimental option to do G4 PXXX commands instead of the usual M300 PXXX.

dweenz commented 5 months ago

That would be awesome! I really like this feature for ending my print with a cool tune! Wish I could help but I am not a programmer just an end user. Thanks for the reply.

ethicalhacker7192 commented 5 months ago

Great, I'll get working on it.

ethicalhacker7192 commented 5 months ago

I was able to make a experimental version, the only thing is that the GCODE interpreter only sees the notes instead of the pauses, should work on your printer.

dweenz commented 4 months ago

Hi I know it's been a while since I last was here but I am now looking for that experimental version you mentioned and I am not sure where to look?

ethicalhacker7192 commented 4 months ago

I am currently in the process of making it public, sorry for the wait, it has been going under many tests and I am still fixing many bugs.

ethicalhacker7192 commented 4 months ago

I'll make it public, but expect bugs.

dweenz commented 4 months ago

Oh wow that was a fast reply thank you. Ok no worries I look forward to trying it out!


From: ethicalhacker7192 @.> Sent: May 11, 2024 1:56 PM To: alexyu132/midi-m300 @.> Cc: dweenz @.>; Author @.> Subject: Re: [alexyu132/midi-m300] M300 S0 (Issue #3)

I am currently in the process of making it public, sorry for the wait, it has been going under many tests and I am still fixing many bugs.

— Reply to this email directly, view it on GitHubhttps://github.com/alexyu132/midi-m300/issues/3#issuecomment-2106029534, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A5KVZFXXP7E4AAF3HSWPEQDZB2AYNAVCNFSM6AAAAABE2SQA5WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBWGAZDSNJTGQ. You are receiving this because you authored the thread.Message ID: @.***>

dweenz commented 4 months ago

s0 causes a tone to play when it should be a pause. I just want it to not put anything if it shows s0 but if it could still pause for that duration would be optimal.


From: ethicalhacker7192 @.> Sent: May 11, 2024 2:02 PM To: alexyu132/midi-m300 @.> Cc: dweenz @.>; Author @.> Subject: Re: [alexyu132/midi-m300] M300 S0 (Issue #3)

what do you mean omit though? subtract the tone by 1? (mapping of S0 causes each tone to be one higher?)

— Reply to this email directly, view it on GitHubhttps://github.com/alexyu132/midi-m300/issues/3#issuecomment-2106030652, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A5KVZFSA5HDNNSM55GAJUULZB2BOVAVCNFSM6AAAAABE2SQA5WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBWGAZTANRVGI. You are receiving this because you authored the thread.Message ID: @.***>

ethicalhacker7192 commented 4 months ago

okay, thanks, I'm just streamlining it right now.

ethicalhacker7192 commented 4 months ago

I have uploaded it here. To install, simply install the zip or use git to clone it:

git clone https://github.com/ethicalhacker7192/midi-m300-loop.git
cd midi-m300-loop
python3 -m http.server 80 (linux)
py -m http.server 80 (windows)

if the operation system you are using is windows, please install python here. additionally, in linux, use apt, pacman, yay, or whatever package manager you are using to install python3.

ethicalhacker7192 commented 4 months ago

You can also access the web version here: https://ethicalhacker7192.github.io/midi-m300-loop/

ethicalhacker7192 commented 3 months ago

Did this ever fix your issue? You can close the issue if you like.