Skip to content

Produces record file from WAV format #239

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 18, 2020
Merged

Produces record file from WAV format #239

merged 3 commits into from
Jun 18, 2020

Conversation

Lucas-Mc
Copy link
Contributor

@Lucas-Mc Lucas-Mc commented Jun 17, 2020

Introduces the conversion of WAV files to MIT format. Fortunately, it doesn't use any outside libraries (even Python's wave package) since it is simply read using struct.unpack(). Further work plans to generate the .dat files. I think the .hea files can already be generated though some information may not appear correct due to the loss of some information while being stored in WAV format, such as only one adc_res and adc_gain value instead of a list provided in EDF format, for example. For this reason, writing test cases for this function may be difficult though I might explore it in the future if time permits and demand commands it.

Introduces the conversion of WAV files to MIT format. Fortunately, doesn't use any outside libraries (even Pythons wave package) since it is simply read using struct.unpack. Further work plans to generate the .dat files. I think the .hea files can already be generated though some information may not appear correct due to the loss of some information while being stored in WAV format, such as only one adc_res and adc_gain value instead of a list provided in EDF format, for example. For this reason, writing test cases for this function may be difficult though I might explore it in the future if time permits and demand commands it.
@Lucas-Mc Lucas-Mc self-assigned this Jun 17, 2020
@Lucas-Mc Lucas-Mc merged commit f65cf2e into master Jun 18, 2020
@Lucas-Mc Lucas-Mc deleted the wav2mit branch June 18, 2020 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant