twystd
578b7e78e3
midi: restructured event decoding to decode length and struct fields (cf. https://github.com/wader/fq/pull/1004#discussion_r1737105173 )
...
- restructured and simplified metaevent decoding
- restructured and simplified MIDI event decoding
- added sample events for remaining metaevents
- moved MIDI test and sample files to testdata/midi
- fixed fuzzing fail 8450de010e750ed5
2024-09-01 16:41:26 -07:00
twystd
e940f4766f
midi: reworked metaevent decoding for PR comments
...
- fixed remaining snake-cased event names in tests and examples (cf. https://github.com/wader/fq/pull/1004#discussion_r1737054466 )
- report 'status' and 'event' seperately (cf. https://github.com/wader/fq/pull/1004#discussion_r1737085013 )
- decoded TimeSignature metaevent as length + byte fields (cf. https://github.com/wader/fq/pull/1004#discussion_r1737105173 )
- decoded SequencerSpecificEvent metaevent as length + byte fields (cf. https://github.com/wader/fq/pull/1004#discussion_r1737111253 )
- reworked Errorf's as Fatalf's for data reads (cf. https://github.com/wader/fq/pull/1004#discussion_r1737123374 )
2024-09-01 16:40:22 -07:00
twystd
7950dd651f
midi: added midi to the TestFormats all.fqtest list (cf. https://github.com/wader/fq/pull/1004#issuecomment-2314599567 )
2024-08-28 14:39:45 -07:00
twystd
f424936faa
midi: fixed lint warning (cf. https://github.com/wader/fq/pull/1004#discussion_r1734668130 )
2024-08-28 14:15:53 -07:00
twystd
462ae15856
midi: removed superfluous AssertLeastBytesLeft (cf. https://github.com/wader/fq/pull/1004#discussion_r1734668130 )
2024-08-28 14:06:17 -07:00
twystd
b5f2bdabc9
midi: added localised Makefile (cf. https://github.com/wader/fq/pull/1004#discussion_r1732745303 )
2024-08-28 14:01:22 -07:00
twystd
2350afed5d
midi: updated help text to use snake-case event names (cf. https://github.com/wader/fq/pull/1004#discussion_r1734659627 )
2024-08-28 14:00:27 -07:00
twystd
c8d9397bc4
midi: snake-cased event types and event names (cf. https://github.com/wader/fq/pull/1004#discussion_r1732733049 )
2024-08-27 16:03:45 -07:00
twystd
ea3e0898bf
midi: reworked decoding to expect an MThd header as the first chunk (cf. https://github.com/wader/fq/pull/1004#discussion_r1732725275 )
2024-08-27 15:41:58 -07:00
twystd
dad4a91657
midi: replace d.BytesLen(1) with d.U8()
2024-08-27 15:22:50 -07:00
twystd
7fd9ad2778
midi: removed debug leftovers (cf. https://github.com/wader/fq/pull/1004#discussion_r1732723519 )
2024-08-27 15:10:59 -07:00
twystd
763d142008
midi: moved 'dev only' Makefile to workdir and removed it from .gitignore (cf. https://github.com/wader/fq/pull/1004#discussion_r1732745303 )
2024-08-27 15:05:45 -07:00
twystd
899549623d
midi: cleaned up event decoding logic
2024-08-26 00:50:52 -07:00
twystd
36b776ef5d
Merge branch 'master' into midi
2024-08-25 20:47:56 -07:00
twystd
2970fb143e
midi: lowercased event names
2024-08-25 20:46:42 -07:00
twystd
2a65036680
midi: fixed fuzzing errors
2024-08-25 20:06:41 -07:00
twystd
3105b7d27b
Added to probe group
2024-08-25 17:48:31 -07:00
twystd
2f2070eca2
midi: fixed lint warnings
2024-08-25 17:09:12 -07:00
twystd
0b4be892d7
midi: cleaned up unknown chunk logic
2024-08-25 16:43:24 -07:00
twystd
4fac4c68a5
midi: discarded unknown chunks
2024-08-25 11:03:46 -07:00
twystd
e99d9f69ab
midi: asserted bytes left for MIDI events
2024-08-24 11:23:40 -07:00
twystd
80b93439ac
midi: added new test and MIDI files
2024-08-23 17:24:03 -07:00
twystd
57adef4688
midi: added sample queries to midi.md
2024-08-23 17:20:55 -07:00
twystd
0e0a6694ca
midi: added tests for format 0, format 1 and format 2 MIDI files
2024-08-23 16:56:11 -07:00
twystd
91fa54755f
midi: added example queries to the test data
2024-08-23 15:54:52 -07:00
Mattias Wadman
f2f5ca5619
Merge pull request #1002 from wader/bump-make-golangci-lint-1.60.3
...
Update make-golangci-lint to 1.60.3 from 1.60.2
2024-08-23 18:29:22 +02:00
Mattias Wadman
23ae700db9
Merge pull request #1003 from wader/bump-github-golangci-lint-1.60.3
...
Update github-golangci-lint to 1.60.3 from 1.60.2
2024-08-23 18:29:07 +02:00
bump
ccf78c755a
Update github-golangci-lint to 1.60.3 from 1.60.2
...
Release notes https://github.com/golangci/golangci-lint/releases/tag/v1.60.3
2024-08-23 16:04:53 +00:00
bump
e01cff019c
Update make-golangci-lint to 1.60.3 from 1.60.2
...
Release notes https://github.com/golangci/golangci-lint/releases/tag/v1.60.3
2024-08-23 16:04:51 +00:00
twystd
473394b21e
midi: added event type to events to simplify query by event
2024-08-22 19:54:04 -07:00
Mattias Wadman
6dbc37f2bc
Merge pull request #1001 from wader/update-untracked-mods
...
fq: Update golang.org/x/exp and github.com/gomarkdown/markdown
2024-08-22 09:01:10 +02:00
Mattias Wadman
7257325954
Merge pull request #1000 from wader/gojq-update
...
gojq: Update fq fork
2024-08-22 08:59:21 +02:00
Mattias Wadman
f16f6dc9f9
fq: Update golang.org/x/exp and github.com/gomarkdown/markdown
2024-08-22 08:53:20 +02:00
Mattias Wadman
3626787377
gojq: Update fq fork
...
From upstream:
fix uri and urid formats not to convert a space between a plus sign
improve time functions to accept fewer element arrays
implement add/1 function
2024-08-22 08:50:36 +02:00
twystd
59b1faa4b9
midi: decorated 'delta' field with running tick
2024-08-21 19:59:34 -07:00
twystd
54a0cf1284
midi: mapped SysEx event types
2024-08-21 19:13:03 -07:00
twystd
3ed98897bb
midi: mapped SMPTE framerates
2024-08-21 19:07:39 -07:00
Mattias Wadman
656bb50107
Merge pull request #999 from mrcook/tzx-readme-byte-array
...
tzx: add readme instructions for bits_format=byte_array
2024-08-21 23:28:14 +02:00
Michael R. Cook
b27017cc7d
tzx: add readme instructions for bits_format=byte_array
2024-08-21 22:02:34 +02:00
Mattias Wadman
c70f6677b0
Merge pull request #997 from wader/bump-make-golangci-lint-1.60.2
...
Update make-golangci-lint to 1.60.2 from 1.60.1
2024-08-21 19:31:09 +02:00
bump
f6d02798ef
Update make-golangci-lint to 1.60.2 from 1.60.1
...
Release notes https://github.com/golangci/golangci-lint/releases/tag/v1.60.2
2024-08-21 19:09:45 +02:00
Mattias Wadman
90e14c7a66
Merge pull request #998 from wader/bump-github-golangci-lint-1.60.2
...
Update github-golangci-lint to 1.60.2 from 1.60.1
2024-08-21 19:08:52 +02:00
bump
f9dff5c65d
Update github-golangci-lint to 1.60.2 from 1.60.1
...
Release notes https://github.com/golangci/golangci-lint/releases/tag/v1.60.2
Skip some gosec rules as they give too many false positives
2024-08-21 19:00:27 +02:00
Mattias Wadman
28d1c33a5e
Merge pull request #996 from wader/revert-binary-each
...
intepr: Revert binary value each
2024-08-21 17:28:16 +02:00
Mattias Wadman
fc74f6857c
intepr: Revert binary value each
...
Is a bad idea, behaves confusingly with .. etc. Maybe can be
done in the future via some option to make all raw bits behave
as arrays are instroduced.
2024-08-21 16:33:20 +02:00
Mattias Wadman
2a9dc432c2
Merge pull request #995 from wader/binary-each
...
intepr: Support each for binary values
2024-08-21 16:23:47 +02:00
Mattias Wadman
3f3183a5c5
intepr: Support each for binary values
...
Makes it possible to output all bytes or bits as integers in a binary value.
Ex: [1,2,3] | [tobytes[]] -> [1,2,3]
2024-08-21 16:17:19 +02:00
Mattias Wadman
c75ae65cf0
Merge pull request #994 from wader/go_version
...
cli: Add go version to version string
2024-08-20 13:59:15 +02:00
Mattias Wadman
550bcc27ff
cli: Add go version to version string
2024-08-20 13:31:51 +02:00
Mattias Wadman
5766566663
Merge pull request #992 from wader/bits-format-bytes-array
...
interp: Add bits_format=byte_array support
2024-08-20 09:22:21 +02:00