Skip to content

Instantly share code, notes, and snippets.

@trueroad
trueroad / show_smf_abs_tick.py
Last active September 18, 2024 12:58
Show SMF's absolute tick and note event like LilyPond event-listener.ly.
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Show SMF's absolute tick and note event like LilyPond event-listener.ly.
https://gist.github.com/trueroad/04aeccd92122c6428a9442dd55dffc61
Copyright (C) 2024 Masamichi Hosoda.
All rights reserved.
@trueroad
trueroad / Makefile
Last active September 18, 2024 10:19
Test cairo overwrite notehead.
#
# LilyPond で生成した楽譜の符頭にバツ印やテキストを上書きしてみるテスト
#
#
# 動作環境
# LilyPond 2.24.3
# Python 3.9
# python-cairo, pypdf
# Poppler
@trueroad
trueroad / show_pdf_link.py
Last active September 18, 2024 10:13
Show PDF link annots.
@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 / 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.