Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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() {}