Skip to content

Commit 9181825

Browse files
authored
Merge pull request #2887 from amruth-acharya/amruth-acharya-docs-1
Update sound.rb
2 parents 1312908 + fc84d1f commit 9181825

File tree

1 file changed

+1
-1
lines changed
  • app/server/ruby/lib/sonicpi/lang

1 file changed

+1
-1
lines changed

app/server/ruby/lib/sonicpi/lang/sound.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1188,7 +1188,7 @@ def synth(synth_name, *args, &blk)
11881188

11891189

11901190
def play(n, *args, &blk)
1191-
raise "Play expects a note to play, if you did something like 'play sample ...' you should probably remove 'play'" if n.is_a?(SonicPi::Node)
1191+
raise "Play expects a note to play. If you want to make a sound with a sample or buffer, you can just use 'sample ...' or 'sample buffer(...)'" if n.is_a?(SonicPi::Node) || n.is_a?(Buffer)
11921192
if n.is_a?(Hash) && args.empty?
11931193
synth nil, n, &blk
11941194
else

0 commit comments

Comments
 (0)