Skip to content

Instantly share code, notes, and snippets.

@trueroad
trueroad / pcsc-test.c
Last active March 22, 2024 12:26
PC/SC test
//
// PC/SC test
// https://gist.github.com/trueroad/ad9c222a667d5091a118196301b938a0
//
// Copyright (C) 2024 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 / show_smf_parameters.py
Last active January 25, 2024 11:01
Show SMF (Standard MIDI File) parameters.
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Show SMF (Standard MIDI File) parameters.
https://gist.github.com/trueroad/aca02ee6b36f8aee0ac7bebbdde912fc
Copyright (C) 2024 Masamichi Hosoda.
All rights reserved.
@trueroad
trueroad / smf_parse.py
Last active January 25, 2024 10:57
Experiment: Parsing SMF (Standard MIDI File) --- 01
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Parsing SMF (Standard MIDI File).
https://gist.github.com/trueroad/52b7c4c98eec5fdf0ff3f62d64ec17bd
Copyright (C) 2021, 2022, 2024 Masamichi Hosoda.
All rights reserved.
@trueroad
trueroad / show_zipped_sound_file_parameters.py
Last active January 21, 2024 02:32
Show zipped sound_file_parameters.
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Show zipped sound_file_parameters.
https://gist.github.com/trueroad/
Copyright (C) 2024 Masamichi Hosoda.
All rights reserved.
@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 / smf_rec.py
Last active January 12, 2024 13:57
SMF recording
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
SMF recording.
https://gist.github.com/trueroad/68e38ecd8fdc1d477b7569a989fb3438
Copyright (C) 2021-2024 Masamichi Hosoda.
All rights reserved.
@trueroad
trueroad / smf_diff.py
Last active January 12, 2024 13:55
Experiment: Diff SMF (Standard MIDI File)
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Diff SMF (Standard MIDI File).
https://gist.github.com/trueroad/97477dab8beca099afeb4af5199634e2
Copyright (C) 2021, 2022, 2024 Masamichi Hosoda.
All rights reserved.