Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 135469
Collapse All | Expand All

(-)src/organMIDIIn.C (-4 / +11 lines)
Lines 30-51 Link Here
30
{
30
{
31
31
32
  int l1;
32
  int l1;
33
  printf("DEBUG: IN 1\n");
33
  snd_seq_event_t *midievent;
34
  snd_seq_event_t *midievent;
34
35
  printf("DEBUG: IN 2\n");
35
  midievent = NULL;
36
  midievent = NULL;
37
  printf("DEBUG: IN 3\n");
36
  snd_seq_event_input (MidiInPuerto[keIN].midi_in, &midievent);
38
  snd_seq_event_input (MidiInPuerto[keIN].midi_in, &midievent);
39
  printf("DEBUG: IN 4\n");
37
  if (midievent == NULL)
40
  if (midievent == NULL)
38
    return;
41
    return;
39
42
  printf("DEBUG: IN noreturn_5\n");
40
43
41
  switch (midievent->type)
44
  switch (midievent->type)
42
    {
45
    {
43
    case SND_SEQ_EVENT_PITCHBEND:
46
    case SND_SEQ_EVENT_PITCHBEND:
47
      printf("DEBUG: IN switch_1\n");
44
      pitch = (float) midievent->data.control.value / 8192.0;
48
      pitch = (float) midievent->data.control.value / 8192.0;
45
      break;
49
      break;
46
50
47
    case SND_SEQ_EVENT_PGMCHANGE:
51
    case SND_SEQ_EVENT_PGMCHANGE:
48
52
	printf("DEBUG: IN switch_2\n");
49
53
50
      if ((midievent->data.control.value > 0)
54
      if ((midievent->data.control.value > 0)
51
	  && (midievent->data.control.value < 33))
55
	  && (midievent->data.control.value < 33))
Lines 57-62 Link Here
57
61
58
    case SND_SEQ_EVENT_CONTROLLER:
62
    case SND_SEQ_EVENT_CONTROLLER:
59
63
64
	printf("DEBUG: IN switch_3\n");
60
      if (midievent->data.control.param == 1)
65
      if (midievent->data.control.param == 1)
61
	modulation = (float) midievent->data.control.value / 12.7;
66
	modulation = (float) midievent->data.control.value / 12.7;
62
 
67
 
Lines 85-91 Link Here
85
90
86
91
87
    case SND_SEQ_EVENT_NOTEON:
92
    case SND_SEQ_EVENT_NOTEON:
88
93
	
94
	printf("DEBUG: IN switch_4\n");
89
      if (midievent->data.note.velocity != 0)
95
      if (midievent->data.note.velocity != 0)
90
	{
96
	{
91
	  for (l1 = 0; l1 < POLY; l1++)
97
	  for (l1 = 0; l1 < POLY; l1++)
Lines 135-140 Link Here
135
141
136
    case SND_SEQ_EVENT_NOTEOFF:
142
    case SND_SEQ_EVENT_NOTEOFF:
137
143
144
	printf("DEBUG: IN switch_5\n");
138
      vumvum = vum;
145
      vumvum = vum;
139
      vum = 0;
146
      vum = 0;
140
      for (l1 = 0; l1 < POLY; l1++)
147
      for (l1 = 0; l1 < POLY; l1++)
(-)src/main.C.orig (-1 / +6 lines)
Lines 52-68 Link Here
52
void *
52
void *
53
thread1 (void *arg)
53
thread1 (void *arg)
54
{
54
{
55
   printf("DEBUG: thread_1\n");
55
   pon_realtime();
56
   pon_realtime();
57
   printf("DEBUG: thread_1 realtime_on\n");
56
  while (Pexitprogram ==0)  hor.midievents(1);
58
  while (Pexitprogram ==0)  hor.midievents(1);
59
  printf("DEBUG: thread_1 while ends\n");
57
  return (0);
60
  return (0);
58
};
61
};
59
62
60
void *
63
void *
61
thread2 (void *arg)
64
thread2 (void *arg)
62
{
65
{
63
    
66
    printf("DEBUG: thread_2\n");
64
    pon_realtime();
67
    pon_realtime();
68
    printf("DEBUG: thread_2 realtime_on\n");
65
    while (Pexitprogram ==0)  hor.Alg1s(hor.PERIOD,0);
69
    while (Pexitprogram ==0)  hor.Alg1s(hor.PERIOD,0);
70
    printf("DEBUG: thread_2 while ends\n");
66
    return(0);
71
    return(0);
67
72
68
};
73
};

Return to bug 135469