Skip to content

Commit

Permalink
update envelope2.ck example
Browse files Browse the repository at this point in the history
  • Loading branch information
gewang committed Jun 16, 2024
1 parent 477f91d commit f8f68db
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions examples/basic/envelope2.ck
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,11 @@ while( true )
Math.random2f(500,1000)::ms => dur duration;
// next target
Math.random2f(.1, 10) => float target;
// print
<<< "duration:", duration/second, "target:", target >>>;

// print duration and target
<<< "duration:", duration/second, "target:", target >>>;
// set duration and target
e.set( duration, target );
// key on (without key off): ramp to new target
e.keyOn();
// advance by duration-to-target
duration => now;
}
Expand Down

0 comments on commit f8f68db

Please sign in to comment.