-
Notifications
You must be signed in to change notification settings - Fork 0
/
readme.py
53 lines (39 loc) · 1.45 KB
/
readme.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
from . import utils
import os
try:
from st3m.utils import save_file_if_changed
except ImportError:
pass
README = """Put your Petal Hero songs here.
Petal Hero is compatible with songs for Frets on Fire, FoFiX, Performous,
Phase Shift and Clone Hero (MIDI) that contain a guitar track, but with one
caveat: you need to mix audio tracks together and save them as MP3.
This should do:
sox *.ogg -m -G -c 1 -C 128 -r 48k --norm=-3 song.mp3
Some rips may need to be resampled first:
for i in *.ogg; do sox $i -G -r 48k $i.flac; done
sox *.flac -m -G -c 1 -C 128 -r 48k --norm=-3 song.mp3
You need song.ini, song.mp3 and notes.mid in the song directory.
The "Starter Pack" of songs can be downloaded over Wi-Fi from the game,
or manually from https://git.flow3r.garden/dos/PetalHero-songs/
Songs in .chart format (and some others) can be converted using EOF:
https://github.com/raynebc/editor-on-fire
Some places to find charted songs at:
- https://chorus.fightthe.pw/
- https://db.c3universe.com/songs/
- https://sourceforge.net/p/fretsonfire/code/HEAD/tarball?path=/trunk/data/songs
Have fun!
"""
def install():
if not utils.sd_card_present():
return
try:
l = os.listdir("/sd/PetalHero")
except Exception as e:
try:
os.mkdir("/sd/PetalHero")
except:
print("Could not create /sd/PetalHero dir!")
return
l = []
save_file_if_changed("/sd/PetalHero/README.TXT", README)