Skip to content

Commit 51f45b1

Browse files
committed
colores por aqui un poco
1 parent 9015fb6 commit 51f45b1

22 files changed

+546
-277
lines changed

(01)testj.ejec

51 Bytes
Binary file not shown.

4NEGRAS-LIGADAS.roll

1.13 KB
Binary file not shown.

EJECS/(01)SINCRO-001.ejec

18.5 KB
Binary file not shown.

Fondo.bmp

1.5 MB
Binary file not shown.

FondoWin7.bmp

1.5 MB
Binary file not shown.

ROLLDEC.BI

+30-6
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,29 @@ end Operator
6565
#Define HH_DISPLAY_INDEX 0002
6666
#Define HH_DISPLAY_SEARCH 0003
6767
#Define HH_CLOSE_ALL 0018
68+
Const CHECK_PISTA_ROLL=5
69+
Const NoGrabar=0
70+
Const BTN_LIBERADO=0
71+
Const GrabarPatronaDisco=4
72+
Const GrabarPistaEjecucion=1
73+
Const PatronDeEjecucionCompleto=3
74+
Const LISTA_DE_PISTAS = 3
75+
Const LISTA_DE_EJECUCIONES =4
76+
Const CHECK_SELECCION_EJECUCION=6
77+
Const CHECK_GRABAR_EJECUCION = 7
78+
Const GRUPO_BTNS_MIDI =8
79+
Const BTN_MIDI_PARAR = 9
80+
Const BTN_MIDI_GRABAR = 10
81+
Const BTN_MIDI_EJECUTAR = 14
82+
Const GRUPO_BTNS_MANUAL =13
83+
Const BTN_ROLL_PARAR = 11
84+
Const BTN_ROLL_EJECUTAR = 12
85+
Const BTN_ROLL_GRABAR_MIDI = 15
86+
Const BTN_PARAM_PORTSAL =16
87+
Const BTN_PARAM_VOL = 17
88+
Const BTN_PARAM_PAN =18
89+
Const BTN_PARAM_PATCH = 19
90+
Const BTN_PARAM_CANAL = 20
6891

6992
Dim HtmlHelpA As Function (hwndCaller As HWND,pszFile As LPCSTR,uCommand As UINT,dwData As DWORD_PTR) As HWND
7093
Dim HTMLHelp As Function ( hWndCaller As hwnd, pszFile As String, ByVal uCommand As Integer, dwData As DWORD_PTR) As Integer
@@ -572,8 +595,9 @@ Dim Shared As Integer pesoDur (0 To 182) => {0, _ 'era 108
572595
17500000,8750000,4375000,2187500,1093750,546875,273438,136719,68360, _ '163 171
573596
6666666,3333333,1666666, 833333, 416666,208333,104166, 52083,26042,0,0 } '172 182
574597

575-
Dim Shared As String nombreArchivo, TCompas,menuOldStr
576-
598+
Dim Shared As String nombreArchivo, TCompas,menuOldStr, ticksdefault,nombrePatron
599+
Dim Shared As Integer nroCompasesPatron, nroTicksPatron
600+
nombreArchivo="" : ticksdefault="240"
577601
Dim Shared As UByte Vfuerte=120,Vsemifuerte=100,Vdebil=80
578602
TCompas ="4/4"
579603
'Dim Shared As Integer MaxPosTrack(0 To 32) ' cada track tendra su max pos
@@ -847,7 +871,7 @@ Declare Function lugarNota (lugar As integer) As Integer
847871
Declare Sub metronomo ()
848872

