Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: AOTTrigon I2CEEPROM MCP4922 AQM0802A mbed
Fork of NuMidi401 by
Diff: FMOscillator/FMAlgorithm.h
- Revision:
- 23:deb76bdf6f03
- Parent:
- 21:e3014c1bdf9c
- Child:
- 24:f93b49b4cd66
--- a/FMOscillator/FMAlgorithm.h Sat Jan 31 10:17:22 2015 +0000
+++ b/FMOscillator/FMAlgorithm.h Sat Jan 31 10:44:08 2015 +0000
@@ -1,6 +1,7 @@
#pragma once
#include "mbed.h"
#include "FMOperator.h"
+#include "AOTTrigon.h"
class FMAlgorithmConnection
{
@@ -19,10 +20,12 @@
{
public:
FMAlgorithm();
- FMAlgorithm(int opc, int cnc);
+ FMAlgorithm(int opc, int cnc, Timer *tm, AOTTrigon *tri);
~FMAlgorithm();
- void setOperator(int num, FMOperator *op);
- void setConnection(int num, int t, int s);
+ void setConnection(int t, int s);
+ void setConnectionIndex(int id);
+ void enableCurrentConnection();
+ void disableCurrentConnection();
float calculate();
void noteOn(float freq, double time);
void noteOff(double time);
@@ -30,6 +33,7 @@
private:
int opcount;
int cncount;
+ int cni;
FMOperator **operators;
FMAlgorithmConnection *connections;
