Testing a set of Arduino functions for generating musical scales.
C Arduino
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README
musicNoteFreqs.h
musicScales.h

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