Prev: Simulink 3D Animation Joystick
Next: Error message
From: Debejyo Chakraborty on 21 Jun 2010 14:45 "Ryan " <ryanj91(a)gmail.com> wrote in message <hr63ek$50e$1(a)fred.mathworks.com>... > I'm making a GUI piano for a final project and I'm having some trouble with figuring out the length of time for notes. I have a simple 1.5 octave gui piano and its working fine if i assign the frequencies to play on a button press, but im not sure how to make matlab continuosly play the note if the button is held down. In piano, its like a string instrument. You can't get a sustained long play by holding a key down (as far I understand).
From: Walter Roberson on 21 Jun 2010 15:30 Debejyo Chakraborty wrote: > "Ryan " <ryanj91(a)gmail.com> wrote in message > <hr63ek$50e$1(a)fred.mathworks.com>... >> I'm making a GUI piano for a final project and I'm having some trouble >> with figuring out the length of time for notes. I have a simple 1.5 >> octave gui piano and its working fine if i assign the frequencies to >> play on a button press, but im not sure how to make matlab continuosly >> play the note if the button is held down. > In piano, its like a string instrument. You can't get a sustained long > play by holding a key down (as far I understand). It is difficult to find firm figures with the keywords I have searched with, but it appears that sustain on a good piano can be upwards of 45-ish seconds. That could be done by holding down the key so that the damper for that string does not move in, or it could be by pressing the sustain pedal. On the other hand, sustaining an existing note is note the same as making matlab "continuously play the note", as continuously playing the note would imply going back through the entire attack and strike cycle again and again.
|
Pages: 1 Prev: Simulink 3D Animation Joystick Next: Error message |