This file contains 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
#pragma once | |
/* | |
Get audio / midi prototyping testbed up and running in C++ in one file | |
Included in this comment are a basic example of usage and a CMakeLists.txt file to build the example (including | |
CPM installation of RtAudio and RtMidi). |
This file contains 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
/* | |
* save to file, then type | |
* `mzgl-livecode Conway.h` | |
* its mouse interactive, you can click and drag to create new life. | |
*/ | |
#pragma once | |
#include "App.h" | |
#include "Drawer.h" | |
#include <array> |
This file contains 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
17:11:51.496 | RECEIVE | ENDPOINT(Arturia BeatStep Pro Arturia BeatStepPro) TYPE(SYSTEMEXCLUSIVE) DATA(F07F7F0602F7) | |
17:11:51.497 | RECEIVE | ENDPOINT(Arturia BeatStep Pro Arturia BeatStepPro) TYPE(START) | |
17:11:51.497 | RECEIVE | ENDPOINT(Arturia BeatStep Pro Arturia BeatStepPro) TYPE(CLOCK) | |
17:11:51.497 | RECEIVE | ENDPOINT(Arturia BeatStep Pro Arturia BeatStepPro) TYPE(CONTROLCHANGE) CHANNEL(1) DATA1(54) DATA2(127) | |
17:11:51.529 | RECEIVE | ENDPOINT(Arturia BeatStep Pro Arturia BeatStepPro) TYPE(CLOCK) | |
17:11:51.546 | RECEIVE | ENDPOINT(Arturia BeatStep Pro Arturia BeatStepPro) TYPE(CLOCK) | |
17:11:51.563 | RECEIVE | ENDPOINT(Arturia BeatStep Pro Arturia BeatStepPro) TYPE(CLOCK) | |
17:11:51.580 | RECEIVE | ENDPOINT(Arturia BeatStep Pro Arturia BeatStepPro) TYPE(CLOCK) | |
17:11:51.596 | RECEIVE | ENDPOINT(Arturia BeatStep Pro Arturia BeatStepPro) TYPE(CONTROLCHANGE) CHANNEL(1) DATA1(54) DATA2(0) | |
17:11:51.613 | RECEIVE | ENDPOINT(Arturia BeatStep Pro Arturia BeatStepPro) TYPE(CLOCK) |
This file contains 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
// | |
// Created by Marek Bereza on 18/01/2024. | |
// | |
#pragma once | |
#include "Layer.h" | |
class Halo : public Layer { | |
public: |
This file contains 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
#ifndef WIN32 | |
#include <dlfcn.h> | |
#include <stdio.h> | |
#include <vector> | |
#if DEBUG | |
void* malloc(size_t sz) { | |
static void *(*libc_malloc)(size_t) = nullptr; | |
if(libc_malloc==nullptr) { |
This file contains 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/zsh | |
musicAppOpen=`osascript -e 'tell application "System Events" to (name of processes) contains "Music"'` | |
rm -f "/tmp/xcode-itunes.txt" | |
if [ $musicAppOpen = 'true' ]; then | |
musicState=`osascript -e 'tell application "Music" to player state as string'` | |
if [ $musicState = 'playing' ]; then | |
echo 'play' > '/tmp/xcode-itunes.txt' | |
osascript -e 'tell application "Music" to pause' |
This file contains 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 --git a/IPlug/AUv3/IPlugAUAudioUnit.h b/IPlug/AUv3/IPlugAUAudioUnit.h | |
index e9f179623..7678f1547 100644 | |
--- a/IPlug/AUv3/IPlugAUAudioUnit.h | |
+++ b/IPlug/AUv3/IPlugAUAudioUnit.h | |
@@ -29,6 +29,7 @@ | |
- (void) populateChannelCapabilitesArray: (NSMutableArray*) pArray; | |
- (NSInteger) width; | |
- (NSInteger) height; | |
+- (void) hostResized:(CGSize) newSize; | |
- (PLATFORM_VIEW*) openWindow: (PLATFORM_VIEW*) pParent; |
This file contains 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 "LiveAudio.h" | |
#include <math.h> | |
class MyLiveAudio : public LiveAudio { | |
public: | |
int pos = 0; | |
double ph = 0; | |
float period = 15050; |
This file contains 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 "concurrentqueue.h" | |
moodycamel::ConcurrentQueue<function<void()>> audioThreadQueue(100); | |
moodycamel::ConcurrentQueue<function<void()>> uiThreadQueue(100); | |
void runOnAudioThread(function<void()> fn) { | |
audioThreadQueue.enqueue(fn); | |
} | |
void pollAudioThreadQueue() { |
This file contains 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 "LiveAudio.h" | |
#include <math.h> | |
#include <stdlib.h> | |
class MyLiveAudio : public LiveAudio { | |
public: | |
float frac(float f) { | |
return f - (int)f; | |
} |
NewerOlder