https://github.com/taku-o/fcpx-audio-role-encoder
append "audio role" to wav file, for "Final Cut Pro X".
https://github.com/taku-o/fcpx-audio-role-encoder
audio fcpx javascript node wav
Last synced: 4 months ago
JSON representation
append "audio role" to wav file, for "Final Cut Pro X".
- Host: GitHub
- URL: https://github.com/taku-o/fcpx-audio-role-encoder
- Owner: taku-o
- Created: 2019-05-22T05:51:45.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-03T10:29:12.000Z (over 3 years ago)
- Last Synced: 2025-08-09T06:13:33.485Z (10 months ago)
- Topics: audio, fcpx, javascript, node, wav
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/fcpx-audio-role-encoder
- Size: 10.9 MB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# fcpx-audio-role-encoder
## description
append iXML Chunk with "audio role name" for Final Cut Pro X, to wav file.
## install
```sh
npm install --save fcpx-audio-role-encoder
```
## function
### encode / encodeSync
append iXML chunk to wav Buffer.
```
encode(wavBuffer: Buffer, trackName: string): Promise
encodeSync(wavBuffer: Buffer, trackName: string): Buffer
```
```typescript
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
```
```typescript
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.
```sh
fcpx-audio-role-append encode -i in.wav -o out.wav -t trackName
```