Edit of asset "Midi File Parser / Player" Accepted
Old/Current | New/Edit | |
---|---|---|
Title | Midi File Parser / Player | |
Description |
Parse your midi files directly with native GDScript 4+ with no other dependencies. The example also include a demo of how you can create a sound player based on the parsed midi data. Usage var parser = MidiFileParser.load_file("res://yourmidi.mid") # parser.header contains midi header data # parser.tracks contains all midi tracks ## iterate over tracks and events for track in parser.tracks: for event in track.events: # do something with events here Playback Demo See midi_file_player_example.gd or load and play scene demo/midi_demo. It will contain all required parts (timing, _process loop) to play notes at correct times. The demo uses a very simple generic audio signal generator. Quality is not good but frequencies are correct. It will play "Beethoven - Fur Elise", which you will know for sure. |
Parse your midi files directly with native GDScript 4+ with no other dependencies. The example also include a demo of how you can create a sound player based on the parsed midi data. Usage var parser = MidiFileParser.load_file("res://yourmidi.mid") # parser.header contains midi header data # parser.tracks contains all midi tracks ## iterate over tracks and events for track in parser.tracks: for event in track.events: # do something with events here Playback Demo See midi_file_player_example.gd or load and play scene demo/midi_demo. It will contain all required parts (timing, _process loop) to play notes at correct times. The demo uses a very simple generic audio signal generator. Quality is not good but frequencies are correct. It will play "Beethoven - Fur Elise", which you will know for sure. |
Category | Scripts | |
License | MIT | |
Repository Provider | GitHub | |
Repository Url | https://github.com/brainfoolong/gdscript-midi-parser | |
Issues Url | https://github.com/brainfoolong/gdscript-midi-parser/issues | |
Godot version | Godot 4.0 | |
Version String | 1.0.0 | |
Download Commit | 64ae88753ec9f9a212446c78567107f4a9a09f27 | |
Download Url (Computed) | https://github.com/brainfoolong/gdscript-midi-parser/archive/64ae88753ec9f9a212446c78567107f4a9a09f27.zip | |
Icon Url |
https://raw.githubusercontent.com/brainfoolong/gdscript-midi-parser/main/icon.png
|