Closed hglanz closed 4 years ago
@michalg04 @mschrothglanz I actually wonder now, how much of the app we might want to change in light of the wavesurfer functionality. There appear to be a lot of really cool things that we already does that it does too.
So, perhaps follow up task/goal for @michalg04 ........the example clips on that github show some cool widgets and functionality for use with a spectrogram. Our app clearly does more than just a spectrogram. Some questions/things to explore:
I'm sorry we're just finding out about wavesurfer now, but it doesn't seem to totally obsolete a bunch of stuff or anything :)
@hglanz @michalg04 this is very exciting!!
@hglanz @mschrothglanz I've been able to implement the audio play oscillogram under our current plots (excuse my really weirdly skewed screen)
I can see this being an extra feature we add but I am not sure if we can get it to be interactive with the other graphs. This is an HTML widget object, and it cannot be converted to ggplot object to become interactive. We can maybe get the coordinates of each segment we highlight in the play area to be reflected in the graphs above, but I'm not entirely sure how to do that at the moment. I'll keep working on it. A side note - I haven't been able to republish the app. Accessing it now gives an error that says I need to check the logs, but the logs don't indicate any failure or problem. I pushed the code to GitHub so you can run it through R-Studio.
@hglanz are you able to determine the publishing problem? @michalg04 are you saying that wavesurfer's spectrogram is not interactive? Under the "annotator" part of the github Hunter shared it seemed that you could interact with the spectrogram.
@mschrothglanz wavesurfer is somewhat interactive, it just isn't compatible with our graphs so we probably won't be able to get that sound oscillogram to interact with our spectrogram or spectrum. You can still select an area and such but the zoom the way it works on our graphs won't be possible.
@hglanz @mschrothglanz I finally fixed the publishing problem! App should be updated now. Sorry it took me so long. Let me know what you think of the wavesurfer, it's just an added feature for now. I haven't figured out how to involve it in our graphs.
@michalg04 @hglanz Hello! So I finally found some time to take a closer look at the app. I just have a couple questions/issues: 1) When I open the page, I'm not seeing what we use to see. Instead I'm seeing this: Eventually, after clicking some buttons, I can get back to our original template.
2) I love that we can play it and see the current position of the sound wave within the oscillogram. However, it would be nice if we could see it in the spectrogram as well. The spectrogram that the new function provides isn't colored and doesn't have a y-axis which is also problematic. Is this something that we can change? Are we able to get the playback button on the spectrogram as well?
3) The ability to annotate is really nice but, obviously would be much better within the spectrogram. Our primary graph should be the spectrogram since that is what we work with most often.
4) I don't quite understand the minimap or timeline buttons.
5) The dolphin file seems to crash the app. As we mentioned before @hglanz, getting the power to work this app is needed.
What is everyone else's thoughts?
@mschrothglanz thank you for your feedback!
Sorry I don't have better news at the moment!
@michalg04 That's okay. Is there anything I can do on my end? Or perhaps @hglanz has some ideas....
@michalg04 My R twitter friends came through when I asked a little bit about this. Here are some things for you to check out and report back on :)
First, a few links about HTML and JavaScript: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/currentTime
....though these might not be new.
What looks REALLY promising: https://github.com/Athospd/wavesurfer
@mschrothglanz check out the wavesurfer github link just above and scroll down to some of his example clips. This looks AMAZING!