I try to convert this plain txt exported from a audio sofware (audacity)
0.147652 0.983684 noing_grf
2.316547 3.609503 boing_4r4
To a valid json objet format like this
{
'noing_grf': { start: 0.147652, end: 0.983684 },
'boing_4r4': { start: 2.316547, end: 3.609503 },
}
The pattern i try is this one ([^\t\n]+)
But i think i need a full example to perform.
Any Regex pro can help me to do this, am not succeed at all ! My target it to export label and regions from the audio data track, than load in js and convert in a json format to manage spriteAudio like this API. http://pixijs.io/pixi-sound/examples/sprites.html