展覧会の提案を記述する方法
akalogue | Masayuki Akamatsu /
iOSCore AudioOS XMoMu: A Mobile Music ToolkitCCRMASmule
CCRMASmuleOcarinaiOS2CCRMASTK (Synthesize Toolkit) MoMu…
MoMuMoMuC++MoMuObjective-C++
(1) MoMu
mo_audio.h
mo_audio.mm
mo_def.h
(2)
AudioToolbox.framework
(3) MoMuViewController .m .mm
(4) ViewController.mm
#import "mo_audio.h" #define SRATE 44100 #define FRAMESIZE 128 #define NUMCHANNELS 2
(5) viewDidLoad
MoAudio::init(SRATE, FRAMESIZE, NUMCHANNELS ); MoAudio::start(audioCallback, nil);
(6) C@implementation@end
誰が羽のマントの著者であるvoid audioCallback(Float32 *buffer, UInt32 framesize, void *userData) { }
MoMu
MoMubufferbuffer
buffer0
Float32 *data = buffer; for (int i=0; iアートの提案を記述する方法bufferFloat32framesize2112…-1.01.0start2userDatanil
Float32 *data = buffer; for (int i=0; iあなたが幸せに毎日行う10のこと5; *data++ = *data * value; // *data++ = *data * value; // } Float32 *data = buffer; Float32 frequency = 440.0; Float32 phaseDelta = 2.0 * M_PI * frequency / SRATE; static Float32 phase; for (int i=0; i Float32 *data = buffer; Float32 frequency = 8.0; Float32 phaseDelta = 2.0 * M_PI * frequency / SRATE; static Float32 phase; for (int i=0; i
11
Float32 *data = buffer; static Float32 samples[SRATE]; static long index = 0; static bool isSampling = YES; for (int i=0; i= SRATE) { index = 0; isSampling = !isSampling; } }
Music DSP Code Archive
0 コメント:
コメントを投稿