2007-12-27 11:34:19 -05:00
|
|
|
$OpenBSD: patch-Modules_Pro_effects_c,v 1.2 2007/12/27 16:34:19 espie Exp $
|
2001-04-09 20:51:59 -04:00
|
|
|
--- Modules/Pro/effects.c.orig Sat Apr 13 19:16:54 1996
|
2007-12-27 11:34:19 -05:00
|
|
|
+++ Modules/Pro/effects.c Thu Dec 27 16:51:26 2007
|
|
|
|
@@ -207,8 +207,9 @@ LOCAL void do_vibrato(struct channel *ch)
|
1998-10-02 13:19:44 -04:00
|
|
|
/* temporary update of only the step value,
|
|
|
|
* note that we do not change the saved pitch.
|
|
|
|
*/
|
|
|
|
- set_temp_pitch(ch,
|
|
|
|
- ch->pitch + sinusoid_value(&(ch->vib))/256);
|
|
|
|
+ if (ch->pitch)
|
|
|
|
+ set_temp_pitch(ch,
|
|
|
|
+ ch->pitch + sinusoid_value(&(ch->vib))/256);
|
|
|
|
}
|
|
|
|
|
|
|
|
LOCAL void set_vibrato(struct channel *ch, struct event *e)
|