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
for file in *;do grep -r -o $file __directory__;done | tr -s ':' | cut -d ':' -f2 | uniq |
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
Error: No available formula for pkg-config | |
Making install in M4 | |
make[2]: Nothing to be done for `install-exec-am'. | |
make[2]: Nothing to be done for `install-data-am'. | |
Making install in man | |
ln -s ./sndfile-metadata-get.1 sndfile-metadata-set.1 | |
ln -s ./sndfile-interleave.1 sndfile-deinterleave.1 | |
make[2]: Nothing to be done for `install-exec-am'. | |
test -z "/usr/local/Cellar/libsndfile/1.0.25/share/man/man1" || ../Cfg/install-sh -c -d "/usr/local/Cellar/libsndfile/1.0.25/share/man/man1" |
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
#if TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR | |
#define INPUT_BYTES_PER_SAMPLE sizeof(SInt16) | |
#define AU_IO_COMPONENT kAudioUnitSubType_RemoteIO | |
#define AU_DEFAULT_COMPONENT AU_IO_COMPONENT | |
#elif TARGET_OS_MAC | |
#define INPUT_BYTES_PER_SAMPLE sizeof(Float32) | |
#define AU_IO_COMPONENT kAudioUnitSubType_HALOutput | |
#define AU_DEFAULT_COMPONENT kAudioUnitSubType_DefaultOutput | |
#endif |
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
long fibonacci(long n) | |
{ | |
return n < 2 ? n : fibonacci(n - 1) + fibonacci(n - 2); | |
} | |
int main(int argc, char const **argv) | |
{ | |
double phi = fibonacci(45) / (double)fibonacci(44); | |
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
import Cocoa | |
import AVFoundation | |
// Setup engine and node instances | |
var engine = AVAudioEngine() | |
var delay = AVAudioUnitDelay() | |
var reverb = AVAudioUnitReverb() | |
var mixer = engine.mainMixerNode | |
var input = engine.inputNode |
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 "../JuceLibraryCode/JuceHeader.h" | |
int connect(const String& source) | |
{ | |
URL url(source); | |
ScopedPointer<WebInputStream> stream = url.createInputStream(false); | |
if (stream == nullptr) return -1; | |
return 0; | |
} |
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
#import <Foundation/Foundation.h> | |
@interface SimpleURL : NSObject { | |
NSURLSession *session; | |
} | |
-(void)connect:(NSString *)url; |
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
#import <Foundation/Foundation.h> | |
@interface SimpleURL : NSObject<NSURLSessionDataDelegate> { | |
NSURLSession *session; | |
dispatch_semaphore_t semaphore; | |
} | |
-(void)connectWithDelegate:(NSString *)url; |
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
import urllib.request | |
from pydub import AudioSegment | |
from pydub.playback import play | |
from pydub.generators import Sine | |
# Download an audio file | |
urllib.request.urlretrieve("https://tinyurl.com/wx9amev", "metallic-drums.wav") | |
# Load into PyDub | |
loop = AudioSegment.from_wav("metallic-drums.wav") |
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
class Test: | |
def __init__(self): | |
self.x = 1 | |
self.y = 2 | |
def introspect(obj): | |
for func in [type, id, dir, vars, callable]: | |
print("%s(%s):\t\t%s" % (func.__name__, introspect.__code__.co_varnames[0], func(obj))) | |
OlderNewer