Skip to content

Instantly share code, notes, and snippets.

@trueroad
trueroad / add_date_and_week.py
Last active January 18, 2024 09:59
Add date and week columns.
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Add date and week columns.
https://gist.github.com/trueroad/dcbbfd4fe0dbdde547a8733922b4e248
Copyright (C) 2024 Masamichi Hosoda.
All rights reserved.
@trueroad
trueroad / find_zipped_flac_groups.py
Last active January 17, 2024 10:00
Find groups of equivalent FLACs that are zipped.
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Find groups of equivalent FLACs that are zipped.
https://gist.github.com/trueroad/e7c0852f2a5822df05bde9e5578743b7
Copyright (C) 2024 Masamichi Hosoda.
All rights reserved.
@trueroad
trueroad / check_flac_parameters.py
Last active January 16, 2024 10:51
Check parameters of all zipped FLAC files as expected.
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Check parameters of all zipped FLAC files as expected.
https://gist.github.com/trueroad/adc36da36aeb1217e7acf63d98c448a2
Copyright (C) 2024 Masamichi Hosoda.
All rights reserved.
@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.