Les scratchmen utilisent des loopers en Flash 11. Il est temps qu'ils découvrent une interface ncurses pilotée au joystick :)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

interactive.c 787B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. * NCLOOPER INTERACTIVE
  3. */
  4. #include <stdio.h>
  5. #include <unistd.h>
  6. #include "nclooper.h"
  7. /* --------------------------------------------------------------------- */
  8. extern int verbosity;
  9. /* --------------------------------------------------------------------- */
  10. int enter_interactive(SampleRef *psmpl, int notused)
  11. {
  12. int foo, row, col;
  13. char txt[99];
  14. #if DEBUG_LEVEL
  15. fprintf(stderr, ">>> %s ( %p %d )\n", __func__, psmpl, notused);
  16. #endif
  17. for (foo=0; foo<26; foo++) {
  18. idx2position(foo, &row, &col);
  19. sprintf(txt, "%3d", foo);
  20. mvaddstr(row, col, txt);
  21. if (psmpl[foo].key) {
  22. standout();
  23. mvaddch(row, col+4, psmpl[foo].key);
  24. standend();
  25. }
  26. refresh();
  27. }
  28. sleep(3);
  29. return -1;
  30. }
  31. /* --------------------------------------------------------------------- */