This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#cs ---------------------------------------------------------------------------- | |
AutoIt Version: 3.3.12.0 | |
Author: maimai | |
Script Function: | |
auto Ripping script. | |
#ce ---------------------------------------------------------------------------- | |
#include <GuiConstantsEx.au3> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
node rip %1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// エンコード実行 | |
Utils.encExec = function(param,cb) { | |
var enctooldir = 'e:/cuetoolsnet-code/bin/Release/' | |
var enctoolcmd1 = 'CUETools.FLACCL.cmd.exe'; | |
var enctoolcmd2 = 'CUETools.Converter.exe'; | |
var command = ""; | |
// リッピング | |
var opt = { | |
maxBuffer: 1024*1024*64 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// リッピング実行 | |
Utils.ripExec = function(param,cb) { | |
var cuetooldir = 'e:/cuetoolsnet-code/bin/Release/' | |
var cuetoolcmd = 'CUETools.ConsoleRipper.exe'; | |
// リッピング | |
var command = cuetooldir+cuetoolcmd+' -D '+param.drive+' -FN '+param.baseName; | |
var opt = { | |
maxBuffer: 1024*1024*64 | |
, cwd: param.baseDir |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// (☝ ՞ਊ ՞)☝ウイーン | |
// node.js を使ってると良く CD-ROM を取り出したくなりますよね。 | |
// ならないとしたら、今すぐこの記事を読むのをやめて病院に行って下さい。 | |
var win32ole = require('win32ole'); | |
var wmp = win32ole.client.Dispatch('WMPlayer.OCX'); | |
wmp.cdromcollection.getByDriveSpecifier(inDriveLetter.charAt(0)).eject(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MEDIATOOLS.readMediaTools = function(drive,cb) { | |
var command = 'mediatools.exe drive '+drive+' toc upc isrc'; | |
exec(command,function(err,stdout,stderr){ | |
//if (!err) throw err; // mediatoolsは成功時にerrorcodeを返す? | |
if( stdout.match( /Unable to retrieve TOC/ ) ) { | |
throw err; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Gracenote Toc | |
MEDIATOOLS.generateGracenoteToc = function(di) { | |
var pregap = 150; | |
// TOC情報作成 | |
var tocStr = (di.track[0].start + pregap) + ' '; | |
for(var idx=0;idx<di.trackCount;idx++){ | |
tocStr += (di.track[idx].start + di.track[idx].len + pregap) + ' '; | |
} | |
//console.log(tocStr); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Cueファイル読み込み | |
Cue.readCue = function(param,cb) { | |
var strText; | |
var self = this; | |
var data; | |
var trackMode = false; | |
var tmpTrackNo=0; | |
var indexNo; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Cue.makeCue = function(di) { | |
var cueFile = ''; | |
// ""で囲う | |
escapeStr = function(str) { | |
if( str.match('"') ) { | |
return str; | |
} else { | |
return '"'+str+'"'; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Utils.addFlacCueBin = function(flacFileName,cueFileName,cb) { | |
var command = 'metaflac.exe --set-tag-from-file="CUESHEET='+cueFileName+'" '+flacFileName; | |
exec(command,function(err,stdout,stderr){ | |
if (err) cb(err); | |
//console.log(stdout); | |
cb(err); | |
}); | |
} |
OlderNewer