mirror of
https://github.com/ScrelliCopter/VGM-Tools
synced 2025-02-21 04:09:25 +11:00
Compare commits
6 Commits
d0945220a6
...
1969f7ae9a
| Author | SHA1 | Date | |
|---|---|---|---|
| 1969f7ae9a | |||
| 33851696b1 | |||
| 7aff052810 | |||
| 85a3e5089b | |||
| 508f464aa7 | |||
| 86317f57ec |
7
.gitignore
vendored
7
.gitignore
vendored
@@ -1,6 +1 @@
|
||||
*.exe
|
||||
*.vgm
|
||||
*.vgz
|
||||
*.log
|
||||
*.pcm
|
||||
*.wav
|
||||
.idea/
|
||||
|
||||
6
neotools/.gitignore
vendored
Normal file
6
neotools/.gitignore
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
*.exe
|
||||
*.vgm
|
||||
*.vgz
|
||||
*.log
|
||||
*.pcm
|
||||
*.wav
|
||||
@@ -162,7 +162,7 @@ def readit(path, outpath):
|
||||
smpNum = int.from_bytes(f.read(2), byteorder="little", signed=False)
|
||||
patNum = int.from_bytes(f.read(2), byteorder="little", signed=False)
|
||||
|
||||
# Cus spc2it has a tendancy to produce corrupted files...
|
||||
# Cus spc2it has a tendency to produce corrupted files...
|
||||
if ordNum > 1024: return
|
||||
if smpNum > 4000: return
|
||||
if insNum > 256: return
|
||||
|
||||
9
spctools/spc2it/.gitignore
vendored
9
spctools/spc2it/.gitignore
vendored
@@ -1,7 +1,8 @@
|
||||
_obj
|
||||
obj/
|
||||
build/
|
||||
spc2it
|
||||
.DS_Store
|
||||
Thumbs.db
|
||||
*.exe
|
||||
*.spc
|
||||
*.it
|
||||
lol
|
||||
.DS_Store
|
||||
Thumbs.db
|
||||
|
||||
@@ -1,22 +0,0 @@
|
||||
language: c
|
||||
compiler:
|
||||
- gcc
|
||||
- clang
|
||||
before_install:
|
||||
- sudo apt-get update -qq
|
||||
- sudo apt-get install cmake
|
||||
script: mkdir build && cd build && cmake .. && make
|
||||
env:
|
||||
global:
|
||||
# The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
|
||||
# via the "travis encrypt" command using the project repo's public key
|
||||
- secure: "NuRR5ZZ/PC58JrBv+n2fzsLWORMFk1VDcn7KsixV0X8+4kQ/k5hsHZ2guafzNl6ASGeaslmTO3Qe6UOJNMpd9kyDlsVGLAA6fsu25Q/R7BReOhSpn1hVQIptgspYh8gagMETldOLl/w0udwRqKVROgcooWa+ltp1R8UGds2R1nM="
|
||||
|
||||
addons:
|
||||
coverity_scan:
|
||||
project:
|
||||
name: "uyjulian/spc2it"
|
||||
description: "spc to it"
|
||||
build_command_prepend: "mkdir build && cd build && cmake .."
|
||||
build_command: "make"
|
||||
branch_pattern: coverity_scan
|
||||
@@ -10,8 +10,7 @@ set(spc2it_sources
|
||||
it.h
|
||||
sneese_spc.h
|
||||
sound.h
|
||||
spc2ittypes.h
|
||||
)
|
||||
spc2ittypes.h)
|
||||
|
||||
add_executable(spc2it ${spc2it_sources})
|
||||
target_link_libraries(spc2it m)
|
||||
42
spctools/spc2it/Makefile
Normal file
42
spctools/spc2it/Makefile
Normal file
@@ -0,0 +1,42 @@
|
||||
TARGET := spc2it
|
||||
SOURCE := emu.c it.c main.c sound.c spc700.c
|
||||
CFLAGS ?= -O2 -pipe
|
||||
|
||||
|
||||
BUILD_CFLAGS := $(CFLAGS)
|
||||
BUILD_LDFLAGS := $(CFLAGS) $(LDFLAGS) -lm
|
||||
PREFIX := /usr/local
|
||||
OBJDIR := obj
|
||||
OBJECTS := $(patsubst %.c,$(OBJDIR)/%.o,$(SOURCE))
|
||||
DEPENDS := $(OBJECTS:%.o=%.d)
|
||||
|
||||
default: all $(TARGET)
|
||||
|
||||
$(OBJDIR)/%.o: %.c | $(OBJDIR)
|
||||
$(CC) $(BUILD_CFLAGS) -MMD -c $< -o $@
|
||||
|
||||
$(OBJDIR):
|
||||
mkdir -p $@
|
||||
|
||||
$(TARGET): $(OBJECTS)
|
||||
$(CC) $(BUILD_LDFLAGS) $^ -o $@
|
||||
|
||||
-include $(DEPENDS)
|
||||
|
||||
all: $(TARGET)
|
||||
|
||||
.PHONY: install
|
||||
install: $(TARGET)
|
||||
mkdir -p $(DESTDIR)$(PREFIX)/bin
|
||||
cp $< $(DESTDIR)$(PREFIX)/bin/$(TARGET)
|
||||
mkdir -p $(DESTDIR)$(PREFIX)/share/man/man1/
|
||||
cp spc2it.1 $(DESTDIR)$(PREFIX)/share/man/man1/
|
||||
|
||||
.PHONY: uninstall
|
||||
uninstall:
|
||||
rm -f $(DESTDIR)$(PREFIX)/bin/$(TARGET)
|
||||
rm -f $(DESTDIR)$(PREFIX)/share/man/man1/spc2it.1
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
rm -f $(TARGET) $(OBJECTS) $(DEPENDS)
|
||||
49
spctools/spc2it/README.md
Executable file
49
spctools/spc2it/README.md
Executable file
@@ -0,0 +1,49 @@
|
||||
SPC2IT
|
||||
======
|
||||
|
||||
Convert SPC files to IT (Impulse Tracker) files.
|
||||
|
||||
## Compiling
|
||||
|
||||
With GNU make:
|
||||
```bash
|
||||
make -j$(nproc)
|
||||
```
|
||||
|
||||
With CMake:
|
||||
```bash
|
||||
mkdir build && cd build
|
||||
cmake .. -DCMAKE_BUILD_TYPE=Release
|
||||
make -j$(nproc)
|
||||
```
|
||||
|
||||
## Installing
|
||||
|
||||
```bash
|
||||
# Install to /usr/local by default
|
||||
sudo make install
|
||||
|
||||
# Install to /usr instead
|
||||
sudo make install PREFIX=/usr
|
||||
```
|
||||
|
||||
## Running
|
||||
|
||||
Run `spc2it` (or `./sp2it` locally) with no arguments to see the syntax.
|
||||
```
|
||||
SPC2IT - converts SPC700 sound files to the Impulse Tracker format
|
||||
|
||||
Usage: spc2it [options] <filename>
|
||||
Where <filename> is any .spc or .sp# file
|
||||
|
||||
Options: -t x Specify a time limit in seconds [60 default]
|
||||
-d xxxxxxxx Voices to disable (1-8) [none default]
|
||||
-r xxx Specify IT rows per pattern [200 default]
|
||||
```
|
||||
|
||||
## More information
|
||||
|
||||
Cloned from: https://github.com/uyjulian/spc2it
|
||||
|
||||
For more information, read the documentation in `doc/`.
|
||||
Also, see https://www.romhacking.net/forum/index.php?topic=10164.0
|
||||
@@ -1,29 +0,0 @@
|
||||
Cloned from: https://github.com/uyjulian/spc2it
|
||||
|
||||
SPC2IT
|
||||
======
|
||||
|
||||
Convert SPC files to IT (Impulse Tracker) files.
|
||||
|
||||
Compiling
|
||||
=========
|
||||
|
||||
You need cmake.
|
||||
|
||||
> mkdir b && cd b && cmake .. && make
|
||||
|
||||
Running
|
||||
=======
|
||||
|
||||
Enter the executable's path in the command line, then press enter to see the syntax.
|
||||
|
||||
Bugs
|
||||
====
|
||||
|
||||
• None...
|
||||
|
||||
More information
|
||||
================
|
||||
|
||||
For more information, read the documentation in ./doc/
|
||||
Also, see http://www.romhacking.net/forum/index.php?topic=10164.0
|
||||
27
spctools/spc2it/spc2it.1
Normal file
27
spctools/spc2it/spc2it.1
Normal file
@@ -0,0 +1,27 @@
|
||||
.TH spc2it "1" "September 10 2018" "User Commands"
|
||||
.SH NAME
|
||||
spc2it \- converts SPC700 sound files to the Impulse Tracker format
|
||||
.SH SYNOPSIS
|
||||
.B spc2it
|
||||
.RI [ options ] " filename"
|
||||
.TP
|
||||
Where <filename> is any .spc or .sp# file
|
||||
.SH DESCRIPTION
|
||||
This manual describes the
|
||||
.B spc2it
|
||||
command. It converts SPC files to IT (Impulse Tracker) files.
|
||||
.TP
|
||||
Options:
|
||||
.TP
|
||||
\fB\-t\fR x
|
||||
Specify a time limit in seconds [60 default]
|
||||
.TP
|
||||
\fB\-d\fR xxxxxxxx Voices to disable (1\-8) [none default]
|
||||
.TP
|
||||
\fB\-r\fR xxx
|
||||
Specify IT rows per pattern [200 default]
|
||||
.IP
|
||||
.SH "SEE ALSO"
|
||||
.BR adplay (1),
|
||||
.BR schismtracker (1).
|
||||
.br
|
||||
Reference in New Issue
Block a user