Skip to content

Commit

Permalink
Update default_wave.vis
Browse files Browse the repository at this point in the history
  • Loading branch information
elpoeprod committed Sep 7, 2024
1 parent 67b3f3e commit 4b8a8cb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion visualisers/default_wave.vis
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ if surface_exists(__wavesurf) ClearSurface(__wavesurf);
if surface_exists(__surf2) ClearSurface(__surf2);
global.__wave_vis=1;
}

if !surface_exists(__wavesurf) {__wavesurf=surface_create(w,h);ClearSurface(__wavesurf);}
if surface_exists(__surf2) {__surf2=surface_create(w,h);ClearSurface(__surf2);}

surface_copy(__surf2,0,0,__wavesurf);
surface_set_target(__wavesurf);
draw_surface_ext(__surf2,0,0,1,1,0,c_white,0.2);
Expand All @@ -18,7 +22,6 @@ repeat(maxw)
draw_line((w/maxw)*i,SNAPWAVEENTRY(i,maxw)*h,(w/maxw)*(i+1),SNAPWAVEENTRY(i+1,maxw)*h)
i+=1;
}
xx=x;
i=0;
GetWaveBuffer(maxw,1,myinst)
SetVisColorAlpha(global.visfgcol,0.6);
Expand Down

0 comments on commit 4b8a8cb

Please sign in to comment.