Skip to content

Instantly share code, notes, and snippets.

@taroyanaka
taroyanaka / split_mirror_from_srt.py
Last active May 8, 2026 07:20
python .\split_mirror_from_srt.py --extend-to-next -i input.mp4 --srt subtitle.srt -o output8.mp4 https://gist.github.com/taroyanaka/4863aa879746baaa7341e70a9d3d56f6
import argparse
import os
import sys
import subprocess
import re
from moviepy import (
VideoFileClip,
ImageClip,
TextClip,
@taroyanaka
taroyanaka / faster_whisper_test_gen_srt.py
Last active May 8, 2026 07:00
python .\faster_whisper_test_gen_srt.py (同じディレクトリのinput.mp4が読み込まれる) https://gist.github.com/taroyanaka/952513581d39065509bb39be3889b2c7
######## whisperのモデルダウンロード ########
# from faster_whisper import WhisperModel
#
# model = WhisperModel("large-v3")
#
# print("モデルDL完了")
#############################################
from faster_whisper import WhisperModel
@taroyanaka
taroyanaka / split_mirror.py
Created May 8, 2026 00:05
Python 3.10+, moviepy==2.2.1, ffmpeg, 実行例: python split_mirror.py -i input.mp4 -o output.mp4 --stop 3 5 9 --side right
import argparse
import os
import sys
import subprocess
from moviepy import (
VideoFileClip,
ImageClip,
clips_array,
concatenate_videoclips,
https://youtu.be/WOrBSXcYZHk?si=3U2UN-4w5_bkwuUj
https://youtu.be/0pb9gQS_6dQ?si=tZCP-KyRwtW_oOjJ
https://youtu.be/scvW3hAFgHE?si=BkIH1ocIyHJrYDTI
https://youtu.be/ABBpsy6rlVU?si=ZSzGA1nm7PMjTdQW
https://sewerslvt.bandcamp.com/https://www.patreon.com/sewerslvt
https://youtu.be/xv7e4vMsFQ0?si=9HiPqtCwCHW0V7_X
https://youtu.be/p3qS5i3-_7o?si=OCSK8x1ujPSVdLdf
https://youtu.be/HgHArz9IwDQ?si=d-_Xp9r8D9AvkrSu
https://youtu.be/qB1h_YdJ2-o?si=rV7rxdILC-vkAwUR
https://youtu.be/6T-rJ5K21Kw?si=Dnp0LN8-VBWR-kUN
@taroyanaka
taroyanaka / BossEnemy.cs
Created February 15, 2026 12:29
unity6
using System;
using System.Reflection;
using UnityEngine;
/// <summary>
/// Boss 用 Enemy 拡張。
/// - Bullet prefab を複数アタッチ可能
/// - Effect prefab を複数アタッチ可能
///
/// 既存ファイル(Enemy.cs 等)を変更せずに、
@taroyanaka
taroyanaka / SaveLoad.cs
Created February 15, 2026 12:28
unity6
using System;
using System.Collections;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Reflection;
using UnityEngine;
#if UNITY_EDITOR
using UnityEditor;
// 未完成。"grab"と"irando"と"acidenv"と"pk"が動作しない。ユーザー定義関数だと思われる
setcps(140/60/4)
$: s("sawtooth!16")
.wtenv(slider(7.678,1,10))
.wt(.3).wtenv(.3).unison(2)
.dec(.16).diode("4:.4")
.fm(time.mod("<1 _ _ 2>"))
@taroyanaka
taroyanaka / strudel_6.txt
Created December 23, 2025 10:26
almost strudel_5.txt(mix in strudel_1.txt)
setcpm(170/4)
stack(
// kick
s("bd*4")
.bank("RolandTR909")
.gain(1.2)
.distort(2)
.compressor("-15:8:5:.001:.05")
.lpf(300)
setcpm(170/4)
stack(
// kick
s("bd*4")
.bank("RolandTR909")
.gain(1.2)
.distort(2)
.compressor("-15:8:5:.001:.05")
.lpf(300)
setcps(170/60/4)
// kick only
$: s("sbd*4")
.lpf(400)
.distort("3:.3")
.sustain(0)._scope()
$: s("bd*4")