Edit and compile if you like:
% Author: Izaak Neutelings (January 2021)\documentclass[border=3pt,tikz]{standalone}\usepackage{amsmath}\usepackage{etoolbox} % ifthen\usepackage{tikz}\usepackage{ifthen}\usetikzlibrary{arrows.meta} % for arrow size\tikzset{>=latex} % for LaTeX arrow head\colorlet{xcol}{blue!70!black}\colorlet{vcol}{green!60!black}\colorlet{myred}{red!80!black}\colorlet{myblue}{blue!80!black}\colorlet{mypurple}{blue!50!red!80}\colorlet{metalcol}{blue!25!black!30!white}\tikzstyle{metal}=[draw=metalcol!10!black,rounded corners=0.1,top color=metalcol,bottom color=metalcol!80!black,shading angle=10]\tikzstyle{ring}=[metalcol!20!black,double=metalcol!70!black,double distance=1.2,line width=0.3]\tikzstyle{rope}=[brown!20!black,double=brown!70!black,double distance=0.8,line width=0.1] %very thick,line cap=round\tikzstyle{wood}=[draw=brown!80!black,rounded corners=0.1,top color=brown!80,bottom color=brown!80!black!80,shading angle=10]%\tikzstyle{myarr}=[-{Latex[length=3,width=2]},vcol!40]%\tikzstyle{mydoublearr}=[{Latex[length=3,width=2]}-{Latex[length=3,width=2]},vcol!40]\def\L{6.0}\def\t{0.12}\def\H{0.22} % mount height\def\h{0.12} % fret height\def\r{0.05} % fret radius\def\w{0.18} % fret width\def\A{0.5*\h} % amplitude\def\mount#1{\draw[metal] ({(1-#1)*\L},0)++(160:\r) arc(160:20:\r)-- ({(1-#1)*\L+\w/2},-\H) --++ (-\w,0) -- cycle;}\def\fret#1{\def\x{(1-#1)*\L}\def\xf{\L-#1*\L-0.57*\w}%\draw[fill=pink!60!white,line width=0.1,rounded corners=1]% ({\L-#1*\L-1.5*\w},0.033) rectangle++ (0.7*\w,-1.8*\h)
Click to download: waves_standing_string.tex • waves_standing_string.pdf
Open in Overleaf: waves_standing_string.tex