Top Level Namespace
Defined Under Namespace
Modules: ControlChannelBehavior, ControlChannelType, CsoundModule
Classes: CS_TYPE, ControlChannelHints_t, ControlChannelInfo_t, Csound
Instance Method Summary
collapse
Instance Method Details
#convert_to_binary(integer) ⇒ Object
9
10
11
12
13
14
15
16
|
# File 'lib/csound.rb', line 9
def convert_to_binary(integer)
binary = []
while integer > 0
binary << integer % 2
integer /= 2
end
binary.reverse.join
end
|
#get_possible_paths ⇒ Object
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
# File 'lib/csound.rb', line 66
def get_possible_paths
if(OS.linux?) then
return ["libcsound64.so",
"/usr/local/lib/libcsound64.so",
"/usr/lib/libcsound64.so"]
elsif(OS.mac?) then
return ["CsoundLib64",
"/Library/Frameworks/CsoundLib64.framework/Versions/6.0/CsoundLib64"]
elsif(OS.windows) then
return ["csound64", "csound64.dll",
"C:/Program Files/Csound6_x64/csound64.dll",
"C:/Program Files/Csound6_x64/lib/csound64.dll",
"C:/Program Files/Csound6_x64/bin/csound64.dll" ]
end
end
|