ChucK/Programs/12BarBlues

From CSWiki
Revision as of 19:55, 21 February 2006 by Gewang (talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

12 Bar Blues

by Rasmus Kaj

Links

  • ChucK 12-bar blues : A drum beat and a 12-bar blues standard : Rasmus Kaj
    • hihat.ck : the hihat program (with commented out syntax error) : Gary Williams
    • kick.ck : the kick drum program (with commented out syntax error) : Gary Williams
    • snare.ck : the snare drum program (with commetned out syntax error) : Gary Williams
    • baseloop.ck : the base loop program : Gary Williams

Discussion

    • The current version of Frankenstein didn't allow dividing a float by a dur, so I just commented the divide op and substituted a simple assign, which may not be what Rasmus was aiming at -- I'm not sure it positions to the end of the sndbuf correctly. -- Gary
      • All I was aiming for is that the sound should not be heard when loading, but only when I "tell it to start". Maybe there is some better way of doing that? -- Rasmus
        • To not let sndbuf play until triggered, set .play or .rate to 0.0 (0.0 => s.rate) and set it to 1.0 when you want to start. -- Ge
          • Another method is to do mysndbuf.samples() => mysndbuf.pos; right after you load a sample. --art