Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mplewis/musicscalestest
Testing a set of Arduino functions for generating musical scales.
https://github.com/mplewis/musicscalestest
Last synced: 2 months ago
JSON representation
Testing a set of Arduino functions for generating musical scales.
- Host: GitHub
- URL: https://github.com/mplewis/musicscalestest
- Owner: mplewis
- Created: 2012-06-15T14:58:17.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2012-06-19T00:24:55.000Z (over 12 years ago)
- Last Synced: 2024-04-13T04:56:08.879Z (10 months ago)
- Language: C
- Size: 113 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
TODO add an actual readme.
Sample Arduino 1.0.1 code for printing frequencies of notes in the A4 minor scale:
#include "musicScales.h"
void setup() {
Serial.begin(115200);
for (int i = 0; i <= 7; i++) {
Serial.print("Note ");
Serial.print(i);
Serial.print(": ");
Serial.println(freqScaleMinor(kA4, i));
}
Serial.println();for (int i = 0; i >= -7; i--) {
Serial.print("Note ");
Serial.print(i);
Serial.print(": ");
Serial.println(freqScaleMinor(kA4, i));
}
Serial.println();Serial.println(freqScaleMinor(kA4, 3));
Serial.println();}
void loop() {}