Compare commits

..

No commits in common. "e540df566a1810ed87629e76ccca30a347631d21" and "244ff8d131d1aa26fc134618a4e357fa6f563271" have entirely different histories.

4 changed files with 6 additions and 19 deletions

View File

@ -1,5 +1 @@
# Gadgets autour du protocole OSC # Gadgets autou du protocole OSC
Oui, je sais, tout ça n'est pas vraiment clair.

View File

@ -9,7 +9,7 @@ SqrOsc sl => Envelope envl => dac.left;
SawOsc sr => Envelope envr => dac.right; SawOsc sr => Envelope envr => dac.right;
0.5 => sl.gain => sr.gain; 0.5 => sl.gain => sr.gain;
0.01 => envl.time; 0.06 => envr.time; 0.1 => envl.time; 0.25 => envr.time;
OscIn oscin; OscMsg msg; OscIn oscin; OscMsg msg;

View File

@ -1,4 +1,4 @@
/* /* faire pouet avec chuck osc et un joystick
----------------------------------------- -----------------------------------------
reception des XY reception des XY
*/ */

View File

@ -38,28 +38,19 @@ while (EOF != (caractere=getc(fp))) {
char_count++; char_count++;
if (verbosity) fprintf(stderr, "car = %4d %c\n", if (verbosity) fprintf(stderr, "car = %d\n", caractere);
caractere, caractere);
if (isalpha(caractere)) { if (isalpha(caractere)) {
/* Play a sound */ /* Play a sound */
note=toupper(caractere) - 'A'; note=toupper(caractere) - 'A';
// fprintf(stderr, "%c -> %3d\n", caractere, note); // fprintf(stderr, "%c -> %3d\n", caractere, note);
send_data_button(loa, note, 1); send_data_button(loa, note, 1);
usleep(wait_time*1000);
send_data_button(loa, note, 0);
usleep(40*1000); usleep(40*1000);
}
else if (isdigit(caractere)) {
note = caractere - '0';
send_data_button(loa, note, 1);
usleep(wait_time*1000);
send_data_button(loa, note, 0); send_data_button(loa, note, 0);
usleep(20*1000); usleep(80*1000);
} }
else if (isblank(caractere)) { else if (isblank(caractere)) {
usleep(200*1000); usleep(300*1000);
} }
else if (caractere == '!') { else if (caractere == '!') {
send_data_id(loa, my_id); send_data_id(loa, my_id);