ToolsDevelop ToolsDevelop
Software & Resources for Visual Programming & RAD.

Music Keyboard ActiveX OCX.

Music Keyboard ActiveX OCX

Properties:

	Octaves:		Numero de octavas del teclado ( 2 en este caso )
	KeySize:		Tamaño de las teclas
					0 = Small ( pequeña )
					1 = Big ( grande )

Events:

	MusicKeyOver:	MusicKeyOver ( OctaveNumber As Integer, KeyNumber As Integer, NoteString As String )
	MusicKeyDown:	MusicKeyDown ( OctaveNumber As Integer, KeyNumber As Integer, NoteString As String )
	MusicKeyUp:	MusicKeyUp ( OctaveNumber As Integer, KeyNumber As Integer, NoteString As String )

Methods:

	Ninguno
	
Nota:

	OctaveNumber -     Devuelve un numero de 0 a 9 correspondiente a la octava
	KeyNumber -        Devuelve un numero de 0 a 120 correspondiente a la tecla
	NoteString -       Devuelve una cadena correspondiente a la nota musical ( DO, RE, FA#, etc...)
Código de Ejemplo
	Private Sub MusicKey1_MusicKeyOver(OctaveNumber As Integer, KeyNumber As Integer, NoteString As String)
		Debug.Print "MusicKeyOver", OctaveNumber, KeyNumber, NoteString
	End Sub

	Private Sub MusicKey1_MusicKeyDown(OctaveNumber As Integer, KeyNumber As Integer, NoteString As String)
		Debug.Print "MusicKeyDown", OctaveNumber, KeyNumber, NoteString
	End Sub

	Private Sub MusicKey1_MusicKeyUp(OctaveNumber As Integer, KeyNumber As Integer, NoteString As String)
		Debug.Print "MusicKeyUp", OctaveNumber, KeyNumber, NoteString
	End Sub


Go to Main Page