Using tools

## What is "Using tools"?

**Using tools** is a brand-new method to create Piano Tiles 2 songs. This page also show you the way to test your song as well

## Requirement:

All you need is:

* a computer
	+ Requirement can be seen here.
* **~~Discord account with created server.~~ Since the bot is deleted, this literally render this way to be another useless until someone updates.**
* FLstudio APP
* APK editor studio APP to add your files +re-signing apk
* APK runner APP , recommend bluestack 5 Nougat 7 32 bit, but if you have NASA pc then you can use with android 9 64 bit.
* MIDI file of a custom song
* midi2json.exe
* knowledge at least 95% about music\_json.csv

## Attention:

**DUe to the removal of the Discord Bot, most of the instructions must be fixed,if it doesn't meaning it will be impossible**

*Since midiquantize command is prototype and may not work well, this document will explain "quantize with FL studio".*

## FL Studio usages

### Part I: Set a "Desired Tempo"

1. Firstly, you need to set a "Desired Tempo". Open a MIDI file with FL studio, and check the tempo value. You can check it by clicking the one with a blue circle (1~6).    (This thing will appear on the left side of your FL studio.)
2. Now you can decide the desired tempo, but it may be too hard if there are some tempo changes. Here are some tips for it:
	1. Set the "desired tempo" as a "most frequent tempo".   (e.g. In this case, the desired tempo can be set as 130.)
	2. Set the "desired tempo" as a "highest tempo".    (e.g. In this case, the desired tempo can be set as 170.)
	3. If the tempo you got by 2-1 or 2-2 is too high, you can divide by some number. If it's too low, you can multiply by some number. (You can find the **TPS = Tempo / 15**.) (e.g. If you got "320" value, you can divide it by 2, then desired tempo can be 160. If you got "45" value, you could multiply it by 2, then desired tempo can be 90.)
3. Your TPS = **Desired Tempo / 15**. If you think it's too low or high, you can follow 2-3.

### ~~Part II. Quantize the MIDI~~

~~Some modders might use commands for Discord bot - Volian1.~~

1. ~~Use **//ma (Desired Tempo×2)**. It will trigger a **//midialign** command. Volian1 will create an aligned midi.~~
2. ~~Download the midi by Volian1, and open FL studio with that midi. Make sure that you checked "1/6 step" before you quantize the MIDI!~~
3. ~~Type **Ctrl+Q** and **Ctrl+L**. This will quantize the MIDI. Before rendering go to Macros - Prepare to MIDI export (for that the midi will be not empty). Then now you can render the MIDI!~~

### ~~Part III. Use Tools~~

1. Download the rendered MIDI, and it's time to trigger a midi2json!
	* ~~Use **//m2j 768 0 0 0**.~~
	* ~~if 1-1 didn't work, use **//m2j 512 0 0 0**.~~
	* **Run `midi2.json.exe yourmidi.mid`, with `768`(or `512`) `0 0 0` if necessary**
2. ~~Download the midi by Volian1, and it's time to trigger a JSON maker! (embed the midi file)~~
	* ~~If **3-1** worked, use **//jm 0.5 (TPS) (TPS) (TPS)**.~~
	* ~~If 3-1 didn't work but **3-2** worked, use **//jm 0.75 (TPS) (TPS) (TPS)**.~~
	* **Due to the removal of the Discord bot, you have to acknowledge music\_json.csv by yourself,and making it yourself.**
3. ~~Download the JSON file by Volian1, and name it correctly.~~
4. ~~If it's named correctly, use **//ci**. It will trigger an info checker command, and then you're done!~~

#### ~~Advantages of using tools~~

~~The procedure seems quite complicated, but try a few times - it will take much less time!~~

~~The charming point of using tools is that you can "spam" lots of songs if you have lots of time. If you are accustomed to this method, you can make over 25 songs a hour! Good luck :)~~

**Due to the Discord Bot removal, the only way you can do this is completely manually until someone found a fix**

## APK Testing:

After adding the CSV&JSON into the perspective folder, it is necessary to pack the game into an APK file.

However this **DOES NOT** look like packing a zip file, as the android will not install unsigned APK.

The APK editor studio is not only a light-weight GItHUB program, but also consists of all APK features that you need, including signing apk.

Once the APK is completed, you can feel free to drag it into the Bluestack program and test

* Make sure to UNISTALL the previous Piano Titles 2 in your device, this will conflict with the new app due to the difference in signature and file constructs.
	+ Unless you find a way to install multiple one/changing the core package's name, but this is not recommended.
* Since your data will be cleared once you unistall, it is recommended to find a way to replace Little Star or reduce the requirements for quick tests.
* Rooting can help make things easier(need someone find a way to use in rooted device)
* Notice: your APK might not working on different brand of phones.