Giter Club home page Giter Club logo

wavearea's Introduction

wavearea

Multiline waveform player with simple editing.
Provides minimal ergonomic means to open, edit and save sounds.
Good for speech fragments playback / editing.

Based on wavefont and sprae.

🕉

wavearea's People

Contributors

dy avatar mreinstein avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

wavearea's Issues

a working example would be very helpful

The demo looks awesome! But the code snippets in the README.md and in test.js don't actually work. Could you include a very simple working example? That would be quite helpful.

Strategies analysis

1. MediaRecorder with timeslice for recording, SourceBuffer→ MediaElement for playback

  • presumably fast
  • presumably cross-browser
  • native-ish
  • minimum time slice is limited to ~ .3s or so, playing small slices is impossible (or requires stuffing silence somehow)
  • no way to adjust frame → bar correspondance
  • hard to debug

Actually mb problem was initial chunk - slicing subsequent parts is fine.

1.1 MediaRecorder, but full blob for playback

Workable solution at react-mic uses media recorder with 10ms slices, creates resulting blob from a bunch of chunks, playback has no preview/edit.

  • there's minimal chunk limitation, not as strict as SourceBuffer case
  • there is discrepancy of timeslice time returned by recorder in regular intervals and actual intervals... Fixable by real timer or full-file playback
  • blocks rearrangement is problematic. According to SimpleBlock opus structure, there is a timestamp in each block, which is (possibly) used for ordering purposes, meaning cutting/pasting blocks is not necessarily going to work, at least it is error-prone (wrong). See reading webm opus. Practically blocks rearrangement works fine, but allows smaller block size than FF, therefore FF has first-block distance apart and a bit more problematic for rearrangement.

Ok, this technique is possible for playback vis, but not editing.

2. web-audio-read for recording, web-audio-write for playback

  • not standard way to record audio
  • any resolution handling
  • the most purposeful method to visualize audio
  • extensible, less bugs

Contenteditable vs textarea

Textarea is simple, but contenteditable allows:

  • natural caret position tracking to display menu
  • multiple bars combination (channels, frequencies)
  • per-bar colorization
  • exec commands (?)

Enhancements

  • better loudness (too small now):
    • weight by lpf, hpf, bpf to hearable clusters;
    • colorize each group into r/g/b channels (simplified colorization)
  • prohibit editing events (editing from keyboard is redundant)
  • copy/paste
  • dynamic movable play/info/save
  • history
  • labels (easy to get lost)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.