class Csound
Public Class Methods
new(flags=0, host_data=nil)
click to toggle source
# File lib/csound.rb, line 209 def initialize(flags=0, host_data=nil) @csound = CsoundModule.csoundCreate(host_data) end
Public Instance Methods
AddSpinSample(frame, channel, sample)
click to toggle source
# File lib/csound.rb, line 719 def AddSpinSample(frame, channel, sample) CsoundModule.csoundAddSpinSample(@csound,frame,channel,sample) end
Cleanup()
click to toggle source
# File lib/csound.rb, line 289 def Cleanup() return CsoundModule.csoundCleanup(@csound) end
ClearSpin()
click to toggle source
# File lib/csound.rb, line 397 def ClearSpin() return CsoundModule.csoundClearSpin(@csound) end
CloseLibrary(library)
click to toggle source
# File lib/csound.rb, line 685 def CloseLibrary(library) return CsoundModule.csoundCloseLibrary(library) end
Compile(argc, argv)
click to toggle source
# File lib/csound.rb, line 261 def Compile(argc, argv) return CsoundModule.csoundCompile(argc, argv) end
CompileArgs(argc, argv)
click to toggle source
# File lib/csound.rb, line 253 def CompileArgs(argc, argv) return CsoundModule.csoundCompileArgs(argc, argv) end
CompileCsd(csd)
click to toggle source
# File lib/csound.rb, line 265 def CompileCsd(csd) return CsoundModule.csoundCompileCsd(@csound, csd) end
CompileCsdText(csd)
click to toggle source
# File lib/csound.rb, line 269 def CompileCsdText(csd) return CsoundModule.csoundCompileCsdText(@csound, csd) end
CompileOrc(str)
click to toggle source
# File lib/csound.rb, line 237 def CompileOrc(str) return CsoundModule.csoundCompileOrc(@csound, str) end
CompileOrcAsync(str)
click to toggle source
# File lib/csound.rb, line 241 def CompileOrcAsync(str) return CsoundModule.csoundCompileOrcAsync(@csound, str) end
CompileTree(root)
click to toggle source
# File lib/csound.rb, line 225 def CompileTree(root) return CsoundModule.csoundCompileTree(@csound, root) end
CompileTreeAsync(root)
click to toggle source
# File lib/csound.rb, line 229 def CompileTreeAsync(root) return CsoundModule.csoundCompileTreeAsync(@csound, root) end
CondSignal(condVar)
click to toggle source
# File lib/csound.rb, line 613 def CondSignal(condVar) return CsoundModule.csoundCondSignal(condVar) end
CondWait(condVar, mutex)
click to toggle source
# File lib/csound.rb, line 609 def CondWait(condVar, mutex) return CsoundModule.csoundCondWait(condVar, mutex) end
CreateCircularBuffer(numelem, elemsize)
click to toggle source
# File lib/csound.rb, line 755 def CreateCircularBuffer(numelem, elemsize) return CsoundModule.csoundCreateCircularBuffer(@csound,numelem,elemsize) end
CreateGlobalVariable(name, nbytes)
click to toggle source
# File lib/csound.rb, line 731 def CreateGlobalVariable(name, nbytes) return CsoundModule.csoundCreateGlobalVariable(@csound, name, nbytes) end
CreateMessageBuffer(toStdOut)
click to toggle source
# File lib/csound.rb, line 461 def CreateMessageBuffer(toStdOut) return CsoundModule.csoundCreateMessageBuffer(@csound, toStdOut) end
DeleteChannelList(lst)
click to toggle source
# File lib/csound.rb, line 485 def DeleteChannelList(lst) return CsoundModule.csoundDeleteChannelList(lst) end
DeleteTree(tree)
click to toggle source
# File lib/csound.rb, line 233 def DeleteTree(tree) return CsoundModule.csoundDeleteTree(@csound, tree) end
DeleteUtilityList(lst)
click to toggle source
# File lib/csound.rb, line 665 def DeleteUtilityList(lst) return CsoundModule.csoundDeleteUtilityList(lst) end
Destroy()
click to toggle source
# File lib/csound.rb, line 213 def Destroy() return CsoundModule.csoundDestroy(@csound) end
DestroyBarrier(barrier)
click to toggle source
# File lib/csound.rb, line 601 def DestroyBarrier(barrier) return CsoundModule.csoundDestroyBarrier(barrier) end
DestroyCircularBuffer(circularbuffer)
click to toggle source
# File lib/csound.rb, line 677 def DestroyCircularBuffer(circularbuffer) return CsoundModule.csoundDestroyCircularBuffer(@csound, circularbuffer) end
DestroyGlobalVariable(name)
click to toggle source
# File lib/csound.rb, line 661 def DestroyGlobalVariable(name) return CsoundModule.csoundDestroyGlobalVariable(name) end
DestroyMessageBuffer()
click to toggle source
# File lib/csound.rb, line 477 def DestroyMessageBuffer() return CsoundModule.csoundDestroyMessageBuffer(@csound) end
DestroyMutex(mutex)
click to toggle source
# File lib/csound.rb, line 597 def DestroyMutex(mutex) return CsoundModule.csoundDestroyMutex(mutex) end
DestroyThreadLock(lock)
click to toggle source
# File lib/csound.rb, line 581 def DestroyThreadLock(lock) return CsoundModule.csoundDestroyThreadLock(lock) end
DisposeOpcodeList(opcodelist)
click to toggle source
# File lib/csound.rb, line 557 def DisposeOpcodeList(opcodelist) return CsoundModule.csoundDisposeOpcodeList(opcodelist) end
EvalCode(str)
click to toggle source
# File lib/csound.rb, line 245 def EvalCode(str) return CsoundModule.csoundEvalCode(@csound, str) end
FlushCircularBuffer(p)
click to toggle source
# File lib/csound.rb, line 673 def FlushCircularBuffer(p) return CsoundModule.csoundFlushCircularBuffer(@csound, p) end
GetAPIVersion()
click to toggle source
# File lib/csound.rb, line 221 def GetAPIVersion() return CsoundModule.csoundGetAPIVersion() end
GetCPUTime(arg_pointer)
click to toggle source
# File lib/csound.rb, line 649 def GetCPUTime(arg_pointer) return CsoundModule.csoundGetCPUTime(arg_pointer) end
GetChannelDatasize(name)
click to toggle source
# File lib/csound.rb, line 489 def GetChannelDatasize(name) return CsoundModule.csoundGetChannelDatasize(@csound, name) end
GetCurrentTimeSamples()
click to toggle source
# File lib/csound.rb, line 329 def GetCurrentTimeSamples() return CsoundModule.csoundGetCurrentTimeSamples(@csound) end
GetDebug()
click to toggle source
# File lib/csound.rb, line 353 def GetDebug() return CsoundModule.csoundGetDebug(@csound) end
GetEnv(name)
click to toggle source
# File lib/csound.rb, line 727 def GetEnv(name) return CsoundModule.csoundGetEnv(@csound,name) end
GetFirstMessage()
click to toggle source
# File lib/csound.rb, line 695 def GetFirstMessage() return CsoundModule.csoundGetFirstMessage(@csound) end
GetFirstMessageAttr()
click to toggle source
# File lib/csound.rb, line 465 def GetFirstMessageAttr() return CsoundModule.csoundGetFirstMessageAttr(@csound) end
GetInputBufferSize()
click to toggle source
# File lib/csound.rb, line 389 def GetInputBufferSize() return CsoundModule.csoundGetInputBufferSize(@csound) end
GetKr()
click to toggle source
# File lib/csound.rb, line 313 def GetKr() return CsoundModule.csoundGetKr(@csound) end
GetKsmps()
click to toggle source
# File lib/csound.rb, line 317 def GetKsmps() return CsoundModule.csoundGetKsmps(@csound) end
GetMessageCnt()
click to toggle source
# File lib/csound.rb, line 473 def GetMessageCnt() return CsoundModule.csoundGetMessageCnt(@csound) end
GetMessageLevel()
click to toggle source
# File lib/csound.rb, line 453 def GetMessageLevel() return CsoundModule.csoundGetMessageLevel(@csound) end
GetNamedGEN(num, name, len)
click to toggle source
# File lib/csound.rb, line 545 def GetNamedGEN(num, name, len) return CsoundModule.csoundGetNamedGEN(@csound, num, name, len) end
GetNchnls()
click to toggle source
# File lib/csound.rb, line 321 def GetNchnls() return CsoundModule.csoundGetNchnls(@csound) end
GetNchnlsInput()
click to toggle source
# File lib/csound.rb, line 325 def GetNchnlsInput() return CsoundModule.csoundGetNchnlsInput(@csound) end
GetOutputBufferSize()
click to toggle source
# File lib/csound.rb, line 393 def GetOutputBufferSize() return CsoundModule.csoundGetOutputBufferSize(@csound) end
GetParams(p)
click to toggle source
# File lib/csound.rb, line 349 def GetParams(p) return CsoundModule.csoundGetParams(@csound, p) end
GetRandomSeedFromTime()
click to toggle source
# File lib/csound.rb, line 653 def GetRandomSeedFromTime() return CsoundModule.csoundGetRandomSeedFromTime() end
GetRealTime(arg_pointer)
click to toggle source
# File lib/csound.rb, line 645 def GetRealTime(arg_pointer) return CsoundModule.csoundGetRealTime(arg_pointer) end
GetScoreOffsetSeconds()
click to toggle source
# File lib/csound.rb, line 433 def GetScoreOffsetSeconds() return CsoundModule.csoundGetScoreOffsetSeconds(@csound) end
GetScoreTime()
click to toggle source
# File lib/csound.rb, line 421 def GetScoreTime() return CsoundModule.csoundGetScoreTime(@csound) end
GetSizeOfMYFLT()
click to toggle source
# File lib/csound.rb, line 333 def GetSizeOfMYFLT() return CsoundModule.csoundGetSizeOfMYFLT() end
GetSpin()
click to toggle source
# File lib/csound.rb, line 711 def GetSpin return CsoundModule.csoundGetSpin(@csound) end
GetSpout()
click to toggle source
# File lib/csound.rb, line 703 def GetSpout return CsoundModule.csoundGetSpout(@csound) end
GetSpoutSample(frame, channel)
click to toggle source
# File lib/csound.rb, line 401 def GetSpoutSample(frame, channel) return CsoundModule.csoundGetSpoutSample(@csound, frame, channel) end
GetSr()
click to toggle source
# File lib/csound.rb, line 699 def GetSr return CsoundModule.csoundGetSr(@csound) end
GetTable(tablePtr, tableNum)
click to toggle source
# File lib/csound.rb, line 533 def GetTable(tablePtr, tableNum) return CsoundModule.csoundGetTable(tablePtr, tableNum) end
GetTableArgs(argsPtr, tableNum)
click to toggle source
# File lib/csound.rb, line 537 def GetTableArgs(argsPtr, tableNum) return CsoundModule.csoundGetTableArgs(@csound, argsPtr, tableNum) end
GetUtilityDescription(name)
click to toggle source
# File lib/csound.rb, line 751 def GetUtilityDescription(name) return CsoundModule.csoundGetUtilityDescription(@csound,name) end
GetVersion()
click to toggle source
# File lib/csound.rb, line 217 def GetVersion() return CsoundModule.csoundGetVersion() end
InitTimerStruct(arg_pointer)
click to toggle source
# File lib/csound.rb, line 641 def InitTimerStruct(arg_pointer) return CsoundModule.csoundInitTimerStruct(arg_pointer) end
InitializeCscore(insco, outsco)
click to toggle source
# File lib/csound.rb, line 249 def InitializeCscore(insco, outsco) return CsoundModule.csoundInitializeCscore(insco, outsco) end
InputMessage(message)
click to toggle source
# File lib/csound.rb, line 493 def InputMessage(message) return CsoundModule.csoundInputMessage(message) end
InputMessageAsync(message)
click to toggle source
# File lib/csound.rb, line 497 def InputMessageAsync(message) return CsoundModule.csoundInputMessageAsync(message) end
IsNamedGEN(num)
click to toggle source
# File lib/csound.rb, line 541 def IsNamedGEN(num) return CsoundModule.csoundIsNamedGEN(@csound, num) end
IsScorePending()
click to toggle source
# File lib/csound.rb, line 425 def IsScorePending() return CsoundModule.csoundIsScorePending(@csound) end
JoinThread(thread)
click to toggle source
# File lib/csound.rb, line 565 def JoinThread(thread) return CsoundModule.csoundJoinThread(thread) end
KeyPress(c)
click to toggle source
# File lib/csound.rb, line 501 def KeyPress(c) return CsoundModule.csoundKeyPress(c) end
ListChannels(lst)
click to toggle source
# File lib/csound.rb, line 481 def ListChannels(lst) return CsoundModule.csoundListChannels(@csound,lst) end
ListUtilities()
click to toggle source
# File lib/csound.rb, line 747 def ListUtilities return CsoundModule.csoundListUtilities(@csound) end
LockMutex(mutex)
click to toggle source
# File lib/csound.rb, line 585 def LockMutex(mutex) return CsoundModule.csoundLockMutex(mutex) end
LockMutexNoWait(mutex)
click to toggle source
# File lib/csound.rb, line 589 def LockMutexNoWait(mutex) return CsoundModule.csoundLockMutexNoWait(mutex) end
Message(format)
click to toggle source
# File lib/csound.rb, line 449 def Message(format) return CsoundModule.csoundMessage(format) end
NewOpcodeList(opcodelist)
click to toggle source
# File lib/csound.rb, line 553 def NewOpcodeList(opcodelist) return CsoundModule.csoundNewOpcodeList(opcodelist) end
NotifyThreadLock(lock)
click to toggle source
# File lib/csound.rb, line 577 def NotifyThreadLock(lock) return CsoundModule.csoundNotifyThreadLock(lock) end
OpenLibrary(library, libraryPath)
click to toggle source
# File lib/csound.rb, line 681 def OpenLibrary(library, libraryPath) return CsoundModule.csoundOpenLibrary(library, libraryPath) end
PeekCircularBuffer(buffer, out, items)
click to toggle source
# File lib/csound.rb, line 763 def PeekCircularBuffer(buffer, out, items) return CsoundModule.csoundPeekCircularBuffer(@csound, buffer, out, items) end
Perform()
click to toggle source
# File lib/csound.rb, line 273 def Perform() return CsoundModule.csoundPerform(@csound) end
PerformBuffer()
click to toggle source
# File lib/csound.rb, line 281 def PerformBuffer() return CsoundModule.csoundPerformBuffer(@csound) end
PerformKsmps()
click to toggle source
# File lib/csound.rb, line 277 def PerformKsmps() return CsoundModule.csoundPerformKsmps(@csound) end
PopFirstMessage()
click to toggle source
# File lib/csound.rb, line 469 def PopFirstMessage() CsoundModule.csoundPopFirstMessage(@csound) end
QueryGlobalVariable(name)
click to toggle source
# File lib/csound.rb, line 735 def QueryGlobalVariable(name) return CsoundModule.csoundQueryGlobalVariable(@csound, name) end
QueryGlobalVariableNoCheck(name)
click to toggle source
# File lib/csound.rb, line 739 def QueryGlobalVariableNoCheck(name) return CsoundModule.csoundQueryGlobalVariableNoCheck(@csound, name) end
RandMT(p)
click to toggle source
# File lib/csound.rb, line 669 def RandMT(p) return CsoundModule.csoundRandMT(p) end
ReadCircularBuffer(buffer, out, items)
click to toggle source
# File lib/csound.rb, line 759 def ReadCircularBuffer(buffer, out, items) return CsoundModule.csoundReadCircularBuffer(@csound,buffer,out,items) end
ReadScore(str)
click to toggle source
# File lib/csound.rb, line 413 def ReadScore(str) return CsoundModule.csoundReadScore(@csound, str) end
ReadScoreAsync(str)
click to toggle source
# File lib/csound.rb, line 417 def ReadScoreAsync(str) return CsoundModule.csoundReadScoreAsync(@csound, str) end
Reset()
click to toggle source
# File lib/csound.rb, line 293 def Reset() return CsoundModule.csoundReset(@csound) end
RewindScore()
click to toggle source
# File lib/csound.rb, line 441 def RewindScore() return CsoundModule.csoundRewindScore(@csound) end
RunCommand(argv, noWait)
click to toggle source
# File lib/csound.rb, line 637 def RunCommand(argv, noWait) return CsoundModule.csoundRunCommand(argv, noWait) end
RunUtility(name, argc, argv)
click to toggle source
# File lib/csound.rb, line 743 def RunUtility(name, argc, argv) return CsoundModule.csoundRunUtility(@csound, argc, argv) end
ScoreSort(inFile, outFile)
click to toggle source
# File lib/csound.rb, line 445 def ScoreSort(inFile, outFile) return CsoundModule.csoundScoreSort(inFile, outFile) end
SetControlChannel(channel_name, value)
click to toggle source
Handwritten
# File lib/csound.rb, line 691 def SetControlChannel(channel_name, value) CsoundModule.csoundSetControlChannel(@csound, channel_name, value) end
SetDebug(debug)
click to toggle source
# File lib/csound.rb, line 357 def SetDebug(debug) return CsoundModule.csoundSetDebug(debug) end
SetGlobalEnv(name, value)
click to toggle source
# File lib/csound.rb, line 657 def SetGlobalEnv(name, value) return CsoundModule.csoundSetGlobalEnv(name, value) end
SetHostData(hostData)
click to toggle source
# File lib/csound.rb, line 337 def SetHostData(hostData) return CsoundModule.csoundSetHostData(hostData) end
SetInput(name)
click to toggle source
# File lib/csound.rb, line 365 def SetInput(name) return CsoundModule.csoundSetInput(@csound, name) end
SetIsGraphable(isGraphable)
click to toggle source
# File lib/csound.rb, line 549 def SetIsGraphable(isGraphable) return CsoundModule.csoundSetIsGraphable(isGraphable) end
SetMIDIFileInput(name)
click to toggle source
# File lib/csound.rb, line 373 def SetMIDIFileInput(name) return CsoundModule.csoundSetMIDIFileInput(@csound, name) end
SetMIDIFileOutput(name)
click to toggle source
# File lib/csound.rb, line 381 def SetMIDIFileOutput(name) return CsoundModule.csoundSetMIDIFileOutput(@csound, name) end
SetMIDIInput(name)
click to toggle source
# File lib/csound.rb, line 369 def SetMIDIInput(name) return CsoundModule.csoundSetMIDIInput(@csound, name) end
SetMIDIModule(rtmodule)
click to toggle source
# File lib/csound.rb, line 409 def SetMIDIModule(rtmodule) return CsoundModule.csoundSetMIDIModule(@csound, rtmodule) end
SetMIDIOutput(name)
click to toggle source
# File lib/csound.rb, line 377 def SetMIDIOutput(name) return CsoundModule.csoundSetMIDIOutput(@csound, name) end
SetMessageLevel(messageLevel)
click to toggle source
# File lib/csound.rb, line 457 def SetMessageLevel(messageLevel) CsoundModule.csoundSetMessageLevel(messageLevel) end
SetOption(option)
click to toggle source
# File lib/csound.rb, line 341 def SetOption(option) return CsoundModule.csoundSetOption(@csound, option) end
SetParams(p)
click to toggle source
# File lib/csound.rb, line 345 def SetParams(p) return CsoundModule.csoundSetParams(@csound, p) end
SetRTAudioModule(rtmodule)
click to toggle source
# File lib/csound.rb, line 385 def SetRTAudioModule(rtmodule) return CsoundModule.csoundSetRTAudioModule(@csound, rtmodule) end
SetRtcloseCallback(arg_void)
click to toggle source
# File lib/csound.rb, line 405 def SetRtcloseCallback(arg_void) return CsoundModule.csoundSetRtcloseCallback(arg_void) end
SetScoreOffsetSeconds(time)
click to toggle source
# File lib/csound.rb, line 437 def SetScoreOffsetSeconds(time) return CsoundModule.csoundSetScoreOffsetSeconds(time) end
SetScorePending(pending)
click to toggle source
# File lib/csound.rb, line 429 def SetScorePending(pending) return CsoundModule.csoundSetScorePending(pending) end
SetSpinSample(frame, channel, sample)
click to toggle source
# File lib/csound.rb, line 723 def SetSpinSample(frame, channel, sample) CsoundModule.csoundSetSpinSample(@csound, frame, channel, sample) end
SetYieldCallback(arg_int)
click to toggle source
# File lib/csound.rb, line 561 def SetYieldCallback(arg_int) return CsoundModule.csoundSetYieldCallback(arg_int) end
Sleep(milliseconds)
click to toggle source
# File lib/csound.rb, line 617 def Sleep(milliseconds) return CsoundModule.csoundSleep(milliseconds) end
SpinLock(spinlock)
click to toggle source
# File lib/csound.rb, line 625 def SpinLock(spinlock) return CsoundModule.csoundSpinLock(spinlock) end
SpinLockInit(spinlock)
click to toggle source
# File lib/csound.rb, line 621 def SpinLockInit(spinlock) return CsoundModule.csoundSpinLockInit(spinlock) end
SpinTryLock(spinlock)
click to toggle source
# File lib/csound.rb, line 629 def SpinTryLock(spinlock) return CsoundModule.csoundSpinTryLock(spinlock) end
SpinUnLock(spinlock)
click to toggle source
# File lib/csound.rb, line 633 def SpinUnLock(spinlock) return CsoundModule.csoundSpinUnLock(spinlock) end
Start()
click to toggle source
# File lib/csound.rb, line 257 def Start() return CsoundModule.csoundStart(@csound) end
Stop()
click to toggle source
# File lib/csound.rb, line 285 def Stop() return CsoundModule.csoundStop(@csound) end
StopUDPConsole()
click to toggle source
# File lib/csound.rb, line 309 def StopUDPConsole() return CsoundModule.csoundStopUDPConsole(@csound) end
SystemSr(val)
click to toggle source
# File lib/csound.rb, line 361 def SystemSr(val) return CsoundModule.csoundSystemSr(@csound, val) end
TableCopyIn(table, src)
click to toggle source
# File lib/csound.rb, line 525 def TableCopyIn(table, src) return CsoundModule.csoundTableCopyIn(@csound, table, src) end
TableCopyInAsync(table, src)
click to toggle source
# File lib/csound.rb, line 529 def TableCopyInAsync(table, src) return CsoundModule.csoundTableCopyInAsync(@csound, table, src) end
TableCopyOut(table, dest)
click to toggle source
# File lib/csound.rb, line 517 def TableCopyOut(table, dest) return CsoundModule.csoundTableCopyOut(@csound, table, dest) end
TableCopyOutAsync(table, dest)
click to toggle source
# File lib/csound.rb, line 521 def TableCopyOutAsync(table, dest) return CsoundModule.csoundTableCopyOutAsync(@csound, table, dest) end
TableGet(table, index)
click to toggle source
# File lib/csound.rb, line 509 def TableGet(table, index) return CsoundModule.csoundTableGet(table, index) end
TableLength(table)
click to toggle source
# File lib/csound.rb, line 505 def TableLength(table) return CsoundModule.csoundTableLength(table) end
TableSet(table, index, value)
click to toggle source
# File lib/csound.rb, line 513 def TableSet(table, index, value) return CsoundModule.csoundTableSet(table, index, value) end
UDPServerClose()
click to toggle source
# File lib/csound.rb, line 305 def UDPServerClose() return CsoundModule.csoundUDPServerClose(@csound) end
UDPServerStart(port)
click to toggle source
# File lib/csound.rb, line 297 def UDPServerStart(port) return CsoundModule.csoundUDPServerStart(@csound, port) end
UDPServerStatus()
click to toggle source
# File lib/csound.rb, line 301 def UDPServerStatus() return CsoundModule.csoundUDPServerStatus(@csound) end
UnlockMutex(mutex)
click to toggle source
# File lib/csound.rb, line 593 def UnlockMutex(mutex) return CsoundModule.csoundUnlockMutex(mutex) end
WaitBarrier(barrier)
click to toggle source
# File lib/csound.rb, line 605 def WaitBarrier(barrier) return CsoundModule.csoundWaitBarrier(barrier) end
WaitThreadLock(lock, milliseconds)
click to toggle source
# File lib/csound.rb, line 569 def WaitThreadLock(lock, milliseconds) return CsoundModule.csoundWaitThreadLock(lock, milliseconds) end
WaitThreadLockNoTimeout(lock)
click to toggle source
# File lib/csound.rb, line 573 def WaitThreadLockNoTimeout(lock) return CsoundModule.csoundWaitThreadLockNoTimeout(lock) end
WriteCirularBuffer(p,inp,items)
click to toggle source
# File lib/csound.rb, line 767 def WriteCirularBuffer(p,inp,items) return CsoundModule.csoundWriteCircularBuffer(@csound,p,inp,items) end