This is a Linux kernel module adding a character device to simulate the sounds of ツクツクボウシ (Tsuku-Tsuku-Boshi; Meimuna opalifera).
Example of execution is something like this:
$ sudo cat /dev/tsukutsuku
ジー...ツクツクボーシ!ツクツクボーシ!ツクツクボーシ!ツクツクボーシ!ウイヨース!ウイヨース!ウイヨース!ウイヨース!ウイヨース!ジー...ツクツクツクツクボーシ!ツクツクボーシ!ツクツクボーシ!ツクツクボーシ!ツクツクボーシ!ツクツクボーシ!ツクツクボーシ!ツクツクボーシ!ツクツクボーシ!ツクツクボーシ!ツクツクボーシ!ツクツクボーシ!ツクツクボーシ!ツクツクボーシ!ウイヨース!ウイヨース!ウイヨース!ウイヨース!ウイヨース!ウイヨース!ジー...ツクツクボーシ!ツクツクボーシ!ツクツクボーシ!ウイヨース!ウイヨース!ウイヨース!ウイヨース!ウイヨース!ウイヨース!ウイヨース!ジー...ツクツクツクツクボーシ!ツクツクボーシ!.......
- Clone this repo & move into the directory
git clone https://github.com/ryoryo25/TsukuTsukuBoshiDevice.git
cd TsukuTsukuBoshiDevice
- Build & install the module:
make
make install
-
Character device named
tsukutsuku
is now installed under the/dev/
directory. -
Use
/dev/tsukutsuku
as source of text input. NOTE:sudo
maybe needed
sudo cat /dev/tsukutsuku
Run the following command to uninstall this module.
make uninstall
This module simulates a probabilistic automaton internally to generate the sounds of ツクツクボウシ. This idea is based on this tweet that depicts the pattern of the songs of ツクツクボウシ using a nondeterministic finite automaton (the following picture).
The probabilities of each nondeterministic transition are decided from my experience.
Additionally, this module was originally created for an assignment in my graduate school class of Linux kernel.