class RSGuitarTech::RSCustomSongToolkit

Constants

PCB_PATH

Public Class Methods

revorb(file) click to toggle source
# File lib/rsgt/rs_custom_song_toolkit.rb, line 10
def self.revorb(file)
  base_cmd "revorb", [file]
end
sng2xml(manifest:, input:) click to toggle source
# File lib/rsgt/rs_custom_song_toolkit.rb, line 14
def self.sng2xml(manifest:, input:)
  sng2014 "--sng2xml", manifest: manifest, input: input
end
ww2ogg(file) click to toggle source
# File lib/rsgt/rs_custom_song_toolkit.rb, line 6
def self.ww2ogg(file)
  base_cmd "ww2ogg", [file, "--pcb", PCB_PATH]
end
xml2sng(manifest:, input:) click to toggle source
# File lib/rsgt/rs_custom_song_toolkit.rb, line 18
def self.xml2sng(manifest:, input:)
  sng2014 "--xml2sng", manifest: manifest, input: input
end

Private Class Methods

base_cmd(tool, args) click to toggle source
# File lib/rsgt/rs_custom_song_toolkit.rb, line 34
def self.base_cmd(tool, args)
  [
    "wine",
    "/Applications/RocksmithCustomSongToolkit.app/Contents/Resources/#{tool}.exe"
  ] + args
end
sng2014(cmd, manifest:, input:, arrangement: "Vocal", platform: "Mac") click to toggle source
# File lib/rsgt/rs_custom_song_toolkit.rb, line 24
def self.sng2014(cmd, manifest:, input:, arrangement: "Vocal", platform: "Mac")
  base_cmd "sng2014", [
    cmd,
    "--manifest=#{manifest}",
    "--input=#{input}",
    "--arrangement=#{arrangement}",
    "--platform=#{platform}"
  ]
end