Skip to content

Commit b01b081

Browse files
committed
Add more summaries
1 parent 16cdc9d commit b01b081

File tree

1 file changed

+36
-36
lines changed
  • app/server/sonicpi/lib/sonicpi/mods

1 file changed

+36
-36
lines changed

app/server/sonicpi/lib/sonicpi/mods/sound.rb

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ def play_pattern_timed(notes, times, *args)
619619
end
620620
doc name: :play_pattern_timed,
621621
introduced: Version.new(2,0,0),
622-
summary: "",
622+
summary: "Play pattern of notes with specific times",
623623
doc: "Play each note in a list of notes one after another with specified times between them. The notes should be a list of MIDI numbers or symbols such as :E4 - identical to the first parameter of the play function. The times should be a list of times between the notes in seconds.
624624
625625
If the list of times is smaller than the number of gaps between notes, the list is repeated again. If the list of times is longer than the number of gaps between notes, then some of the times are ignored. See examples for more detail.
@@ -730,7 +730,7 @@ def use_merged_synth_defaults(*args, &block)
730730
end
731731
doc name: :use_merged_synth_defaults,
732732
introduced: Version.new(2,0,0),
733-
summary: "",
733+
summary: "Merge synth defaults",
734734
doc: "Specify synth arg values to be used by any following call to play. Merges the specified values with any previous defaults, rather than replacing them.",
735735
args: [],
736736
opts: {},
@@ -768,7 +768,7 @@ def with_merged_synth_defaults(*args, &block)
768768
end
769769
doc name: :with_merged_synth_defaults,
770770
introduced: Version.new(2,0,0),
771-
summary: "",
771+
summary: "Block-level merge synth defaults ",
772772
doc: "Specify synth arg values to be used by any following call to play within the specified do/end block. Merges the specified values with any previous defaults, rather than replacing them. After the do/end block has completed, previous defaults(if any) are restored. ",
773773
args: [],
774774
opts: {},
@@ -800,7 +800,7 @@ def use_synth_defaults(*args, &block)
800800
end
801801
doc name: :use_synth_defaults,
802802
introduced: Version.new(2,0,0),
803-
summary: "",
803+
summary: "Use new synth defaults",
804804
doc: "Specify new default values to be used by all subsequent calls to play. Will remove and override any previous defaults.",
805805
args: [],
806806
opts: {},
@@ -831,7 +831,7 @@ def with_synth_defaults(*args, &block)
831831
end
832832
doc name: :with_synth_defaults,
833833
introduced: Version.new(2,0,0),
834-
summary: "",
834+
summary: "Block-level use new synth defaults",
835835
doc: "Specify new default values to be used by all calls to play within the do/end block. After the do/end block has completed the previous synth defaults (if any) are restored.",
836836
args: [],
837837
opts: {},
@@ -1095,7 +1095,7 @@ def use_sample_pack(pack, &block)
10951095
end
10961096
doc name: :use_sample_pack,
10971097
introduced: Version.new(2,0,0),
1098-
summary: "",
1098+
summary: "Use sample pack",
10991099
doc: "Given a path to a folder of samples on your filesystem, this method makes any wav|wave|aif|aiff files in that folder available as samples. Consider using use_sample_pack_as when using multiple sample packs.",
11001100
args: [[:pack_path, :string]],
11011101
opts: nil,
@@ -1115,7 +1115,7 @@ def use_sample_pack_as(pack, name, &block)
11151115
end
11161116
doc name: :use_sample_pack_as,
11171117
introduced: Version.new(2,0,0),
1118-
summary: "",
1118+
summary: "Use sample pack alias",
11191119
doc: "Similar to use_sample_pack except you can assign prefix aliases for samples. This lets you 'namespace' your sounds so that they don't clash, even if they have the same filename.",
11201120
args: [[:pack_path, :string]],
11211121
opts: nil,
@@ -1143,7 +1143,7 @@ def with_sample_pack(pack, &block)
11431143
end
11441144
doc name: :with_sample_pack,
11451145
introduced: Version.new(2,0,0),
1146-
summary: "",
1146+
summary: "Block-level use sample pack",
11471147
doc: "Given a path to a folder of samples on your filesystem, this method makes any wav|wave|aif|aiff files in that folder available as samples inside the given block. Consider using with_sample_pack_as when using multiple sample packs.",
11481148
args: [[:pack_path, :string]],
11491149
opts: nil,
@@ -1167,7 +1167,7 @@ def with_sample_pack_as(pack, name, &block)
11671167
end
11681168
doc name: :with_sample_pack_as,
11691169
introduced: Version.new(2,0,0),
1170-
summary: "",
1170+
summary: "Block-level use sample pack alias",
11711171
doc: "Similar to with_sample_pack except you can assign prefix aliases for samples. This lets you 'namespace' your sounds so that they don't clash, even if they have the same filename.",
11721172
args: [[:pack_path, :string]],
11731173
opts: nil,
@@ -1186,7 +1186,7 @@ def current_synth
11861186
end
11871187
doc name: :current_synth,
11881188
introduced: Version.new(2,0,0),
1189-
summary: "",
1189+
summary: "Get current synth",
11901190
doc: "Returns the current synth name.",
11911191
args: [],
11921192
opts: nil,
@@ -1201,7 +1201,7 @@ def current_sample_pack
12011201
end
12021202
doc name: :current_sample_pack,
12031203
introduced: Version.new(2,0,0),
1204-
summary: "",
1204+
summary: "Get current sample pack",
12051205
doc: "Returns the current sample pack.",
12061206
args: [],
12071207
opts: nil,
@@ -1217,7 +1217,7 @@ def current_sample_pack_aliases
12171217
end
12181218
doc name: :current_sample_pack_aliases,
12191219
introduced: Version.new(2,0,0),
1220-
summary: "",
1220+
summary: "Get current sample pack aliases",
12211221
doc: "Returns a map containing the current sample pack aliases.",
12221222
args: [],
12231223
opts: nil,
@@ -1233,7 +1233,7 @@ def current_synth_defaults
12331233
end
12341234
doc name: :current_synth_defaults,
12351235
introduced: Version.new(2,0,0),
1236-
summary: "",
1236+
summary: "Get current synth defaults",
12371237
doc: "Returns the current synth defaults. This is a map of synth arg names to either values or functions.",
12381238
args: [],
12391239
opts: nil,
@@ -1251,7 +1251,7 @@ def current_sched_ahead_time
12511251
end
12521252
doc name: :current_sched_ahead_time,
12531253
introduced: Version.new(2,0,0),
1254-
summary: "",
1254+
summary: "Get current sched ahead time",
12551255
doc: "Returns the current schedule ahead time.",
12561256
args: [],
12571257
opts: nil,
@@ -1268,7 +1268,7 @@ def current_volume
12681268
end
12691269
doc name: :current_volume,
12701270
introduced: Version.new(2,0,0),
1271-
summary: "",
1271+
summary: "Get current volume",
12721272
doc: "Returns the current volume.",
12731273
args: [],
12741274
opts: nil,
@@ -1286,7 +1286,7 @@ def current_transpose
12861286
end
12871287
doc name: :current_transpose,
12881288
introduced: Version.new(2,0,0),
1289-
summary: "",
1289+
summary: "Get current transposition",
12901290
doc: "Returns the current transpose value.",
12911291
args: [],
12921292
opts: nil,
@@ -1302,7 +1302,7 @@ def current_debug
13021302
end
13031303
doc name: :current_debug,
13041304
introduced: Version.new(2,0,0),
1305-
summary: "",
1305+
summary: "Get current debug status",
13061306
doc: "Returns the current debug setting (true or false).",
13071307
args: [],
13081308
opts: nil,
@@ -1318,7 +1318,7 @@ def current_arg_checks
13181318
end
13191319
doc name: :current_arg_checks,
13201320
introduced: Version.new(2,0,0),
1321-
summary: "",
1321+
summary: "Get current arg checking status",
13221322
doc: "Returns the current arg checking setting (true or false).",
13231323
args: [],
13241324
opts: nil,
@@ -1343,7 +1343,7 @@ def set_volume!(vol)
13431343
end
13441344
doc name: :set_volume!,
13451345
introduced: Version.new(2,0,0),
1346-
summary: "",
1346+
summary: "Set Volume globally",
13471347
doc: "Set the main system volume to vol. Accepts a value between 0 and 5 inclusive. Vols greater or smaller than the allowed values are trimmed to keep them within range. Default is 1.",
13481348
args: [[:vol, :number]],
13491349
opts: nil,
@@ -1381,7 +1381,7 @@ def load_sample(path)
13811381
end
13821382
doc name: :load_sample,
13831383
introduced: Version.new(2,0,0),
1384-
summary: "",
1384+
summary: "Pre-load sample",
13851385
doc: "Given a path to a wav|wave|aif|aiff file, this loads the file and makes it available as a sample. See load_samples for loading multiple samples in one go.",
13861386
args: [[:path, :string]],
13871387
opts: nil,
@@ -1404,7 +1404,7 @@ def load_samples(*paths)
14041404
end
14051405
doc name: :load_samples,
14061406
introduced: Version.new(2,0,0),
1407-
summary: "",
1407+
summary: "Pre-load samples",
14081408
doc: "Given an array of paths to wav|wave|aif|aiff files, loads them all into memory so that they may be played with via sample with no delay. See load_sample.",
14091409
args: [[:paths, :list]],
14101410
opts: nil,
@@ -1433,7 +1433,7 @@ def sample_info(path)
14331433
end
14341434
doc name: :sample_info,
14351435
introduced: Version.new(2,0,0),
1436-
summary: "",
1436+
summary: "Get sample information",
14371437
doc: "Alias for the load_sample method. Loads sample if necessary and returns sample information.",
14381438
args: [[:path, :string]],
14391439
opts: nil,
@@ -1448,7 +1448,7 @@ def sample_buffer(path)
14481448
end
14491449
doc name: :sample_buffer,
14501450
introduced: Version.new(2,0,0),
1451-
summary: "",
1451+
summary: "Get sample data",
14521452
doc: "Alias for the load_sample method. Loads sample if necessary and returns buffer information.",
14531453
args: [[:path, :string]],
14541454
opts: nil,
@@ -1465,7 +1465,7 @@ def sample_duration(path, *args)
14651465
end
14661466
doc name: :sample_duration,
14671467
introduced: Version.new(2,0,0),
1468-
summary: "",
1468+
summary: "Get sample duration in seconds",
14691469
doc: "Given the name of a loaded sample, or a path to a wav|wave|aif|aiff file this returns the length of time that the sample would play for. It's useful when looping samples to make sure there are no gaps - see the examples. You may pass a rate opt which it will use to scale the returned time to match the duration at that rate.",
14701470
args: [[:path, :string]],
14711471
opts: {:rate => 1},
@@ -1498,7 +1498,7 @@ def sample(path, *args_a_or_h)
14981498
end
14991499
doc name: :sample,
15001500
introduced: Version.new(2,0,0),
1501-
summary: "",
1501+
summary: "Trigger sample",
15021502
doc: "This is the main method for playing back recorded sound files (samples). Sonic Pi comes with lots of great samples included (see the section under help) but you can also load and play wav|wave|aif|aiff files from anywhere on your computer too. The 'rate' parameter affects both the speed and the pitch of the playback. See the examples for details. Check out the use_sample_pack and use_sample_pack_as methods for details on making it easy to work with a whole folder of your own sample files. Note, that on the first trigger of a sample, Sonic Pi has to load the sample which takes some time and may cause timing issues. To preload the samples you wish to work with consider load_sample and load_samples.",
15031503
args: [[:name_or_path, :symbol_or_string]],
15041504
opts: {:rate => 1, :attack => 0, :release => 0.0, :start => 0, :finish => 1, :pan => 0, :pan_slide => 0, :amp => 1, :amp_slide => 0},
@@ -1570,7 +1570,7 @@ def status
15701570
end
15711571
doc name: :status,
15721572
introduced: Version.new(2,0,0),
1573-
summary: "",
1573+
summary: "Get server status",
15741574
doc: "This returns a Hash of information about the synthesis environment. Mostly used for debugging purposes.",
15751575
args: [],
15761576
opts: nil,
@@ -1606,7 +1606,7 @@ def note(n, *args)
16061606
end
16071607
doc name: :note,
16081608
introduced: Version.new(2,0,0),
1609-
summary: "",
1609+
summary: "Describe note",
16101610
doc: "Takes a midi note, a symbol (e.g. :C ) or a string (e.g. 'C' ) and resolves it to a midi note. You can also pass an optional :octave parameter to get the midi note for a given octave. Please note - :octave param is overridden if octave is specified in a symbol i.e. :c3",
16111611
args: [[:note, :symbol_or_number]],
16121612
opts: {:octave => 4},
@@ -1637,7 +1637,7 @@ def note_info(n, *args)
16371637
end
16381638
doc name: :note_info,
16391639
introduced: Version.new(2,0,0),
1640-
summary: "",
1640+
summary: "Get note info",
16411641
doc: "Returns an instance of SonicPi::Note. Please note - :octave param is overridden if octave is specified in a symbol i.e. :c3",
16421642
args: [[:note, :symbol_or_number]],
16431643
opts: {:octave => 4},
@@ -1656,7 +1656,7 @@ def scale(tonic, name, *opts)
16561656
end
16571657
doc name: :scale,
16581658
introduced: Version.new(2,0,0),
1659-
summary: "",
1659+
summary: "Create scale",
16601660
doc: "A helper method that returns an Array of midi note numbers when given a tonic note and a scale type. Also takes an optional :num_octaves parameter (1 octave is the default)",
16611661
args: [[:tonic, :symbol], [:name, :symbol]],
16621662
opts: {:num_octaves => 1},
@@ -1755,7 +1755,7 @@ def chord(tonic, name=:major, *opts)
17551755
end
17561756
doc name: :chord,
17571757
introduced: Version.new(2,0,0),
1758-
summary: "",
1758+
summary: "Create chord",
17591759
doc: "A helper method that returns a list of midi note numbers when given a tonic note and a chord type",
17601760
args: [[:tonic, :symbol], [:name, :symbol]],
17611761
opts: nil,
@@ -1898,7 +1898,7 @@ def control(node, *args)
18981898
end
18991899
doc name: :control,
19001900
introduced: Version.new(2,0,0),
1901-
summary: "",
1901+
summary: "Control running synth",
19021902
doc: "Control a running synth node by passing new parameters to it. A synth node represents a running synth and can be obtained by assigning the return value of a call to play or sample or by specifying a parameter to the do/end block of an FX. You may modify any of the parameters you can set when triggering the synth, sample or FX. See documentation for parameter details.",
19031903
args: [[:node, :synth_node]],
19041904
opts: {},
@@ -1925,7 +1925,7 @@ def stop(node)
19251925
end
19261926
doc name: :stop,
19271927
introduced: Version.new(2,0,0),
1928-
summary: "",
1928+
summary: "Stop synth",
19291929
doc: "Stop a running synth sound or sample. In order to stop a sound, you need to have stored a reference to it in a variable.",
19301930
args: [[:node, :synth_node]],
19311931
opts: {},
@@ -1949,7 +1949,7 @@ def sample_names(group)
19491949
end
19501950
doc name: :sample_names,
19511951
introduced: Version.new(2,0,0),
1952-
summary: "",
1952+
summary: "Get sample names",
19531953
doc: "Return a list of sample names for the specified group",
19541954
args: [[:group, :symbol]],
19551955
opts: nil,
@@ -1964,7 +1964,7 @@ def all_sample_names
19641964
end
19651965
doc name: :all_sample_names,
19661966
introduced: Version.new(2,0,0),
1967-
summary: "",
1967+
summary: "Get all sample names",
19681968
doc: "Return a list of all the sample names available",
19691969
args: [],
19701970
opts: nil,
@@ -1979,7 +1979,7 @@ def sample_groups
19791979
end
19801980
doc name: :sample_groups,
19811981
introduced: Version.new(2,0,0),
1982-
summary: "",
1982+
summary: "Get all sample groups",
19831983
doc: "Return a list of all the sample groups available",
19841984
args: [],
19851985
opts: nil,
@@ -1996,7 +1996,7 @@ def load_synthdefs(path)
19961996
end
19971997
doc name: :load_synthdefs,
19981998
introduced: Version.new(2,0,0),
1999-
summary: "",
1999+
summary: "Load external synthdefs",
20002000
doc: "Load all synth designs in the specified directory. This is useful if you wish to use your own SuperCollider synthesiser designs within Sonic Pi. if you wish your synth to seemlessly integrate with the Sonic ",
20012001
args: [[:path, :string]],
20022002
opts: nil,

0 commit comments

Comments
 (0)