Skip to content

Conversation

@boeddeker
Copy link

This PR contains minimal modifications to remove unnecessary quantizations in the generated JSONs.
The old time stamps have 2 decimals. Two decimals have a resolution of 160 samples. So the quantization error can be in the worst case 159 samples also when the synchronization is perfect.

Workaround:
First round the float values (time in seconds) such that they represent a sample value (i.e. the number times the sampling rate is an integer).
Second, the written numbers use 7 decimals. This is necessary to keep the resolution.

My personal suggestion would be to use integers (samples) instead of floats (seconds) to save the time stamps. This makes it easier and more precise to work with them. Especially in the case when a synchronization is used. It prevents all rounding errors. For example, when in the JSON the number is saved with 7 decimals it is not guaranteed that the reader code considers 7 decimals.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant