Skip to content

Instantly share code, notes, and snippets.

@trueroad
trueroad / Sekaiju-7.5-fix-multi-packet-sysex.patch
Last active July 20, 2022 11:09
世界樹 7.5 でマルチパケット・システム・エクスクルーシブを入力できるようにするパッチ
世界樹 7.5 でマルチパケット・システム・エクスクルーシブを
入力できるようにするパッチ
世界樹 7.5 では MIDI 1.0 規格書にある
マルチパケット・システム・エクスクルーシブの例が入力できません。
本パッチにより入力できるようになります。
以下詳細です。
MIDI 1.0 規格書 PDF 版
@trueroad
trueroad / ns2t.py
Last active July 19, 2022 14:05
BLE MIDI JSONL time converter (t2ns.py: ms to ns, ns2t.py: ns to ms)
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
BLE MIDI JSONL time converter (ns to ms).
https://gist.github.com/trueroad/2626654d4ca5d0c5bf44c32837dfc53a
Copyright (C) 2022 Masamichi Hosoda.
All rights reserved.
@trueroad
trueroad / emu_ble_midi.py
Last active September 12, 2022 13:32
Emulate BLE MIDI Peripherals with python bless
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Emulate BLE-MIDI Peripherals with python bless.
https://gist.github.com/trueroad/aa2507bf64c97f34aab324d8278b5686
Copyright (C) 2022 Masamichi Hosoda.
All rights reserved.
@trueroad
trueroad / recv_ble_midi.py
Last active July 19, 2022 15:46
Recieve from BLE MIDI Peripherals with python bleak
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Recieve from BLE MIDI Peripherals with python bleak.
https://gist.github.com/trueroad/fdb0a450c1699d67fe02f4a31b44c895
Copyright (C) 2022 Masamichi Hosoda.
All rights reserved.
@trueroad
trueroad / scan_ble_midi.py
Last active July 19, 2022 15:20
Scan BLE MIDI Peripherals by python bleak
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Scan BLE MIDI Peripherals with python bleak.
https://gist.github.com/trueroad/52b7c4c98eec5fdf0ff3f62d64ec17bd
Copyright (C) 2022 Masamichi Hosoda.
All rights reserved.
@trueroad
trueroad / native_app_like.py
Last active July 11, 2022 15:04
Experiment native app like that uses get encrypted session CGI.
#!/usr/bin/python3
# -*- coding: utf-8 -*-
"""
Experiment native app like that uses get encrypted session CGI.
https://gist.github.com/trueroad/9d9002150ae871d25806db1ff495e424
Copyright (C) 2022 Masamichi Hosoda.
All rights reserved.
@trueroad
trueroad / get_encrypted_session.py
Last active July 11, 2022 14:40
Experiment get encrypted session CGI.
#!/usr/bin/python3
# -*- coding: utf-8 -*-
"""
Experiment get encrypted session CGI.
https://gist.github.com/trueroad/e08efb3a1096c6df7243f6b1deed9d57
Copyright (C) 2022 Masamichi Hosoda.
All rights reserved.
@trueroad
trueroad / op_selector.py
Last active July 3, 2022 12:00
OP selector CGI for mod_auth_openidc
#!/usr/bin/python3
# -*- coding: utf-8 -*-
"""
OP selector CGI for mod_auth_openidc.
https://gist.github.com/trueroad/29974ea939e7b57a8539f0626cd8df6b
https://qiita.com/trueroad/items/3d8a7dae83c7af66518b
Copyright (C) 2022 Masamichi Hosoda.
All rights reserved.
@trueroad
trueroad / Sekaiju-7.5-add-dialog-extension-midi.patch
Last active May 19, 2022 15:06
世界樹 7.5 で拡張子 .midi のスタンダード MIDI ファイルを「開く」と「名前を付けて保存」ダイアログでも扱えるようにするパッチ
世界樹 7.5 で拡張子 .midi のスタンダード MIDI ファイルを
「開く」と「名前を付けて保存」ダイアログでも扱えるようにするパッチ
このパッチは一つの方法のご提案です。
このパッチを使うには下記 URL のパッチを先に当ててください。
https://gist.github.com/trueroad/2b963111a8662432f9ecf47ae705ed43
また、リソーススクリプト(*.rc のファイル)は
UTF-16 のようでしたが diff では扱いにくかったので
@trueroad
trueroad / Sekaiju-7.5-add-filename-extension-midi.patch
Last active May 19, 2022 10:35
世界樹 7.5 で拡張子 .midi のスタンダード MIDI ファイルを読み込めるようにするパッチ
--- SekaijuDoc.cpp.org
+++ SekaijuDoc.cpp
@@ -537,6 +537,7 @@
}
// スタンダードMIDIファイル(*.mid)の場合
else if (strExt.CompareNoCase (_T(".mid")) == 0 ||
+ strExt5.CompareNoCase (_T(".midi")) == 0 ||
strExt.CompareNoCase (_T(".vsq")) == 0) {
m_pMIDIData = MIDIData_LoadFromSMF (lpszPathName);
if (m_pMIDIData == NULL) {