Greasy Fork is available in English.
Allows you to edit metadata of FLAC files. CO
สคริปต์นี้ไม่ควรถูกติดตั้งโดยตรง มันเป็นคลังสำหรับสคริปต์อื่น ๆ เพื่อบรรจุด้วยคำสั่งเมทา // @require https://update.greasyfork.org/scripts/40545/646530/JS%20FLACMetadataEditor.js
Script allows you to edit metadata in FLAC files
inspired by egoroof's Browser ID3 Writer
// # Creating editor instance:const editor = new FLACMetadataEditor(ArrayBuffer);// # Get version:const editorVersion = editor.scriptVersion; // <- e.g. '0.0.2.1'// # Editing tags:// List with standard field names: https://xiph.org/vorbis/doc/v-commenteditor.addComment('ARTIST=Laibach');editor.addComment('ARTIST', 'Laibach');// All properties are facultative except "data"// Default values (except "data", of course) presented in example:editor.addPicture({APICtype: 3,MIMEType: 'image/jpeg',colorDepth: 0,colorNumber: 0,data: ImageDataAsArrayBuffer,description: '',width: 0,height: 0});// remove single atristeditor.removeComment('ARTIST', 'Laibach');// remove all atristseditor.removeComment('ARTIST');// remove ALL commentseditor.removeComment();// # Writing changeseditor.serializeMetadata();// # Convert r###lt to blobconst r###ltArrayBuffer = editor.arrayBuffer;const blob = new Blob([r###ltArrayBuffer], {type: 'audio/flac'});const url = URL.createObjectURL(blob);
May be accessed through editor.metadata
Do console.log(editor)
to explore it. Structures have self-descriptive names
As all public functions return this, we are able to create trains. e.g. this returns changed ArrayBuffer with only one comment — TITLE=The Whistleblowers
new FLACMetadataEditor(ArrayBuffer).removeComment().addComment('TITLE','The Whistleblowers').serializeMetadata().arrayBuffer;
CUESHEET
instead. And honestly, even metaflac
cannot embed all of my .cue
into flacs. Nevermind)