849873
COMMON Shared As Long eventc
850-
Common Shared As hwnd hwndC, hwndListBox, hwndListEjec
874+
Common Shared As hwnd hwndC, hwndListBox, hwndListEjec, hwndPatronEjec
851875
Common Shared As BOOLEAN ROLLCARGADO, TRACKCARGADO, CANCIONCARGADA , NADACARGADO, CANCIONCREADA,EJECCARGADA
852876
Common Shared As string pathdir,nombre,nombreMidiIn
853877
common Shared As String NombreCancion,NombrePista
@@ -857,7 +881,7 @@ Common Shared As Any Ptr surface,surf2
857881
Common Shared as any ptr thread1, thread2,threadPenta,thread3,pubi,threadloop,p1,threadMenu, threadmetronomo
858882
Common Shared As Any Ptr thread4, threadGrabamidi
859883
Common Shared As Integer nfont,nmxold,nmyold,nancho,nalto,ndeltaip,nVerEscalasAuxiliares,nanchofig,nVerCifradoAcordes
860-
Common Shared As Integer mxold,myold, w,h,grado,trasponer,canalx
884+
Common Shared As Integer mxold,myold, w,h,grado,trasponer,canalx, HabilitarPatrones
861885
Common Shared As ubyte patchsal
862886
Common Shared As Integer posicion,posicionOld,posn,terminar
863887
COMMON Shared As Integer MaxPos,ntk,CPlay, guardopos,ntktab,ntoca,ntkp,npi,calltoca,npo
@@ -902,7 +926,7 @@ Type midicod Field=1
902926
As UByte vel
903927
As Integer partes
904928
End Type
905-
Redim shared CargaIn ( 1 To 4000) As midicod
929+
Redim shared CargaIn ( 1 To 384000) As midicod
906930
' a disco puedo grabarsolo CargaIn para cada ejecucion y al cargarla reconstruir en memoria
907931
' los Toca,,,,eso es!!! y sumando todas las partes y dividiento por TickChico obtengo
908932
' elmaxposy por ende el valor a dimensioar el Toca....
@@ -961,7 +985,7 @@ Dim Shared As Double t2call=0, t1play=0
961985

