- bms-renderer: BMSをwavに変換する
npm install --global @watiko/bms-renderer
- 本家で対応されたら本家を入れると良い
- libsndfileが必要なので用意しておく。debianでは
apt install libsndfile1-dev
- sox: 先頭の無音部分を削除
- ffmpeg: oggに変換しつつ、頭出しから10秒を切り出す
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# forked from: https://github.com/keepworking/MH-Z14A-PI | |
import serial | |
import time | |
import datetime | |
import json | |
import argparse | |
import sys |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <cstdlib> | |
template<typename T> | |
struct OrdTraits; | |
// int 向けにテンプレートの特殊化 | |
template<> struct OrdTraits<int> { | |
static bool less(const int &x, const int &y) { | |
return x < y; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fn main() { | |
let ts = std::time::SystemTime::now() | |
.duration_since(std::time::UNIX_EPOCH) | |
.unwrap() | |
.as_millis(); | |
print!("{}", ts); | |
} |
OlderNewer