Class: Csound
- Inherits:
-
Object
- Object
- Csound
- Defined in:
- lib/csound.rb
Instance Method Summary collapse
- #AddSpinSample(frame, channel, sample) ⇒ Object
- #Cleanup ⇒ Object
- #ClearSpin ⇒ Object
- #CloseLibrary(library) ⇒ Object
- #Compile(argc, argv) ⇒ Object
- #CompileArgs(argc, argv) ⇒ Object
- #CompileCsd(csd) ⇒ Object
- #CompileCsdText(csd) ⇒ Object
- #CompileOrc(str) ⇒ Object
- #CompileOrcAsync(str) ⇒ Object
- #CompileTree(root) ⇒ Object
- #CompileTreeAsync(root) ⇒ Object
- #CondSignal(condVar) ⇒ Object
- #CondWait(condVar, mutex) ⇒ Object
- #CreateCircularBuffer(numelem, elemsize) ⇒ Object
- #CreateGlobalVariable(name, nbytes) ⇒ Object
- #CreateMessageBuffer(toStdOut) ⇒ Object
- #DeleteChannelList(lst) ⇒ Object
- #DeleteTree(tree) ⇒ Object
- #DeleteUtilityList(lst) ⇒ Object
- #Destroy ⇒ Object
- #DestroyBarrier(barrier) ⇒ Object
- #DestroyCircularBuffer(circularbuffer) ⇒ Object
- #DestroyGlobalVariable(name) ⇒ Object
- #DestroyMessageBuffer ⇒ Object
- #DestroyMutex(mutex) ⇒ Object
- #DestroyThreadLock(lock) ⇒ Object
- #DisposeOpcodeList(opcodelist) ⇒ Object
- #EvalCode(str) ⇒ Object
- #FlushCircularBuffer(p) ⇒ Object
- #GetAPIVersion ⇒ Object
- #GetChannelDatasize(name) ⇒ Object
- #GetControlChannel(channel_name) ⇒ Object
- #GetCPUTime(arg_pointer) ⇒ Object
- #GetCurrentTimeSamples ⇒ Object
- #GetDebug ⇒ Object
- #GetEnv(name) ⇒ Object
- #GetFirstMessage ⇒ Object
- #GetFirstMessageAttr ⇒ Object
- #GetInputBufferSize ⇒ Object
- #GetKr ⇒ Object
- #GetKsmps ⇒ Object
- #GetMessageCnt ⇒ Object
- #GetMessageLevel ⇒ Object
- #GetNamedGEN(num, name, len) ⇒ Object
- #GetNchnls ⇒ Object
- #GetNchnlsInput ⇒ Object
- #GetOutputBufferSize ⇒ Object
- #GetParams(p) ⇒ Object
- #GetRandomSeedFromTime ⇒ Object
- #GetRealTime(arg_pointer) ⇒ Object
- #GetScoreOffsetSeconds ⇒ Object
- #GetScoreTime ⇒ Object
- #GetSizeOfMYFLT ⇒ Object
- #GetSpin ⇒ Object
- #GetSpout ⇒ Object
- #GetSpoutSample(frame, channel) ⇒ Object
- #GetSr ⇒ Object
- #GetTable(tablePtr, tableNum) ⇒ Object
- #GetTableArgs(argsPtr, tableNum) ⇒ Object
- #GetUtilityDescription(name) ⇒ Object
- #GetVersion ⇒ Object
-
#initialize(flags = 0, host_data = nil) ⇒ Csound
constructor
A new instance of Csound.
- #InitializeCscore(insco, outsco) ⇒ Object
- #InitTimerStruct(arg_pointer) ⇒ Object
- #InputMessage(message) ⇒ Object
- #InputMessageAsync(message) ⇒ Object
- #IsNamedGEN(num) ⇒ Object
- #IsScorePending ⇒ Object
- #JoinThread(thread) ⇒ Object
- #KeyPress(c) ⇒ Object
- #ListChannels(lst) ⇒ Object
- #ListUtilities ⇒ Object
- #LockMutex(mutex) ⇒ Object
- #LockMutexNoWait(mutex) ⇒ Object
- #Message(format) ⇒ Object
- #NewOpcodeList(opcodelist) ⇒ Object
- #NotifyThreadLock(lock) ⇒ Object
- #OpenLibrary(library, libraryPath) ⇒ Object
- #PeekCircularBuffer(buffer, out, items) ⇒ Object
- #Perform ⇒ Object
- #PerformBuffer ⇒ Object
- #PerformKsmps ⇒ Object
- #PopFirstMessage ⇒ Object
- #QueryGlobalVariable(name) ⇒ Object
- #QueryGlobalVariableNoCheck(name) ⇒ Object
- #RandMT(p) ⇒ Object
- #ReadCircularBuffer(buffer, out, items) ⇒ Object
- #ReadScore(str) ⇒ Object
- #ReadScoreAsync(str) ⇒ Object
- #Reset ⇒ Object
- #RewindScore ⇒ Object
- #RunCommand(argv, noWait) ⇒ Object
- #RunUtility(name, argc, argv) ⇒ Object
- #ScoreSort(inFile, outFile) ⇒ Object
-
#SetControlChannel(channel_name, value) ⇒ Object
Handwritten.
- #SetDebug(debug) ⇒ Object
- #SetGlobalEnv(name, value) ⇒ Object
- #SetHostData(hostData) ⇒ Object
- #SetInput(name) ⇒ Object
- #SetInputChannelCallback(cbk) ⇒ Object
- #SetIsGraphable(isGraphable) ⇒ Object
- #SetMessageLevel(messageLevel) ⇒ Object
- #SetMIDIFileInput(name) ⇒ Object
- #SetMIDIFileOutput(name) ⇒ Object
- #SetMIDIInput(name) ⇒ Object
- #SetMIDIModule(rtmodule) ⇒ Object
- #SetMIDIOutput(name) ⇒ Object
- #SetOption(option) ⇒ Object
- #SetOutputChannelCallback(cbk) ⇒ Object
- #SetParams(p) ⇒ Object
- #SetRTAudioModule(rtmodule) ⇒ Object
- #SetRtcloseCallback(arg_void) ⇒ Object
- #SetScoreOffsetSeconds(time) ⇒ Object
- #SetScorePending(pending) ⇒ Object
- #SetSpinSample(frame, channel, sample) ⇒ Object
- #SetYieldCallback(arg_int) ⇒ Object
- #Sleep(milliseconds) ⇒ Object
- #SpinLock(spinlock) ⇒ Object
- #SpinLockInit(spinlock) ⇒ Object
- #SpinTryLock(spinlock) ⇒ Object
- #SpinUnLock(spinlock) ⇒ Object
- #Start ⇒ Object
- #Stop ⇒ Object
- #StopUDPConsole ⇒ Object
- #SystemSr(val) ⇒ Object
- #TableCopyIn(table, src) ⇒ Object
- #TableCopyInAsync(table, src) ⇒ Object
- #TableCopyOut(table, dest) ⇒ Object
- #TableCopyOutAsync(table, dest) ⇒ Object
- #TableGet(table, index) ⇒ Object
- #TableLength(table) ⇒ Object
- #TableSet(table, index, value) ⇒ Object
- #UDPServerClose ⇒ Object
- #UDPServerStart(port) ⇒ Object
- #UDPServerStatus ⇒ Object
- #UnlockMutex(mutex) ⇒ Object
- #WaitBarrier(barrier) ⇒ Object
- #WaitThreadLock(lock, milliseconds) ⇒ Object
- #WaitThreadLockNoTimeout(lock) ⇒ Object
- #WriteCirularBuffer(p, inp, items) ⇒ Object
Constructor Details
#initialize(flags = 0, host_data = nil) ⇒ Csound
Returns a new instance of Csound.
252 253 254 |
# File 'lib/csound.rb', line 252 def initialize(flags=0, host_data=nil) @csound = CsoundModule.csoundCreate(host_data) end |
Instance Method Details
#AddSpinSample(frame, channel, sample) ⇒ Object
784 785 786 |
# File 'lib/csound.rb', line 784 def AddSpinSample(frame, channel, sample) CsoundModule.csoundAddSpinSample(@csound,frame,channel,sample) end |
#Cleanup ⇒ Object
332 333 334 |
# File 'lib/csound.rb', line 332 def Cleanup() return CsoundModule.csoundCleanup(@csound) end |
#ClearSpin ⇒ Object
440 441 442 |
# File 'lib/csound.rb', line 440 def ClearSpin() return CsoundModule.csoundClearSpin(@csound) end |
#CloseLibrary(library) ⇒ Object
728 729 730 |
# File 'lib/csound.rb', line 728 def CloseLibrary(library) return CsoundModule.csoundCloseLibrary(library) end |
#Compile(argc, argv) ⇒ Object
304 305 306 |
# File 'lib/csound.rb', line 304 def Compile(argc, argv) return CsoundModule.csoundCompile(argc, argv) end |
#CompileArgs(argc, argv) ⇒ Object
296 297 298 |
# File 'lib/csound.rb', line 296 def CompileArgs(argc, argv) return CsoundModule.csoundCompileArgs(argc, argv) end |
#CompileCsd(csd) ⇒ Object
308 309 310 |
# File 'lib/csound.rb', line 308 def CompileCsd(csd) return CsoundModule.csoundCompileCsd(@csound, csd) end |
#CompileCsdText(csd) ⇒ Object
312 313 314 |
# File 'lib/csound.rb', line 312 def CompileCsdText(csd) return CsoundModule.csoundCompileCsdText(@csound, csd) end |
#CompileOrc(str) ⇒ Object
280 281 282 |
# File 'lib/csound.rb', line 280 def CompileOrc(str) return CsoundModule.csoundCompileOrc(@csound, str) end |
#CompileOrcAsync(str) ⇒ Object
284 285 286 |
# File 'lib/csound.rb', line 284 def CompileOrcAsync(str) return CsoundModule.csoundCompileOrcAsync(@csound, str) end |
#CompileTree(root) ⇒ Object
268 269 270 |
# File 'lib/csound.rb', line 268 def CompileTree(root) return CsoundModule.csoundCompileTree(@csound, root) end |
#CompileTreeAsync(root) ⇒ Object
272 273 274 |
# File 'lib/csound.rb', line 272 def CompileTreeAsync(root) return CsoundModule.csoundCompileTreeAsync(@csound, root) end |
#CondSignal(condVar) ⇒ Object
656 657 658 |
# File 'lib/csound.rb', line 656 def CondSignal(condVar) return CsoundModule.csoundCondSignal(condVar) end |
#CondWait(condVar, mutex) ⇒ Object
652 653 654 |
# File 'lib/csound.rb', line 652 def CondWait(condVar, mutex) return CsoundModule.csoundCondWait(condVar, mutex) end |
#CreateCircularBuffer(numelem, elemsize) ⇒ Object
820 821 822 |
# File 'lib/csound.rb', line 820 def CreateCircularBuffer(numelem, elemsize) return CsoundModule.csoundCreateCircularBuffer(@csound,numelem,elemsize) end |
#CreateGlobalVariable(name, nbytes) ⇒ Object
796 797 798 |
# File 'lib/csound.rb', line 796 def CreateGlobalVariable(name, nbytes) return CsoundModule.csoundCreateGlobalVariable(@csound, name, nbytes) end |
#CreateMessageBuffer(toStdOut) ⇒ Object
504 505 506 |
# File 'lib/csound.rb', line 504 def CreateMessageBuffer(toStdOut) return CsoundModule.csoundCreateMessageBuffer(@csound, toStdOut) end |
#DeleteChannelList(lst) ⇒ Object
528 529 530 |
# File 'lib/csound.rb', line 528 def DeleteChannelList(lst) return CsoundModule.csoundDeleteChannelList(lst) end |
#DeleteTree(tree) ⇒ Object
276 277 278 |
# File 'lib/csound.rb', line 276 def DeleteTree(tree) return CsoundModule.csoundDeleteTree(@csound, tree) end |
#DeleteUtilityList(lst) ⇒ Object
708 709 710 |
# File 'lib/csound.rb', line 708 def DeleteUtilityList(lst) return CsoundModule.csoundDeleteUtilityList(lst) end |
#Destroy ⇒ Object
256 257 258 |
# File 'lib/csound.rb', line 256 def Destroy() return CsoundModule.csoundDestroy(@csound) end |
#DestroyBarrier(barrier) ⇒ Object
644 645 646 |
# File 'lib/csound.rb', line 644 def DestroyBarrier() return CsoundModule.csoundDestroyBarrier() end |
#DestroyCircularBuffer(circularbuffer) ⇒ Object
720 721 722 |
# File 'lib/csound.rb', line 720 def DestroyCircularBuffer(circularbuffer) return CsoundModule.csoundDestroyCircularBuffer(@csound, circularbuffer) end |
#DestroyGlobalVariable(name) ⇒ Object
704 705 706 |
# File 'lib/csound.rb', line 704 def DestroyGlobalVariable(name) return CsoundModule.csoundDestroyGlobalVariable(name) end |
#DestroyMessageBuffer ⇒ Object
520 521 522 |
# File 'lib/csound.rb', line 520 def DestroyMessageBuffer() return CsoundModule.csoundDestroyMessageBuffer(@csound) end |
#DestroyMutex(mutex) ⇒ Object
640 641 642 |
# File 'lib/csound.rb', line 640 def DestroyMutex(mutex) return CsoundModule.csoundDestroyMutex(mutex) end |
#DestroyThreadLock(lock) ⇒ Object
624 625 626 |
# File 'lib/csound.rb', line 624 def DestroyThreadLock(lock) return CsoundModule.csoundDestroyThreadLock(lock) end |
#DisposeOpcodeList(opcodelist) ⇒ Object
600 601 602 |
# File 'lib/csound.rb', line 600 def DisposeOpcodeList(opcodelist) return CsoundModule.csoundDisposeOpcodeList(opcodelist) end |
#EvalCode(str) ⇒ Object
288 289 290 |
# File 'lib/csound.rb', line 288 def EvalCode(str) return CsoundModule.csoundEvalCode(@csound, str) end |
#FlushCircularBuffer(p) ⇒ Object
716 717 718 |
# File 'lib/csound.rb', line 716 def FlushCircularBuffer(p) return CsoundModule.csoundFlushCircularBuffer(@csound, p) end |
#GetAPIVersion ⇒ Object
264 265 266 |
# File 'lib/csound.rb', line 264 def GetAPIVersion() return CsoundModule.csoundGetAPIVersion() end |
#GetChannelDatasize(name) ⇒ Object
532 533 534 |
# File 'lib/csound.rb', line 532 def GetChannelDatasize(name) return CsoundModule.csoundGetChannelDatasize(@csound, name) end |
#GetControlChannel(channel_name) ⇒ Object
738 739 740 |
# File 'lib/csound.rb', line 738 def GetControlChannel(channel_name) return CsoundModule.csoundGetControlChannel(@csound, channel_name, nil) end |
#GetCPUTime(arg_pointer) ⇒ Object
692 693 694 |
# File 'lib/csound.rb', line 692 def GetCPUTime(arg_pointer) return CsoundModule.csoundGetCPUTime(arg_pointer) end |
#GetCurrentTimeSamples ⇒ Object
372 373 374 |
# File 'lib/csound.rb', line 372 def GetCurrentTimeSamples() return CsoundModule.csoundGetCurrentTimeSamples(@csound) end |
#GetDebug ⇒ Object
396 397 398 |
# File 'lib/csound.rb', line 396 def GetDebug() return CsoundModule.csoundGetDebug(@csound) end |
#GetEnv(name) ⇒ Object
792 793 794 |
# File 'lib/csound.rb', line 792 def GetEnv(name) return CsoundModule.csoundGetEnv(@csound,name) end |
#GetFirstMessage ⇒ Object
760 761 762 |
# File 'lib/csound.rb', line 760 def GetFirstMessage() return CsoundModule.csoundGetFirstMessage(@csound) end |
#GetFirstMessageAttr ⇒ Object
508 509 510 |
# File 'lib/csound.rb', line 508 def GetFirstMessageAttr() return CsoundModule.csoundGetFirstMessageAttr(@csound) end |
#GetInputBufferSize ⇒ Object
432 433 434 |
# File 'lib/csound.rb', line 432 def GetInputBufferSize() return CsoundModule.csoundGetInputBufferSize(@csound) end |
#GetKr ⇒ Object
356 357 358 |
# File 'lib/csound.rb', line 356 def GetKr() return CsoundModule.csoundGetKr(@csound) end |
#GetKsmps ⇒ Object
360 361 362 |
# File 'lib/csound.rb', line 360 def GetKsmps() return CsoundModule.csoundGetKsmps(@csound) end |
#GetMessageCnt ⇒ Object
516 517 518 |
# File 'lib/csound.rb', line 516 def GetMessageCnt() return CsoundModule.csoundGetMessageCnt(@csound) end |
#GetMessageLevel ⇒ Object
496 497 498 |
# File 'lib/csound.rb', line 496 def GetMessageLevel() return CsoundModule.csoundGetMessageLevel(@csound) end |
#GetNamedGEN(num, name, len) ⇒ Object
588 589 590 |
# File 'lib/csound.rb', line 588 def GetNamedGEN(num, name, len) return CsoundModule.csoundGetNamedGEN(@csound, num, name, len) end |
#GetNchnls ⇒ Object
364 365 366 |
# File 'lib/csound.rb', line 364 def GetNchnls() return CsoundModule.csoundGetNchnls(@csound) end |
#GetNchnlsInput ⇒ Object
368 369 370 |
# File 'lib/csound.rb', line 368 def GetNchnlsInput() return CsoundModule.csoundGetNchnlsInput(@csound) end |
#GetOutputBufferSize ⇒ Object
436 437 438 |
# File 'lib/csound.rb', line 436 def GetOutputBufferSize() return CsoundModule.csoundGetOutputBufferSize(@csound) end |
#GetParams(p) ⇒ Object
392 393 394 |
# File 'lib/csound.rb', line 392 def GetParams(p) return CsoundModule.csoundGetParams(@csound, p) end |
#GetRandomSeedFromTime ⇒ Object
696 697 698 |
# File 'lib/csound.rb', line 696 def GetRandomSeedFromTime() return CsoundModule.csoundGetRandomSeedFromTime() end |
#GetRealTime(arg_pointer) ⇒ Object
688 689 690 |
# File 'lib/csound.rb', line 688 def GetRealTime(arg_pointer) return CsoundModule.csoundGetRealTime(arg_pointer) end |
#GetScoreOffsetSeconds ⇒ Object
476 477 478 |
# File 'lib/csound.rb', line 476 def GetScoreOffsetSeconds() return CsoundModule.csoundGetScoreOffsetSeconds(@csound) end |
#GetScoreTime ⇒ Object
464 465 466 |
# File 'lib/csound.rb', line 464 def GetScoreTime() return CsoundModule.csoundGetScoreTime(@csound) end |
#GetSizeOfMYFLT ⇒ Object
376 377 378 |
# File 'lib/csound.rb', line 376 def GetSizeOfMYFLT() return CsoundModule.csoundGetSizeOfMYFLT() end |
#GetSpin ⇒ Object
776 777 778 |
# File 'lib/csound.rb', line 776 def GetSpin return CsoundModule.csoundGetSpin(@csound) end |
#GetSpout ⇒ Object
768 769 770 |
# File 'lib/csound.rb', line 768 def GetSpout return CsoundModule.csoundGetSpout(@csound) end |
#GetSpoutSample(frame, channel) ⇒ Object
444 445 446 |
# File 'lib/csound.rb', line 444 def GetSpoutSample(frame, channel) return CsoundModule.csoundGetSpoutSample(@csound, frame, channel) end |
#GetSr ⇒ Object
764 765 766 |
# File 'lib/csound.rb', line 764 def GetSr return CsoundModule.csoundGetSr(@csound) end |
#GetTable(tablePtr, tableNum) ⇒ Object
576 577 578 |
# File 'lib/csound.rb', line 576 def GetTable(tablePtr, tableNum) return CsoundModule.csoundGetTable(tablePtr, tableNum) end |
#GetTableArgs(argsPtr, tableNum) ⇒ Object
580 581 582 |
# File 'lib/csound.rb', line 580 def GetTableArgs(argsPtr, tableNum) return CsoundModule.csoundGetTableArgs(@csound, argsPtr, tableNum) end |
#GetUtilityDescription(name) ⇒ Object
816 817 818 |
# File 'lib/csound.rb', line 816 def GetUtilityDescription(name) return CsoundModule.csoundGetUtilityDescription(@csound,name) end |
#GetVersion ⇒ Object
260 261 262 |
# File 'lib/csound.rb', line 260 def GetVersion() return CsoundModule.csoundGetVersion() end |
#InitializeCscore(insco, outsco) ⇒ Object
292 293 294 |
# File 'lib/csound.rb', line 292 def InitializeCscore(insco, outsco) return CsoundModule.csoundInitializeCscore(insco, outsco) end |
#InitTimerStruct(arg_pointer) ⇒ Object
684 685 686 |
# File 'lib/csound.rb', line 684 def InitTimerStruct(arg_pointer) return CsoundModule.csoundInitTimerStruct(arg_pointer) end |
#InputMessage(message) ⇒ Object
536 537 538 |
# File 'lib/csound.rb', line 536 def InputMessage() return CsoundModule.csoundInputMessage() end |
#InputMessageAsync(message) ⇒ Object
540 541 542 |
# File 'lib/csound.rb', line 540 def InputMessageAsync() return CsoundModule.csoundInputMessageAsync() end |
#IsNamedGEN(num) ⇒ Object
584 585 586 |
# File 'lib/csound.rb', line 584 def IsNamedGEN(num) return CsoundModule.csoundIsNamedGEN(@csound, num) end |
#IsScorePending ⇒ Object
468 469 470 |
# File 'lib/csound.rb', line 468 def IsScorePending() return CsoundModule.csoundIsScorePending(@csound) end |
#JoinThread(thread) ⇒ Object
608 609 610 |
# File 'lib/csound.rb', line 608 def JoinThread(thread) return CsoundModule.csoundJoinThread(thread) end |
#KeyPress(c) ⇒ Object
544 545 546 |
# File 'lib/csound.rb', line 544 def KeyPress(c) return CsoundModule.csoundKeyPress(c) end |
#ListChannels(lst) ⇒ Object
524 525 526 |
# File 'lib/csound.rb', line 524 def ListChannels(lst) return CsoundModule.csoundListChannels(@csound,lst) end |
#ListUtilities ⇒ Object
812 813 814 |
# File 'lib/csound.rb', line 812 def ListUtilities return CsoundModule.csoundListUtilities(@csound) end |
#LockMutex(mutex) ⇒ Object
628 629 630 |
# File 'lib/csound.rb', line 628 def LockMutex(mutex) return CsoundModule.csoundLockMutex(mutex) end |
#LockMutexNoWait(mutex) ⇒ Object
632 633 634 |
# File 'lib/csound.rb', line 632 def LockMutexNoWait(mutex) return CsoundModule.csoundLockMutexNoWait(mutex) end |
#Message(format) ⇒ Object
492 493 494 |
# File 'lib/csound.rb', line 492 def Message(format) return CsoundModule.csoundMessage(format) end |
#NewOpcodeList(opcodelist) ⇒ Object
596 597 598 |
# File 'lib/csound.rb', line 596 def NewOpcodeList(opcodelist) return CsoundModule.csoundNewOpcodeList(opcodelist) end |
#NotifyThreadLock(lock) ⇒ Object
620 621 622 |
# File 'lib/csound.rb', line 620 def NotifyThreadLock(lock) return CsoundModule.csoundNotifyThreadLock(lock) end |
#OpenLibrary(library, libraryPath) ⇒ Object
724 725 726 |
# File 'lib/csound.rb', line 724 def OpenLibrary(library, libraryPath) return CsoundModule.csoundOpenLibrary(library, libraryPath) end |
#PeekCircularBuffer(buffer, out, items) ⇒ Object
828 829 830 |
# File 'lib/csound.rb', line 828 def PeekCircularBuffer(buffer, out, items) return CsoundModule.csoundPeekCircularBuffer(@csound, buffer, out, items) end |
#Perform ⇒ Object
316 317 318 |
# File 'lib/csound.rb', line 316 def Perform() return CsoundModule.csoundPerform(@csound) end |
#PerformBuffer ⇒ Object
324 325 326 |
# File 'lib/csound.rb', line 324 def PerformBuffer() return CsoundModule.csoundPerformBuffer(@csound) end |
#PerformKsmps ⇒ Object
320 321 322 |
# File 'lib/csound.rb', line 320 def PerformKsmps() return CsoundModule.csoundPerformKsmps(@csound) end |
#PopFirstMessage ⇒ Object
512 513 514 |
# File 'lib/csound.rb', line 512 def PopFirstMessage() CsoundModule.csoundPopFirstMessage(@csound) end |
#QueryGlobalVariable(name) ⇒ Object
800 801 802 |
# File 'lib/csound.rb', line 800 def QueryGlobalVariable(name) return CsoundModule.csoundQueryGlobalVariable(@csound, name) end |
#QueryGlobalVariableNoCheck(name) ⇒ Object
804 805 806 |
# File 'lib/csound.rb', line 804 def QueryGlobalVariableNoCheck(name) return CsoundModule.csoundQueryGlobalVariableNoCheck(@csound, name) end |
#RandMT(p) ⇒ Object
712 713 714 |
# File 'lib/csound.rb', line 712 def RandMT(p) return CsoundModule.csoundRandMT(p) end |
#ReadCircularBuffer(buffer, out, items) ⇒ Object
824 825 826 |
# File 'lib/csound.rb', line 824 def ReadCircularBuffer(buffer, out, items) return CsoundModule.csoundReadCircularBuffer(@csound,buffer,out,items) end |
#ReadScore(str) ⇒ Object
456 457 458 |
# File 'lib/csound.rb', line 456 def ReadScore(str) return CsoundModule.csoundReadScore(@csound, str) end |
#ReadScoreAsync(str) ⇒ Object
460 461 462 |
# File 'lib/csound.rb', line 460 def ReadScoreAsync(str) return CsoundModule.csoundReadScoreAsync(@csound, str) end |
#Reset ⇒ Object
336 337 338 |
# File 'lib/csound.rb', line 336 def Reset() return CsoundModule.csoundReset(@csound) end |
#RewindScore ⇒ Object
484 485 486 |
# File 'lib/csound.rb', line 484 def RewindScore() return CsoundModule.csoundRewindScore(@csound) end |
#RunCommand(argv, noWait) ⇒ Object
680 681 682 |
# File 'lib/csound.rb', line 680 def RunCommand(argv, noWait) return CsoundModule.csoundRunCommand(argv, noWait) end |
#RunUtility(name, argc, argv) ⇒ Object
808 809 810 |
# File 'lib/csound.rb', line 808 def RunUtility(name, argc, argv) return CsoundModule.csoundRunUtility(@csound, argc, argv) end |
#ScoreSort(inFile, outFile) ⇒ Object
488 489 490 |
# File 'lib/csound.rb', line 488 def ScoreSort(inFile, outFile) return CsoundModule.csoundScoreSort(inFile, outFile) end |
#SetControlChannel(channel_name, value) ⇒ Object
Handwritten
734 735 736 |
# File 'lib/csound.rb', line 734 def SetControlChannel(channel_name, value) CsoundModule.csoundSetControlChannel(@csound, channel_name, value) end |
#SetDebug(debug) ⇒ Object
400 401 402 |
# File 'lib/csound.rb', line 400 def SetDebug(debug) return CsoundModule.csoundSetDebug(debug) end |
#SetGlobalEnv(name, value) ⇒ Object
700 701 702 |
# File 'lib/csound.rb', line 700 def SetGlobalEnv(name, value) return CsoundModule.csoundSetGlobalEnv(name, value) end |
#SetHostData(hostData) ⇒ Object
380 381 382 |
# File 'lib/csound.rb', line 380 def SetHostData(hostData) return CsoundModule.csoundSetHostData(hostData) end |
#SetInput(name) ⇒ Object
408 409 410 |
# File 'lib/csound.rb', line 408 def SetInput(name) return CsoundModule.csoundSetInput(@csound, name) end |
#SetInputChannelCallback(cbk) ⇒ Object
754 755 756 757 758 |
# File 'lib/csound.rb', line 754 def SetInputChannelCallback(cbk) c_cbk = FFI::Function.new(:void, [:pointer,:string,:pointer,CS_TYPE.by_ref]) do |csound,channel_name,valueptr, channel_type| end CsoundModule.csoundSetInputChannelCallback(@csound, c_cbk) end |
#SetIsGraphable(isGraphable) ⇒ Object
592 593 594 |
# File 'lib/csound.rb', line 592 def SetIsGraphable(isGraphable) return CsoundModule.csoundSetIsGraphable(isGraphable) end |
#SetMessageLevel(messageLevel) ⇒ Object
500 501 502 |
# File 'lib/csound.rb', line 500 def SetMessageLevel() CsoundModule.csoundSetMessageLevel() end |
#SetMIDIFileInput(name) ⇒ Object
416 417 418 |
# File 'lib/csound.rb', line 416 def SetMIDIFileInput(name) return CsoundModule.csoundSetMIDIFileInput(@csound, name) end |
#SetMIDIFileOutput(name) ⇒ Object
424 425 426 |
# File 'lib/csound.rb', line 424 def SetMIDIFileOutput(name) return CsoundModule.csoundSetMIDIFileOutput(@csound, name) end |
#SetMIDIInput(name) ⇒ Object
412 413 414 |
# File 'lib/csound.rb', line 412 def SetMIDIInput(name) return CsoundModule.csoundSetMIDIInput(@csound, name) end |
#SetMIDIModule(rtmodule) ⇒ Object
452 453 454 |
# File 'lib/csound.rb', line 452 def SetMIDIModule(rtmodule) return CsoundModule.csoundSetMIDIModule(@csound, rtmodule) end |
#SetMIDIOutput(name) ⇒ Object
420 421 422 |
# File 'lib/csound.rb', line 420 def SetMIDIOutput(name) return CsoundModule.csoundSetMIDIOutput(@csound, name) end |
#SetOption(option) ⇒ Object
384 385 386 |
# File 'lib/csound.rb', line 384 def SetOption(option) return CsoundModule.csoundSetOption(@csound, option) end |
#SetOutputChannelCallback(cbk) ⇒ Object
742 743 744 745 746 747 748 749 750 751 752 |
# File 'lib/csound.rb', line 742 def SetOutputChannelCallback(cbk) # Is this function destroyed someday ? c_cbk = FFI::Function.new(:void, [:pointer,:string,:pointer,CS_TYPE.by_ref]) do |csound,channel_name,valueptr, channel_type| if(channel_type[:varTypeName] == "k") then cbk(channel_name, valueptr.read(FFI::Type::DOUBLE), channel_type[:varTypeName]) elsif(channel_type[:varTypeName] == "S") then cbk(channel_name, valueptr.read_string, channel_type[:varTypeName]) end end CsoundModule.csoundSetOutputChannelCallback(@csound, c_cbk) end |
#SetParams(p) ⇒ Object
388 389 390 |
# File 'lib/csound.rb', line 388 def SetParams(p) return CsoundModule.csoundSetParams(@csound, p) end |
#SetRTAudioModule(rtmodule) ⇒ Object
428 429 430 |
# File 'lib/csound.rb', line 428 def SetRTAudioModule(rtmodule) return CsoundModule.csoundSetRTAudioModule(@csound, rtmodule) end |
#SetRtcloseCallback(arg_void) ⇒ Object
448 449 450 |
# File 'lib/csound.rb', line 448 def SetRtcloseCallback(arg_void) return CsoundModule.csoundSetRtcloseCallback(arg_void) end |
#SetScoreOffsetSeconds(time) ⇒ Object
480 481 482 |
# File 'lib/csound.rb', line 480 def SetScoreOffsetSeconds(time) return CsoundModule.csoundSetScoreOffsetSeconds(time) end |
#SetScorePending(pending) ⇒ Object
472 473 474 |
# File 'lib/csound.rb', line 472 def SetScorePending(pending) return CsoundModule.csoundSetScorePending(pending) end |
#SetSpinSample(frame, channel, sample) ⇒ Object
788 789 790 |
# File 'lib/csound.rb', line 788 def SetSpinSample(frame, channel, sample) CsoundModule.csoundSetSpinSample(@csound, frame, channel, sample) end |
#SetYieldCallback(arg_int) ⇒ Object
604 605 606 |
# File 'lib/csound.rb', line 604 def SetYieldCallback(arg_int) return CsoundModule.csoundSetYieldCallback(arg_int) end |
#Sleep(milliseconds) ⇒ Object
660 661 662 |
# File 'lib/csound.rb', line 660 def Sleep(milliseconds) return CsoundModule.csoundSleep(milliseconds) end |
#SpinLock(spinlock) ⇒ Object
668 669 670 |
# File 'lib/csound.rb', line 668 def SpinLock(spinlock) return CsoundModule.csoundSpinLock(spinlock) end |
#SpinLockInit(spinlock) ⇒ Object
664 665 666 |
# File 'lib/csound.rb', line 664 def SpinLockInit(spinlock) return CsoundModule.csoundSpinLockInit(spinlock) end |
#SpinTryLock(spinlock) ⇒ Object
672 673 674 |
# File 'lib/csound.rb', line 672 def SpinTryLock(spinlock) return CsoundModule.csoundSpinTryLock(spinlock) end |
#SpinUnLock(spinlock) ⇒ Object
676 677 678 |
# File 'lib/csound.rb', line 676 def SpinUnLock(spinlock) return CsoundModule.csoundSpinUnLock(spinlock) end |
#Start ⇒ Object
300 301 302 |
# File 'lib/csound.rb', line 300 def Start() return CsoundModule.csoundStart(@csound) end |
#Stop ⇒ Object
328 329 330 |
# File 'lib/csound.rb', line 328 def Stop() return CsoundModule.csoundStop(@csound) end |
#StopUDPConsole ⇒ Object
352 353 354 |
# File 'lib/csound.rb', line 352 def StopUDPConsole() return CsoundModule.csoundStopUDPConsole(@csound) end |
#SystemSr(val) ⇒ Object
404 405 406 |
# File 'lib/csound.rb', line 404 def SystemSr(val) return CsoundModule.csoundSystemSr(@csound, val) end |
#TableCopyIn(table, src) ⇒ Object
568 569 570 |
# File 'lib/csound.rb', line 568 def TableCopyIn(table, src) return CsoundModule.csoundTableCopyIn(@csound, table, src) end |
#TableCopyInAsync(table, src) ⇒ Object
572 573 574 |
# File 'lib/csound.rb', line 572 def TableCopyInAsync(table, src) return CsoundModule.csoundTableCopyInAsync(@csound, table, src) end |
#TableCopyOut(table, dest) ⇒ Object
560 561 562 |
# File 'lib/csound.rb', line 560 def TableCopyOut(table, dest) return CsoundModule.csoundTableCopyOut(@csound, table, dest) end |
#TableCopyOutAsync(table, dest) ⇒ Object
564 565 566 |
# File 'lib/csound.rb', line 564 def TableCopyOutAsync(table, dest) return CsoundModule.csoundTableCopyOutAsync(@csound, table, dest) end |
#TableGet(table, index) ⇒ Object
552 553 554 |
# File 'lib/csound.rb', line 552 def TableGet(table, index) return CsoundModule.csoundTableGet(table, index) end |
#TableLength(table) ⇒ Object
548 549 550 |
# File 'lib/csound.rb', line 548 def TableLength(table) return CsoundModule.csoundTableLength(table) end |
#TableSet(table, index, value) ⇒ Object
556 557 558 |
# File 'lib/csound.rb', line 556 def TableSet(table, index, value) return CsoundModule.csoundTableSet(table, index, value) end |
#UDPServerClose ⇒ Object
348 349 350 |
# File 'lib/csound.rb', line 348 def UDPServerClose() return CsoundModule.csoundUDPServerClose(@csound) end |
#UDPServerStart(port) ⇒ Object
340 341 342 |
# File 'lib/csound.rb', line 340 def UDPServerStart(port) return CsoundModule.csoundUDPServerStart(@csound, port) end |
#UDPServerStatus ⇒ Object
344 345 346 |
# File 'lib/csound.rb', line 344 def UDPServerStatus() return CsoundModule.csoundUDPServerStatus(@csound) end |
#UnlockMutex(mutex) ⇒ Object
636 637 638 |
# File 'lib/csound.rb', line 636 def UnlockMutex(mutex) return CsoundModule.csoundUnlockMutex(mutex) end |
#WaitBarrier(barrier) ⇒ Object
648 649 650 |
# File 'lib/csound.rb', line 648 def WaitBarrier() return CsoundModule.csoundWaitBarrier() end |
#WaitThreadLock(lock, milliseconds) ⇒ Object
612 613 614 |
# File 'lib/csound.rb', line 612 def WaitThreadLock(lock, milliseconds) return CsoundModule.csoundWaitThreadLock(lock, milliseconds) end |
#WaitThreadLockNoTimeout(lock) ⇒ Object
616 617 618 |
# File 'lib/csound.rb', line 616 def WaitThreadLockNoTimeout(lock) return CsoundModule.csoundWaitThreadLockNoTimeout(lock) end |
#WriteCirularBuffer(p, inp, items) ⇒ Object
832 833 834 |
# File 'lib/csound.rb', line 832 def WriteCirularBuffer(p,inp,items) return CsoundModule.csoundWriteCircularBuffer(@csound,p,inp,items) end |