Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 16044

VS 2019 Visual Basic Customized Piano. I'm a Noob. So please tolerate my stupid questions

$
0
0
Hey There,

First of all, I'm a beginner in Coding, So please tolerate my stupid questions.

I want to create a customized Piano layout that plays only the notations based on the user's selection of the raga name. I want it the button to sustain the tune and continuous play while holding the keys set by case e.keycode.

I want to change the Piano key's text and tone based on the user's scale selection, an example is given below

I need to declare notes with numbers for automatic calculation i.e number for C=1, C#=2, D=3, D#=4, E=5, F=6, F#=7, G=8, G#=9, A=10, A#=11, B=12 suppose they want to play raga Kalyani the notation for the Kalyani raga - Arohanam is C D E F# G A B and Avarohanam is B A G F# E D C. which can be written as Arohanam is 1 3 5 7 8 10 12 or (1 2 2 2 1 2 2) and Avarohanam is 1 3 5 7 8 10 12 in reverse order (1 2 2 2 1 2 2), so it can calculate for any scales the starting key is considered as 1 and it adds according to the number defined by the notation.

So the above is for the scale C, if they wish to play it on D scale then the notation would be D E F# G# A B C#. which can be written as 1 3 5 7 8 10 12 or (1 2 2 2 1 2 2)
for the D scale, its third key is the next note for that raga i.e E likewise the next note.

Some ragas don't have symmetric Arohanam and Avarohanam, for your better understanding "Arohanam is the sequence of swaras used in a raga in the ascending passages i.e. as the pitch goes up. Avarohanam is the sequence of swaras to be used in descent. The arohanam and avarohanam (or the scale) of a raga provide only a skeletal outline upon which the rest of the raga is formed."

Raga Kamas is asymmetric raga Arohanam is C F E F G A A# C and Avarohanam is C A# A G F E D C so here D is missing in the Arohanam. For such ragas I want the piano to change the notes according to the keypress in real-time.

I would really appreciate your help on this. I've already created my base form and the design part is done also the coding is done but I'm not able to play the keys continuously it sounds so odd since the playback is from the recorded file"wave", it looks artificial. I want to perform the piano just like a virtual piano ref to the link https://www.onlinepianist.com/virtual-piano, also I need to press two or three keys simultaneously and this is not possible with my setup please guide me.!Form1.txt

My Project link is here : https://drive.google.com/file/d/1oVs...ew?usp=sharing

Thanks in Advance.!

Siddhusubbu
Attached Files

Viewing all articles
Browse latest Browse all 16044

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>