Skip to content

Instantly share code, notes, and snippets.

@trueroad
trueroad / build_smf_from_winrt_midi_in_timing.py
Last active September 7, 2022 10:08
Build SMF (Standard MIDI File) from winrt_midi_in_timing
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Build SMF (Standard MIDI File) from winrt_midi_in_timing.
https://gist.github.com/trueroad/74f3a5e6d73af6c3a6b294350b9253f6
Copyright (C) 2022 Masamichi Hosoda.
All rights reserved.
@trueroad
trueroad / winrt_midi_in_timing.cpp
Last active August 27, 2022 10:04
WinRT MIDI IN Timing with C++/WinRT
//
// WinRT MIDI IN Timing with C++/WinRT
// https://gist.github.com/trueroad/2ffa736d0b206973a80c99e177273795
//
// Copyright (C) 2022 Masamichi Hosoda.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
@trueroad
trueroad / winrt_midi_transfer.cpp
Last active July 31, 2022 11:05
WinRT MIDI Transfer with C++/WinRT
//
// WinRT MIDI Transfer with C++/WinRT
// https://gist.github.com/trueroad/9c5317af5f212b2de7c7012e76b9e66b
//
// Copyright (C) 2022 Masamichi Hosoda.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
@trueroad
trueroad / winrt_midi_transfer.py
Last active July 30, 2022 12:05
WinRT MIDI Transfer with python winrt
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
WinRT MIDI Transfer with python winrt.
https://gist.github.com/trueroad/6beaf87280afb2b5e33b4838d73be6ed
Copyright (C) 2022 Masamichi Hosoda.
All rights reserved.
@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.