Skip to content

ジー...ツクツクツクツクボーシ!ツクツクボーシ!ツクツクボーシ!ツクツクボーシ!ツクツクボーシ!ウイヨース!ウイヨース!ウイヨース!ウイヨース!ジー...

License

Notifications You must be signed in to change notification settings

ryoryo25/TsukuTsukuBoshiDevice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

TsukuTsukuBoshiDevice

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
ジー...ツクツクボーシ!ツクツクボーシ!ツクツクボーシ!ツクツクボーシ!ウイヨース!ウイヨース!ウイヨース!ウイヨース!ウイヨース!ジー...ツクツクツクツクボーシ!ツクツクボーシ!ツクツクボーシ!ツクツクボーシ!ツクツクボーシ!ツクツクボーシ!ツクツクボーシ!ツクツクボーシ!ツクツクボーシ!ツクツクボーシ!ツクツクボーシ!ツクツクボーシ!ツクツクボーシ!ツクツクボーシ!ウイヨース!ウイヨース!ウイヨース!ウイヨース!ウイヨース!ウイヨース!ジー...ツクツクボーシ!ツクツクボーシ!ツクツクボーシ!ウイヨース!ウイヨース!ウイヨース!ウイヨース!ウイヨース!ウイヨース!ウイヨース!ジー...ツクツクツクツクボーシ!ツクツクボーシ!.......

How to use

  1. Clone this repo & move into the directory
git clone https://github.com/ryoryo25/TsukuTsukuBoshiDevice.git
cd TsukuTsukuBoshiDevice
  1. Build & install the module:
make
make install
  1. Character device named tsukutsuku is now installed under the /dev/ directory.

  2. Use /dev/tsukutsuku as source of text input. NOTE: sudo maybe needed

sudo cat /dev/tsukutsuku

How to uninstall

Run the following command to uninstall this module.

make uninstall

Background

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).

NFA of the sounds of ツクツクボウシ

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.

About

ジー...ツクツクツクツクボーシ!ツクツクボーシ!ツクツクボーシ!ツクツクボーシ!ツクツクボーシ!ウイヨース!ウイヨース!ウイヨース!ウイヨース!ジー...

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published