fcpx-audio-role-encoder
TypeScript icon, indicating that this package has built-in type declarations

0.1.4 • Public • Published

fcpx-audio-role-encoder

description

append iXML Chunk with "audio role name" for Final Cut Pro X, to wav file.

install

npm install --save fcpx-audio-role-encoder

function

encode / encodeSync

append iXML chunk to wav Buffer.

encode(wavBuffer: Buffer, trackName: string): Promise<Buffer>
encodeSync(wavBuffer: Buffer, trackName: string): Buffer
import * as fs from 'fs';
import Processor from 'fcpx-audio-role-encoder';
 
const wavBuffer = ...;
const trackName = ...;
 
const processor = new Processor();
processor.encode(wavBuffer, trackName)
.then((outBuffer: Buffer) => {
  // TODO your action.
});

append

append iXML chunk to wav file.

append(filePath: string, trackName: string, outPath: string): Promise<string>
import * as fs from 'fs';
import Processor from 'fcpx-audio-role-encoder';
 
const filePath = ...;
const outPath = ...;
const trackName = ...;
 
const processor = new Processor();
processor.append(filePath, trackName, outPath)
.then((generatedPath: string) => {
  console.log(`FINISHED. generated wav file:${generatedPath}`);
});

command

fcpx-audio-role-append

append iXML chunk to wav file.

fcpx-audio-role-append encode -i in.wav -o out.wav -t trackName

Package Sidebar

Install

npm i fcpx-audio-role-encoder

Weekly Downloads

5

Version

0.1.4

License

MIT

Unpacked Size

234 kB

Total Files

6

Last publish

Collaborators

  • taku-o