Skip to content
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

duty cycle for recordings #217

Closed
kdarras opened this issue Aug 31, 2022 · 10 comments
Closed

duty cycle for recordings #217

kdarras opened this issue Aug 31, 2022 · 10 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@kdarras
Copy link

kdarras commented Aug 31, 2022

We need a new field in the recordings tables called "duty cycle". It describes how many minutes of sound are recorded per period and it can be expressed as a fraction. For instance, 1/3 means 1 minute of sound is recorded every 3 minutes.
If it is better to store that information in two fields (this is likely), then we can call these duty_cycle_recording and duty_cycle_period.

The duty cycle is relevant only for meta-recordings, as with real recordings, the use of a duty cycle will result in separate files (shown with spectrograms #202 ).

Duty-cycled meta-recordings should be shown with banded bars in the timeline. The band color proportions should correspond to the duty cycle, and the duty cycle be included in the label.

@kdarras kdarras added the enhancement New feature or request label Aug 31, 2022
@kdarras kdarras moved this to To do in Recordings Dec 11, 2023
@LiuDilongNJ
Copy link
Collaborator

LiuDilongNJ commented Jun 7, 2024

How to show better .

  1. Directly display the quarter
    image
  2. Average 10 equal parts
    image

@kdarras
Copy link
Author

kdarras commented Jun 7, 2024

Good question. I prefer the banded one at the bottom - it emphasizes the periodicity better.

LiuDilongNJ pushed a commit that referenced this issue Aug 13, 2024
@kdarras
Copy link
Author

kdarras commented Aug 13, 2024

Needed to add to the instructions:

  • duty_cycle_recording (duration of duty-cycled recordings in minutes)
  • duty_cycle_period (duration of cycle - recording + pause - in minutes)

Isn't it possible to show banded bars for smaller duty cycles too?
image

If this is impossible or difficult because I chose the second option above, let's change and use option 1 instead. It is clearer because it does not induce the user to think that the bands are actually located where the recordings are.

@LiuDilongNJ
Copy link
Collaborator

There is a bug here, which causes the display to be incorrect.

@kdarras kdarras added this to the F1000 v3 milestone Aug 15, 2024
@kdarras
Copy link
Author

kdarras commented Aug 15, 2024

Display works now but these fields are not yet visible in the recordings table. By the way, it would make sense to add the recording type (metadata/audio) in there as well.
Note: I had an error when manually setting the date of one recording:
image
It pops up as soon as I enter "0", even though I am not finished yet with typing. I suppose the date check should happen after shifting the focus to another field.

@kdarras
Copy link
Author

kdarras commented Aug 16, 2024

After importing the metadata.csv file, I obtained an error:
Screenshot from 2024-08-16 12-27-17

The CSV contains:
recording_start,duration_s,sampling_rate,name,bit_rate,channel_number,duty_cycle_recording,duty_cycle_period
2020-01-01 00:00:00,600,44100,name1,16,2,1,3
2020-01-01 01:00:00,1200,48000,name2,16,1,1,10

However, importing this CSV worked previously.
Any table action or page reload will produce the same error again after this.

@LiuDilongNJ
Copy link
Collaborator

I forgot to determine whether it was audio or metadata, which resulted in the metadata also executing the command to read ID3.

@kdarras
Copy link
Author

kdarras commented Aug 23, 2024

Working in Docker.

@kdarras kdarras linked a pull request Aug 26, 2024 that will close this issue
@kdarras
Copy link
Author

kdarras commented Aug 30, 2024

working online

@kdarras
Copy link
Author

kdarras commented Sep 18, 2024

completed in #511

@kdarras kdarras closed this as completed Sep 18, 2024
@github-project-automation github-project-automation bot moved this from To do to Done in Recordings Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants