kolleksjon av dokumenter og kode som blir brukt på Jokerspace i Valdres for å formiddle elektronisk musikk til et skapende milljø
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

38 rindas
673B

  1. #ifndef JOKERMUSIKK_H
  2. #define JOKERMUSIKK_H
  3. #include <Arduino.h>
  4. const int Output = 1; // Can be 1 or 4
  5. // Cater for 16MHz, 8MHz, or 1MHz clock:
  6. const int Clock = ((F_CPU/1000000UL) == 16) ? 4 : ((F_CPU/1000000UL) == 8) ? 3 : 0;
  7. const uint8_t scale[] PROGMEM = {239,226,213,201,190,179,169,160,151,142,134,127};
  8. const uint8_t SKALA[][7] = {
  9. {0,2,4,5,7,9,11},
  10. {0,2,3,5,7,9,10},
  11. {0,1,3,5,7,8,10},
  12. {0,2,4,6,7,9,11},
  13. {0,2,4,5,7,9,10},
  14. {0,2,3,5,7,8,10},
  15. {0,1,3,5,6,8,10}};
  16. const int treklang[][3] = {
  17. {0,2,4},
  18. {1,3,5},
  19. {2,4,6},
  20. {0,3,5},
  21. {1,4,6},
  22. {0,2,5},
  23. {1,3,6}};
  24. void note (int n, int octave);
  25. #endif