Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/frc-7636/falconsinging
https://github.com/frc-7636/falconsinging
ctre falcon frc frc-java frc2024 java talonfx
Last synced: 2 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/frc-7636/falconsinging
- Owner: FRC-7636
- License: other
- Created: 2024-02-19T05:44:40.000Z (10 months ago)
- Default Branch: master
- Last Pushed: 2024-02-21T13:24:15.000Z (10 months ago)
- Last Synced: 2024-11-02T11:03:11.840Z (about 2 months ago)
- Topics: ctre, falcon, frc, frc-java, frc2024, java, talonfx
- Language: Java
- Homepage:
- Size: 67.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
這是由[Allen95Wei](https://github.com/Alllen95Wei)某天遊手好閒,因而誕生的Falcon唱歌程式。
## 設置
* 馬達:請在[Robot.java的第24~27行](https://github.com/FRC-7636/FalconSinging/blob/master/src/main/java/frc/robot/Robot.java#L24-L27)輸入`CAN ID`及`CANivore名稱 (如有)`:
```Java
private final TalonFX singer1 = new TalonFX(1, "cantivore"); // <你的CAN ID>, <你的CANivore名稱,若無則忽略>
private final TalonFX singer2 = new TalonFX(3, "cantivore");
private final TalonFX singer3 = new TalonFX(5, "cantivore");
private final TalonFX singer4 = new TalonFX(7, "cantivore");
```
## 音樂
可在[Robot.java的第33行](https://github.com/FRC-7636/FalconSinging/blob/master/src/main/java/frc/robot/Robot.java#L33)
```Java
orchestra.loadMusic("Yoru-Ni-Kakeru.chrp");
```
填入CHRP檔名。
### 內建
你可以填入我們已經處理好的CHRP檔案:
* Driftveil-City.chrp
* Yoru-Ni-Kakeru.chrp
* rickroll.chrp
### 自製CHRP檔
1. 準備好MIDI音檔
* **注意:同一音軌同時間僅能有一個音**
2. 使用[Phoenix Tuner X的「CHRP Converter」](https://pro.docs.ctr-electronics.com/en/latest/docs/tuner/tools/chrp-converter.html),將MIDI轉為CHRP
3. 將CHRP檔放置於`src/main/deploy`資料夾中
4. 在[Robot.java的第33行](https://github.com/FRC-7636/FalconSinging/blob/master/src/main/java/frc/robot/Robot.java#L33)直接填入檔名