Skip to content

Instantly share code, notes, and snippets.

@trueroad
trueroad / check_wav_parameters.py
Last active January 16, 2024 10:45
Check parameters of all zipped WAV files as expected.
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Check parameters of all zipped WAV files as expected.
https://gist.github.com/trueroad/0534d90aacf7e6101f75a47f67af0035
Copyright (C) 2024 Masamichi Hosoda.
All rights reserved.
@trueroad
trueroad / find_smf_groups.py
Last active January 12, 2024 12:51
Find groups of equivalent SMFs.
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Find groups of equivalent SMFs.
https://gist.github.com/trueroad/2b4214a3c033e90ee64f097a7dcccbc1
Copyright (C) 2023 Masamichi Hosoda.
All rights reserved.
@trueroad
trueroad / calc_time_used.py
Last active December 17, 2023 12:25
Calc time used.
#!/usr/bin/env python3
"""
Calc time used.
https://gist.github.com/trueroad/bb4e2ac32c5006695249cb9d71488420
Copyright (C) 2023 Masamichi Hosoda.
All rights reserved.
Redistribution and use in source and binary forms, with or without
@trueroad
trueroad / calc_weekly_from_daily.py
Last active December 17, 2023 09:47
Calc weekly totals from daily totals.
#!/usr/bin/env python3
"""
Calc weekly totals from daily totals.
https://gist.github.com/trueroad/a3558410135051bad254eb257d45cbd9
Copyright (C) 2023 Masamichi Hosoda.
All rights reserved.
Redistribution and use in source and binary forms, with or without
@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.