Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » .midi to .sb2 converter
- JamesOuO
- Scratcher
500+ posts
.midi to .sb2 converter
Could this be possible?
I'd imagine all you'd have to do is make a program that creates sprites that have
Is this possible, (of course it is, but is it viable) and if so could someone make one?
I'd imagine all you'd have to do is make a program that creates sprites that have
play note ( v) for (0.5) beatsblocks, but then the problem of having one instrument playing multiple notes pops up.
Is this possible, (of course it is, but is it viable) and if so could someone make one?
- Thepuzzlegame
- Scratcher
1000+ posts
.midi to .sb2 converter
It is possible with Kurt.
Last edited by Thepuzzlegame (April 18, 2015 17:18:01)
hi!
- goldfish678
- Scratcher
1000+ posts
.midi to .sb2 converter
Probably. For one thing, though, you'd have to program something to write quite a bit of JSON.
Last edited by goldfish678 (April 18, 2015 00:00:56)
- blob8108
- Scratcher
1000+ posts
.midi to .sb2 converter
Indeed! I had an example that worked (and I think still does): It is possible with Kurt.import_midi.py
- PrincessPandaLover
- Scratcher
1000+ posts
.midi to .sb2 converter
Aw, dang! Kurt requires Python 2.7 while I'm using Python 3.4! Can anyone write a program doing this midi concept?Indeed! I had an example that worked (and I think still does): It is possible with Kurt.import_midi.py
- DigiTechs
- Scratcher
500+ posts
.midi to .sb2 converter
It's a lot cooler when you make it yourself, though
I do, in fact, have my own site; it's here.
I'm also working on a thing called Fetch. Look at it here!
@thisandagain pls explain. @thisandagain pls explain. @thisandagain pls explain. @thisandagain pls explain. @thisandagain pls explain.
- creeperboy698
- Scratcher
42 posts
.midi to .sb2 converter
I'm using python 2 AND using the code you put and it still won't work, it always gives me a syntax error
- Jonathan50
- Scratcher
1000+ posts
.midi to .sb2 converter
It'd help if you can post the error. I'm using python 2 AND using the code you put and it still won't work, it always gives me a syntax error
Last edited by Jonathan50 (Jan. 5, 2018 23:43:02)
Not yet a Knight of the Mu Calculus.
- MrMeowington
- Scratcher
100+ posts
.midi to .sb2 converter
I always get “no module named midiparse”. Any fix?
EDIT: Nevermind, you just need to download midiparse.py first and put it in the same directory as import_midi.py.
EDIT: Nevermind, you just need to download midiparse.py first and put it in the same directory as import_midi.py.
Last edited by MrMeowington (Aug. 11, 2018 03:22:09)
Hey there! I don't use this account anymore. You can find me over at @Scratch137.
- MrMeowington
- Scratcher
100+ posts
.midi to .sb2 converter
FOR THOSE OF YOU WITH PYTHON 2.7 AND PYTHON 3 INSTALLED TOGETHER:
Run this command in the terminal (Linux only):
The python command corresponds to Python 2.x, and the python3 command corresponds to Python 3.x.
Run this command in the terminal (Linux only):
python import_midi.py "MIDI_LOCATION" "EXPORT_LOCATION"
Last edited by MrMeowington (Aug. 11, 2018 03:26:36)
Hey there! I don't use this account anymore. You can find me over at @Scratch137.
- Raytracing
- Scratcher
86 posts
.midi to .sb2 converter
Hmm yes sound like a job python or javascript might try.
insert something here
- Raytracing
- Scratcher
86 posts
.midi to .sb2 converter
Its not too hard to create an .sb2 file with custom scripts the main part is getting everything timed with optimal efficiency (It needs to find the most amount of notes running at the same time and…), A compiler is probably a bit out of reach but @chooper100 's MIDI Impoter (Interpreter) can practically do the trick. (the problem with this is its not to customisable)
Or you can use kurt like was mentioned before but it may not be as accurate and as fast running as the interpreter (no offence)
MIDI Imported (chooper100) https://scratch.mit.edu/projects/101508699/
Kurt (blob8108) https://github.com/tjvr/kurt/blob/master/examples/import_midi.py
I could try working on a new compiler but I dont know if I have the time, Nor the understanding of the format of MIDI files.
Sorry for not being much help, Hope someone else is a lot better use than I am
Or you can use kurt like was mentioned before but it may not be as accurate and as fast running as the interpreter (no offence)
MIDI Imported (chooper100) https://scratch.mit.edu/projects/101508699/
Kurt (blob8108) https://github.com/tjvr/kurt/blob/master/examples/import_midi.py
I could try working on a new compiler but I dont know if I have the time, Nor the understanding of the format of MIDI files.
Sorry for not being much help, Hope someone else is a lot better use than I am
insert something here
- Discussion Forums
- » Advanced Topics
- » .midi to .sb2 converter