Open aaaaargZombies opened 5 months ago
chucked some data on the screen mostly via this ugly drawTrack function
some thoughts:
You need to grab the whole file to generate the chart, and this results in a wait before we can process it. It took about 1 second to load I'm serving the file over HTTP not reading from disk but it's still on my machine so can only really get worse. This meant I needed to handle some loading states, which typescript relatively painless but I missed Elm here.
One thing that could be nice would be to animate the chart when playing so there's some movement and it is in sync with the audio.
I could potentially make the histogram a loading spinner too.
At the moment the component renders waveform as the track plays. I think it would be nicer to render a static graphical representation of the track which can used to help you navigate track position. see soundcloud or audacity