This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
typedef struct ADLMIDI_Bank | |
{ | |
void *pointer[3]; | |
} ADLMIDI_Bank; | |
typedef struct ADLMIDI_BankId | |
{ | |
ADL_UInt8 msb, lsb; | |
ADL_UInt8 percussive; | |
} ADLMIDI_BankId; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <windows.h> | |
#include <stdio.h> | |
int main() | |
{ | |
for (unsigned count = 0; count < 100; count += 10) { | |
CRITICAL_SECTION cs = {}; | |
SetLastError(0); | |
BOOL b = InitializeCriticalSectionAndSpinCount(&cs, count); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <windows.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <vector> | |
static CRITICAL_SECTION cs; | |
DWORD WINAPI thread_run(void *user_data) | |
{ | |
unsigned i = (unsigned)user_data; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "osc.h" | |
#include "utility/arithmetic.h" | |
#include <math.h> | |
#pragma message("TODO implement OSC") | |
namespace cws80 { | |
// resolution per interval of a semitone | |
static constexpr uint osc_phi_oversample = 8; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
mkdir build | |
cd build | |
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release .. | |
#!! Optional feature summary: | |
#!! RtMidi: ON | |
#!! RtAudio: ON | |
#-- Checking for module 'jack' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -ru Minicomputer.old/editor/Memory.cpp Minicomputer/editor/Memory.cpp | |
--- Minicomputer.old/editor/Memory.cpp 2018-07-01 18:13:54.041739133 +0200 | |
+++ Minicomputer/editor/Memory.cpp 2018-07-01 18:14:24.012891722 +0200 | |
@@ -16,6 +16,7 @@ | |
* along with this program. If not, see <http://www.gnu.org/licenses/>. | |
*/ | |
#include "Memory.h" | |
+#include <unistd.h> | |
/** | |
* constructor |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct Operator | |
{ | |
uint8_t AR = 0; | |
uint8_t DR = 0; | |
uint8_t SR = 0; | |
uint8_t RR = 0; | |
uint8_t SL = 0; | |
uint8_t TL = 0; | |
uint8_t KS = 0; | |
uint8_t ML = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <RtAudio.h> | |
#include <getopt.h> | |
#include <iostream> | |
static void print_compiled_apis() | |
{ | |
std::vector<RtAudio::Api> available; | |
RtAudio::getCompiledApi(available); | |
for (RtAudio::Api api : available) | |
std::cout << " * " << RtAudio::getCompiledApiName(api) << "\n"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <rtaudio_c.h> | |
#include <getopt.h> | |
#include <stdio.h> | |
static void print_compiled_apis() | |
{ | |
const rtaudio_api_t *apis = rtaudio_compiled_api(); | |
while (*apis != RTAUDIO_API_UNSPECIFIED) { | |
printf(" * %s\n", rtaudio_compiled_api_name(*apis)); | |
++apis; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "RtAudio.h" | |
#include <string.h> | |
#include <unistd.h> | |
static int channels = 0; | |
int audio_callback( | |
void *outputBuffer, void *inputBuffer, | |
unsigned int nFrames, | |
double streamTime, |