// The correct frequency ~~ values of the "frequency" and "fs" are taken from the script