bmcfee / muda

A library for augmenting annotated audio data
ISC License
230 stars 33 forks source link

rewrite mudabox to use JObject semantics for serialization #12

Closed bmcfee closed 9 years ago

bmcfee commented 9 years ago

Currently, muda.save is a destructive operation: when the jam is serialized, we first pop out the audio buffer jam.sandbox.muda['y'] to avoid serializing the audio. This is obviously bad.

JObject serialization already skips fields that start with _.

A simple fix here would be the following:

This way, muda._audio will be skipped during serialization, and save can be a non-destructive operation.