fiatjaf
e3c7b1a34b
negentropy: another test from a different source, another doc entry, comments on source of test samples.
2024-09-19 21:47:09 -03:00
fiatjaf
3853387176
negentropy: const modes, RFC3339 dates and synthetic timestamps.
2024-09-19 16:06:12 -03:00
fiatjaf
8f9a005776
negentropy: timestamp description as UTC.
2024-09-18 23:36:09 -03:00
fiatjaf
49bd7c27fd
negentropy: add format.
2024-09-18 16:39:40 -03:00
Mattias Wadman
52e6e1b1fb
matroska: Update spec
...
Update generator to support hex values
2024-09-12 11:09:41 +02:00
twystd
3966d5bedb
midi: tightened up status/event decoding logic (cf. https://github.com/wader/fq/pull/1004#issuecomment-2334916357 )
2024-09-07 14:46:01 -07:00
twystd
9c7f7f961a
midi: fixes for PR comments:
...
- Renamed 'tracks' section to 'content' (cf. https://github.com/wader/fq/pull/1004#discussion_r1746651234 )
- Removed 'validation only' errors (cf. https://github.com/wader/fq/pull/1004#issuecomment-2333464662 )
- Decoded MThd divisions field with SMPTE timecode
2024-09-06 15:41:57 -07:00
twystd
87c80f5776
midi: fixes for PR comments
...
- Reworked event types as snake-case (cf. https://github.com/wader/fq/pull/1004#discussion_r1745101588 )
- Decoded 'alien' chunks (cf. https://github.com/wader/fq/pull/1004#discussion_r1745082089 )
2024-09-05 15:50:51 -07:00
twystd
9f057b6760
midi: fixes for PR comments
...
- Removed handling for non-MIDI chunks (cf. https://github.com/wader/fq/pull/1004#discussion_r1743889501 )
- Removed redundant chunk length asserts (cf. https://github.com/wader/fq/pull/1004#discussion_r1743883995 )
- Removed redundant header FieldArray (cf. https://github.com/wader/fq/pull/1004#discussion_r1743921309 )
- Replaced FieldUintFn with FieldUnn for SMTPEOffsetEvent (cf. https://github.com/wader/fq/pull/1004#discussion_r1743930829 )
- Added note to midi.md re. supported chunks
2024-09-04 13:36:35 -07:00
twystd
17bac771df
midi: removed superfluous uint64 cast (cf. https://github.com/wader/fq/pull/1004#discussion_r1740783338 )
2024-09-03 11:19:34 -07:00
twystd
a3a0a06932
midi: simplifed and cleaned up MIDI 'fq' tests:
...
- reduced format 0, format 1 and format 2 test files to basic MIDI skeleton
- reworked reference.mid file as a test/development sample only
- added fq tests for the single event MIDI files
- updated examples to use twinkle.mid
2024-09-01 16:41:38 -07:00
twystd
a7d0cde9f6
midi: cleaned up and simplied event decoding logic
...
- delineated NoteOn and NoteOff events
- simplified MIDI event decoding with function map
- decoded MIDI event and channel as nibbles
- reworked system exclusive event decoding
- fixed peekEvent to correctly decode end of file events
2024-09-01 16:41:38 -07:00
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
twystd
473394b21e
midi: added event type to events to simplify query by event
2024-08-22 19:54:04 -07: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
Michael R. Cook
b27017cc7d
tzx: add readme instructions for bits_format=byte_array
2024-08-21 22:02:34 +02:00
twystd
3809ddbd23
midi: combined metaevent status + event bytes
2024-08-19 20:04:19 -07:00
twystd
a337ff002f
midi: reworked sysex and metaevent 'struct' events to decode as byte arrays
2024-08-19 19:49:14 -07:00
Mattias Wadman
1fac9516bf
Merge pull request #990 from mrcook/tzx-updates
...
TZX updates - mostly for easier JSON parsing
2024-08-19 14:35:17 +02:00
Mattias Wadman
824e51ec58
gojq: Update fq fork
...
Rebase fq changes on latester gojq main.
Most notable change visiable to users is that gojq now allows queries
as object literal values. For example this now works: {a: 1+2+3}
From upstream:
083fb39 refactor code using built-in min and max functions
470db58 bump up to Go 1.23, drop support for Go 1.20
0607aa5 bump up version to 0.12.16
0709341 update CHANGELOG.md for v0.12.16
1324e6e update dependencies
01355e9 improve parser to allow binary operators as object values
a41a5f8 fix debug/1 function to be available only when debug/0 is defined
f694c1b fix a benchmark test BenchmarkCompile
f2559f6 remove private compare function
0cd3a66 improve compiler to abort with error if query is missing
422cc9d refactor stringify function declarations of query
1130c4e refactor program body, rename rules, remove empty actions in parser
8d7ccc9 add tests for immutability of arrays
375e90d remove useless receivers
1b5ce7f set correct offset for multibyte tokens
8874f53 fix tests of exp10 and atan2 failing on some platforms
2024-08-19 14:15:02 +02:00
twystd
ce02d6eafe
midi: added length field to TimeSignature struct
2024-08-18 21:28:18 -07:00
twystd
befdf1fc32
midi: reworked SysEx events as struct with length field
2024-08-18 21:13:12 -07:00
twystd
fdde5680fe
midi: (partly) fixed SMPTEOffsetEvent gap
2024-08-18 21:01:37 -07:00
twystd
f1b888bd88
midi: fixed gap in SequencerSpecificEvent
2024-08-18 20:46:58 -07:00