From: Mark K. <mar...@gm...> - 2004-12-05 20:55:43
|
On Sun, 5 Dec 2004 15:23:32 -0500, Vladimir Senkov <ha...@gm...> wrote: > Hi Mark, > It's been awhile, nice to hear from you again! :) You too. > > > Point in case. Hit a note at 500Hz. Hit the same note exaclty 1 second > > later. Numerically the two would cancel each other. The first is going > > up while the second is going down, in sine wave terms. In the piano > > they do not. The second note always adds to the mix. So, either the > > first note gets synced to the second or the second to the first, but > > something must be happening physically. > > Modelling the "real" hammer hitting the "real" string is not easy and > i don't think we have enough information from the sample file to do > that. No, that's all far more complicated than I was intending. I was more thinking that playing two notes of the same note should be synced. If note 1 is already playing, and then note 2 is struck (the MIDI event) then look at the fundamental frequency of these notes and delay the start of the second note's samples until they would play 'in sync' with the first note's samples. In this way I was thinking the first and second note would be more 'supportive' of each other, and in some ways more like I'm guessing the real string works. This works for the case where the first note is loud and the second is soft. However, when we turn it around it's not so clear what to do. If you want the two to be in sync, then do you play the second one a bit late again? Or do you play it right away? My thought is to play them all second notes just a bit late to guarantee sync between any notes of the same value. this is all programming trick. I'm not talking about changing anything fundamental here. All we need to know is the apparent fundamental frequencies of the notes, but even this may not be obvious, or may be weird when we add tuning to the tool sets. - Mark I think |