Skip to content

Commit

Permalink
Merge pull request #6 from ghostintranslation/develop
Browse files Browse the repository at this point in the history
Latest Motherboard
  • Loading branch information
ghostintranslation authored May 2, 2021
2 parents 0dd5871 + 64a2168 commit 637380c
Show file tree
Hide file tree
Showing 4 changed files with 217 additions and 206 deletions.
9 changes: 4 additions & 5 deletions DS909/DS909.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef DS909_h
#define DS909_h

#include "Motherboard9.h"
#include "Motherboard.h"
#include "BassDrum.h"
#include "Snare.h"
#include "Clap.h"
Expand All @@ -19,7 +19,7 @@ class DS909{
DS909();

// Motherboard
Motherboard9 *device;
Motherboard *device;

// Bass Drum
BassDrum *bassDrum;
Expand Down Expand Up @@ -94,8 +94,6 @@ inline DS909::DS909(){
this->hihat = new Hihat();
this->cymbal = new Cymbal();

this->device = Motherboard9::getInstance();

this->mixer1 = new AudioMixer4();
this->mixer1->gain(0, 1 );
this->mixer1->gain(1, 1 );
Expand Down Expand Up @@ -145,7 +143,7 @@ inline DS909 *DS909::getInstance() {
* Init
*/
inline void DS909::init(){
device->init(
this->device = Motherboard::init(
"DS909",
{
Potentiometer, Potentiometer, Potentiometer,
Expand All @@ -164,6 +162,7 @@ inline void DS909::init(){
this->device->setHandlePotentiometerChange(6, onRMChange);
this->device->setHandlePotentiometerChange(7, onHHChange);
this->device->setHandlePotentiometerChange(8, onCYChange);

// MIDI callbacks
this->device->setHandleMidiNoteOn(onMidiNoteOn);
this->device->setHandleMidiControlChange(0, 0, "BD", onMidiBDChange);
Expand Down
5 changes: 3 additions & 2 deletions DS909/DS909.ino
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
\_|| |\_/__) | _|_| | | | \| || |__)|__| | | _|_\_/| |
DS909
v1.1.0
v1.2.0
Support my work:
https://www.paypal.com/paypalme/ghostintranslation
Expand Down Expand Up @@ -44,10 +44,11 @@ void setup() {
audioBoard.enable();
audioBoard.volume(0.5);

// Starting sequence
// Ready!
Serial.println("Ready!");
}

void loop() {
// DS909 update
ds909->update();
}
Loading

0 comments on commit 637380c

Please sign in to comment.