https://github.com/henrixounez/v-midi
V Midi File Parser / Player
https://github.com/henrixounez/v-midi
midi v vlang
Last synced: about 1 month ago
JSON representation
V Midi File Parser / Player
- Host: GitHub
- URL: https://github.com/henrixounez/v-midi
- Owner: Henrixounez
- License: mit
- Created: 2020-10-11T11:41:36.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-04-17T16:26:26.000Z (about 4 years ago)
- Last Synced: 2025-02-01T12:26:28.539Z (3 months ago)
- Topics: midi, v, vlang
- Language: V
- Homepage:
- Size: 12.7 KB
- Stars: 8
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# V MIDI Files Parser / Player
#### Thank you @spaceface777 and @spytheman for the help with the sinewave Audio Generator :heart:
## How to use :
You have easy access interface for parsing and playing the midi file :
```v
import vmidimidi := vmidi.parse(file) or { return }
midi.play()
```
## Methods
|Method|use|
|-|-|
|`.parse(filename string) ?Midi`| Returns an optional `Midi` structure with the parsed `filename` file|
|`.play(midi Midi)`| Plays the tunes of the `Midi` file|