Simulator of vibrating string with possibility to set different parameters include initial positions, velocities, distributed friction. Solved as 1d wave equation with friction with FDM method. It is possible to plot graph, spectrogram, animated graph, listen stereo sound and realtime. Move markers with mouse.
Option realtime video and audio possible if daq toolbox instlled. Option spectrogram is possible if signal processing toolbox installed.
Maxim Vedenyov (2021). vibrating string simulator (https://www.mathworks.com/matlabcentral/fileexchange/35746-vibrating-string-simulator), MATLAB Central File Exchange. Retrieved .
Excellent simulator. Thanks so much for this, I am using it in a Musical acoustics course at University to explain the differences between sharp and soft plucking as well as the relationship between position of plucking and mode content in the resulting note.
I found a couple of things that need updated:
in save_to_wav.m, lines 50 and 59 need updating to audiowrite, observing the differences in parameter input from the old wavwrite.
Well done dude, worked for me
Inspired by: Interactive curve class
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!