Skip to content

Commit

Permalink
fix ADSR constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
gewang committed Oct 4, 2024
1 parent 0630284 commit 899d108
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion VERSIONS
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@ ChucK VERSIONS log
------------------

1.5.3.1 (October 2024)
- (ChuGL maintanance patch)
*** ChuGL maintanance patch ***
- (fixed) crash caused by calling UI functions before calling GG.nextFrame();
now prints a warning with a hint to call GG.nextFrame()
- (fixed) CPU and memory spikes when minimizing a ChuGL window
- (fixed) crash caused by immediately disconnecting GGen after -->
*** language maintenance ***
- (fixed) ADSR constructors now work correctly


1.5.3.0 (September 2024)
Expand Down
4 changes: 2 additions & 2 deletions src/core/ugen_stk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3936,7 +3936,7 @@ by Perry R. Cook and Gary P. Scavone, 1995 - 2002.";
type_engine_import_add_ex(env, "basic/blit2.ck");

// add construtor ADSR( dur attack, dur decay, float sustain, dur release ) | 1.5.2.5 (added) ge & eito
func = make_new_ctor( ADSR_ctor_floats );
func = make_new_ctor( ADSR_ctor_durs );
func->add_arg( "dur", "attack" );
func->add_arg( "dur", "decay" );
func->add_arg( "float", "sustain" );
Expand All @@ -3945,7 +3945,7 @@ by Perry R. Cook and Gary P. Scavone, 1995 - 2002.";
if( !type_engine_import_ctor( env, func ) ) goto error;

// add constructor ADSR( float attack, float decay, float sustain, float release ) | 1.5.2.5 (added) ge & eito
func = make_new_ctor( ADSR_ctor_durs );
func = make_new_ctor( ADSR_ctor_floats );
func->add_arg( "float", "attack" );
func->add_arg( "float", "decay" );
func->add_arg( "float", "sustain" );
Expand Down

0 comments on commit 899d108

Please sign in to comment.