962986
Type paramGrabamidi
963987
As vivo toc
964-
As Integer tocatope
988+
''As Integer tocatope ''' no hace falta esta estructura solo contiene una pista
965989
As ejecparam tocap
966990
End Type
967991

ROLLINICIO.BAS

+20-10
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
1+
' 149 corregi la entrada de port y salada para las ejecuciones,,, ver si anda para cancion,,,
2+
' lo importante es que toque en varios lados del codigo el pvalor de portin y portout
3+
' y hay diferencia en port reales que se envian a rtmidi comenzando en cero y ports logicos para el
4+
' programa que empiezan desde 1 ,,,,verificar que todo funciona,,, a lo mejor sonoalgo o talvez
5+
' anda mejor porque en varios lados se enviaba al fisico el portout sin restarle 1 verificar exhaustivamnete!!!
6+
' ============================================
17
' apertura de ports en play
28
' tiempoPatron a entero no tiene porque ser double, se graba en archivo
39
' Se agrego formar acordes aun sin nota en el lugar elegido, se deb eentrar al duracion
410
' Triadas desde Tonica completo Mayor Menor Disminuido formacion y play
511
' fix consumo cpu S5=2 y fueradefoco=0 eliminado
612
' Funciona Acorde en Tonica triaca,,Ctrl+clik derecho luego seguir con mayor hasta no inversion
7-
' SE ELIMINO DE 'Q' la configuracion de tamaños, proporciones y font
13+
' SE ELIMINO DE 'Q' la configuracion de tama�os, proporciones y font
814
' se agrego nverEscalasAuxiliares y nanchofig a RollMusic.ini
915
' se agrego en Ver, si se ven o no las Escalas Auxiliares en el grafico
1016
' TODO MULTIKEY IR PASANDO DE A POCO PROBANDO A E.SCANCODE MULTIKEY ES UNA BASURA REPITE EL COMANDO MIL VECES
@@ -15,7 +21,7 @@
1521
' antes que midi despue salgun dia haremos midi no se veremos....
1622
' http://xmlsoft.org/examples/index.html
1723
' YA cierra todas las sesiones de rollmusic desde control
18-
' futuro grabar mxold y algo mas para conservar el tamaño de la ventana y el tamaño del font
24+
' futuro grabar mxold y algo mas para conservar el tama�o de la ventana y el tama�o del font
1925
' usado por el usuario !!!! OK Y AANDA
2026
' el borrado de columna esta defectuoso hay que dar 0 y luego 12 x en toda la octava para
2127
' que borre mejor usaremos marcas de zona para borrar.
@@ -224,7 +230,8 @@ Common Shared mensaje As Integer
224230
Const list_item_data_key ="list_item_data"
225231
' fin GTK
226232
' -- INICIO openGL GLFW 3.1.1
227-
' habilitamos OPENGL para ver si podemso mostrar la grabacion de ejecucion
233+
/'
234+
' habilitamos OPENGL para ver si podemso mostrar la grabacion de ejecucion u otra cosa
228235
' de entrada por MIDI-IN.
229236
#Include once "glfw3.bi"
230237
If glfwInit()=GL_FALSE then
@@ -233,7 +240,7 @@ If glfwInit()=GL_FALSE then
233240
end If
234241
Dim As GLFWwindow ptr win
235242
' ----FIN OPENGL
236-
243+
'/
237244
'===============================
238245
#include "ROLLDEC.BI"
239246

@@ -294,7 +301,7 @@ Open "secuencia.txt" For Output As 5
294301
Const NEWLINE = !"\n"
295302

296303
'tempo I=160, seri equivalente a O=40 como l maxima cantdad de ticks de O es
297-
' eldela figura mas pequeña=128 ticks...40 * 128 = 5120 por minuto.
304+
' eldela figura mas peque�a=128 ticks...40 * 128 = 5120 por minuto.
298305
' Si deseo un secuecnia de CantMin minutos
299306
tempo=160 ' negra=160
300307
CantMin=15
@@ -484,7 +491,7 @@ ReDim (Track(32).trk ) (1 To Ctres,1 To lim1)
484491
' o sea en las posiciones, lo que debo hacer es cargar estos Tracks
485492
' con eventos pero para mostrarlso usaria el Roll
486493
' suponemos que cada track solo puede tener acordes de hasta 12 notas,1 to lim2
487-
' en el momento de la carga de Roll cargar tambien Track ¿?
494+
' en el momento de la carga de Roll cargar tambien Track ?
488495
' creo que no solo debo copiar en el momento antes de grabar o reproducir
489496
' debere hAcer otro play PlayTracks en donde se ejecutara todos los tracks
490497
' barriendo la posicion comun a todos y las notas de cada uno EN SINCRONIA CON LA VISUALIZACION!
@@ -670,7 +677,7 @@ Var Shared ft => FreeType()
670677
'' Load a font with FreeType
671678
Common Shared As FT_Face ftface
672679
FT_New_Face( ft, "Bebaskai.otf", 0, @ftface )
673-
680+
common shared as any ptr BRUSH
674681
' ========== CONTROL DEL NRO DE OCTAVAS MOSTRADO SE PODRA PONER PARA EL USUARIO
675682
' VER SI SE PUEDE USAR ARRAYS POR PORCIONES
676683
'----- -FIN
@@ -700,11 +707,11 @@ midiout(0) = rtmidi_out_create_default() '' new RtMidiOut();
700707

701708

702709
'print #1,"PLAYALL---------->>>>>>>"
703-
portsout = port_count (midiout(0))
704-
portsin = port_count(midiin(0))
710+
portsout = port_count (midiout(0)) ' es una constante
711+
portsin = port_count(midiin(0)) ' es una constante
705712
Dim i1 As Integer
706713
Print #1, "portsin "; portsin
707-
Print #1, "portsout "; portsout
714+
Print #1, "portsout ";portsout
708715

709716
ReDim listOutAbierto (0 To portsout)
710717
ReDim listInAbierto (0 To portsin)
@@ -742,3 +749,6 @@ For i1 = 0 To portsout -1
742749
Next i1
743750

744751
'---------------------
752+
' por omision el programa empieza con portin y portout en 1
753+
'portin=1
754+
'portout=1

ROLLLoop.bas

+1-1
Original file line numberDiff line numberDiff line change
@@ -871,7 +871,7 @@ stride = cairo_format_stride_for_width(CAIRO_FORMAT_ARGB32, ANCHO)
871871
' queda congelado en los 1eros compasaes mostrados al terminar esos procesos mencionados
872872
' se se libera la escrituta al grafico...vermeos si sirve para seguirgrabando pistas y reproduciendo
873873
' en mejores condiciones,,,
874-
If cargaCancion=1 Or repro=1 Or GrabarEjec=1 Then
874+
If cargaCancion=1 Or repro=1 Or GrabarEjec=GrabarPistaEjecucion Then
875875
' esta cargando cancion
876876
'Locate 5,10
877877
'Print "CARGANDO ...PISTA Nro ", ntk

0 commit comments

Comments
 (0)