1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

ズンドコキヨシ with ChucK

Posted at

ズンドコキヨシまとめ
http://qiita.com/shunsugai@github/items/971a15461de29563bf90

オーディオプログラミング言語ChucKでズンドコキヨシを実装してみました。
音は鳴りません。ごめんなさい。でも、=> now;による待ちでリズムは合わせています。

ChucK => Strongly-timed, On-the-fly Music Programming Language

fun void zundokobushi()
{
    0 => int zunCount;
    while ( true )
    {
        if ( Math.random2( 0, 1 ) )
        {
            1 +=> zunCount;
            <<<"ズン","">>>;
        }
        else
        {
            <<<"ドコ","">>>;
            if ( zunCount >= 4 )
            {
                0.8::second => now;
                <<<"キ・ヨ・シ!","">>>;
                break;
            }
            0 => zunCount;
        }
        if ( zunCount <= 1 ){ 0.9::second => now; }
        else { 0.8::second => now; }
    }
}
zundokobushi();

ちなみに、ChucKのIDEであるminiAudicleだと日本語が文字化けしてしまいます。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?