Skip to content

Instantly share code, notes, and snippets.

@trueroad
trueroad / compare-wav.py
Last active November 1, 2023 11:09
Compare WAVs.
#!/usr/bin/env python3
"""
Compare WAVs.
https://gist.github.com/trueroad/eb14a5e3714f5f5c6671d74c3b86c079
Copyright (C) 2023 Masamichi Hosoda.
All rights reserved.
Redistribution and use in source and binary forms, with or without
@trueroad
trueroad / fix-corrupt-wav.py
Last active November 1, 2023 11:04
Fix corrupt WAV.
#!/usr/bin/env python3
"""
Fix corrupt WAV.
https://gist.github.com/trueroad/99259cbd772d324299fad177e6dc5088
Copyright (C) 2023 Masamichi Hosoda.
All rights reserved.
Redistribution and use in source and binary forms, with or without
@trueroad
trueroad / winrt_midi_devices.py
Last active September 20, 2023 11:08
WinRT MIDI Devices with python winrt
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
WinRT MIDI Devices with python winrt.
https://gist.github.com/trueroad/4185ae60bcd8cb038321f849e9053159
Copyright (C) 2023 Masamichi Hosoda.
All rights reserved.
@trueroad
trueroad / test_cqt.py
Last active April 9, 2023 06:26
Test program for librosa CQT algorithm
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Test program for librosa CQT algorithm.
https://gist.github.com/trueroad/c5861963278d97bd73e032f5afaad987
Copyright (C) 2023 Masamichi Hosoda.
All rights reserved.
@trueroad
trueroad / pdf-font-embedder.cc
Last active January 22, 2023 06:10
Experimental PDF Font Embedder without Ghostscript
//
// Experimental PDF Font Embedder without Ghostscript
// https://gist.github.com/trueroad/e14ff8ca64f6765391071c0ca6f60a34
//
// Copyright (C) 2023 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 / fcvs_smf.py
Last active January 12, 2024 13:51
Frequency component vectors and SMF
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Frequency component vectors and SMF.
https://gist.github.com/trueroad/216cb39902bccd776d8e9da670460fa3
Copyright (C) 2022-2024 Masamichi Hosoda.
All rights reserved.
@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.