Skip to content

Commit fc613be

Browse files
committed
Aubio - fix shell punctuation for Windows compatibility
Windows shell commands containing spaces appear to require "" surrounding the full path rather than ''. macOS appears to support both, so use "".
1 parent f3ba0ee commit fc613be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/server/ruby/lib/sonicpi/samplebuffer.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def onset_data
102102
# [:minioi_ms] 12.0 (ms)
103103

104104
begin
105-
aubio_onsets_command = "'#{aubio_onset_path}' '#{@path}'"
105+
aubio_onsets_command = "\"#{aubio_onset_path}\" \"#{@path}\""
106106
onsets_str = `#{aubio_onsets_command}`
107107
onsets = onsets_str.split.map(&:to_f)
108108
rescue Exception => e

0 commit comments

Comments
 (0)