I am writing a music software in visual basic as my final year project and am having problems with displaying a piano and loading sounds into each of the notes.Can someone please!!!! come to my aid. Any help given will be appreciated
Here is how you can play wav files.
1. Add a command button and a common dialog box. Copy and paste the sndPlaySound Declare statement from the API Viewer into your application. Also copy the SND_SYNC and SND_ASYNC constants.
Private Declare Function sndPlaySound Lib "winmm.dll" Alias "sndPlaySoundA" (ByVal lpszSoundName As String, ByVal uFlags As Long) As Long
Private Const SND_ASYNC = &H1
Private Const SND_SYNC = &H0
2. Add this code to the Command1_Click procedure:
Private Sub Command1_Click()
Dim RtnVal As Integer
'Get name of .wav file to play
CommonDialog1.Filter = "Sound Files|*.wav"
RtnVal = sndPlaySound(CommonDialog1.filename, SND_SYNC)
Write a C program that should create a 10 element array of random integers (0 to 9). The program should total all of the numbers in the odd positions of the array and compare them with the total of the numbers in the even positions of the array and indicate ...
I have a 2d matrix with dimension (3, n) called A, I want to calculate the normalization and cross product of two arrays (b,z) (see the code please) for each column (for the first column, then the second one and so on).
the function that I created to find the ...