koniwa / hachiue

HTML-based audio annotation tool
https://koniwa.github.io/hachiue/
GNU Affero General Public License v3.0
7 stars 3 forks source link

前後のspanに移動する機能 #3

Open shirayu opened 2 years ago

cargilcm commented 5 months ago

It seems like an iterable wavesurfer.regions.list could be used and a play region triggered by a play previous/next region button.

If wavesurfer.getCurrentTime()===region.data.end then move to the previous/next region.

Caveat, I don't know if the lists keys are sorted earliest to latest by default but an array could be built that way manually fairly easily!

You've authored a great HTML tool with hachiue and it's code follows the design principles of it's parent and other coding guidelines well. I'm going to be using it as opposed to building practically the same thing manually. Makes sense 👍

cargilcm commented 5 months ago

Dear Mr hayashibe, please confirm: Is it you(your user on GitHub) who 👍'd my comment on this issue? I am new to starting to work on other repo's issues on GitHub and would like to know if I have your consent.

Please let me know by way of adding a comment as I can't make out WHO "liked" any of my comments thru GitHub's dashboard - I'd like to start working on patching this issue as a contribution. 👏

Edit: after looking again to try and discover who reacted to a comment on Android Mobile browsers while hovering doesn't work, hold pressing the reactions brings you to the reactees page. Who knew? 😂

shirayu commented 5 months ago

Hello, thank you for your interests and comments. Yes, It's me. (You can know who reacted by hovering mouse cursors to emoijs)

It is nice to add previous/next buttons. Unfortunately I can't take the enough time to write codes for issues on this repo right now, but pull requests are welcome!