svennidal
a year ago
Nice. Although, it bothers me that the shorter lines are lower pitched than the longer lines. Don’t know why, but intuitively I feel like the pitch should go down as the line gets longer.
franze
a year ago
Fixed
//const lengthFactor = clamp(lineLength / 200, 0.5, 2); // outdated // Adjust between 0.5x and 2x
const lengthFactor = clamp(200 / lineLength, 0.5, 2); //Reason: This aligns the instrument with the physical properties of real-world instruments, making it more intuitive and educational.svennidal
a year ago
Wow, much better! Good job!
em3rgent0rdr
a year ago
It probably bothers anyone that has a physics or music background.
istjohn
a year ago
I mean, that's how a tuning fork, bell, string, or chime works in the real world. Frequency is inversely proportional to wave length.
semiquaver
a year ago
Right, which is why longer strings play lower notes.