audiojs / audio

Class for high-level audio manipulations [NOT MAINTAINED]
MIT License
240 stars 9 forks source link

Audio.trim - API Priority #40

Closed phil-andrews closed 6 years ago

phil-andrews commented 6 years ago

Great library!

Not sure if this is the right place for this but Audio.splice function would be fantastic to have access to. There is no other library for Node that has a splice functions. This whole library is novel against anything else available. Splicing would be big.

Is there a possible way to hack this using .trim method?

dy commented 6 years ago

I think audio.remove(fromTime, duration).insert(fragment, time) would do the same as splice in a bit more graceful manner. Btw that is workable now :)

phil-andrews commented 6 years ago

Ah, ok. Hadn't thought of that. Thanks for the help.

dy commented 6 years ago

Closing, since trim method is supported.