1
1
mirror of https://github.com/wader/fq.git synced 2024-10-04 07:27:08 +03:00

midi: added tests for format 0, format 1 and format 2 MIDI files

This commit is contained in:
twystd 2024-08-23 16:56:11 -07:00
parent 91fa54755f
commit 0e0a6694ca
2 changed files with 8 additions and 35 deletions

View File

@ -122,21 +122,3 @@ release:
@echo "# wader/fq": @echo "# wader/fq":
@echo git push wader v${VERSION}:v${VERSION} @echo git push wader v${VERSION}:v${VERSION}
@echo "# edit draft release notes and publish" @echo "# edit draft release notes and publish"
midi:
go fmt ./format/midi/...
go run . -d midi dv format/midi/testdata/test.mid
midi-debug:
go fmt ./format/midi/...
go run . -d midi dv format/midi/testdata/test.mid
midi-test: fq
go test ./format -run TestFormats/midi
midi-query: fq
./fq -d midi '.. | select(.event=="TrackName")?.name' format/midi/testdata/format-1.mid
./fq -d midi '.. | select(.event=="Tempo")?.tempo' format/midi/testdata/format-1.mid
./fq -d midi '.. | select(.event=="KeySignature")?.key' format/midi/testdata/format-1.mid
./fq -d midi 'grep_by(.event=="NoteOn" or .event=="NoteOff") | "\(.time.tick) \(.note)"' format/midi/testdata/format-1.mid

View File

@ -1,27 +1,18 @@
# TODO # TODO
- [x] update forked master branch - [x] update forked master branch
- [ ] discard unknown chunks
- [ ] tests
- [ ] format 0
- [x] format 1
- [ ] format 2
- [x] key signatures
- [x] example queries
- (?) add to probe group - (?) add to probe group
- [x] tick field - [ ] discard unknown chunks
- [ ] assert available bytes - [ ] assert available bytes
- [x] example queries
- [x] fix gaps - [x] fix gaps
- [x] SequencerSpecificEvent - [x] tick field
- [x] SMPTEOffset - [x] tests
- [x] TimeSignature - [x] key signatures
- [x] SysExMessage - [x] format 0
- [x] SysExContinuation - [x] format 1
- [x] SysEx - 'continued' flag - [x] format 2
- meta events - meta events
- [x] sequence number - [x] sequence number