Skip to content

Commit

Permalink
Tidy - fix whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
ethancrawford committed Jul 30, 2015
1 parent a9e4ece commit f16fbc6
Show file tree
Hide file tree
Showing 5 changed files with 76 additions and 76 deletions.
10 changes: 5 additions & 5 deletions app/server/sonicpi/lib/sonicpi/mods/sound.rb
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def use_sample_bpm(sample_name, *args)
doc name: :use_sample_bpm,
introduced: Version.new(2,1,0),
summary: "Sample-duration-based bpm modification",
doc: "Modify bpm so that sleeping for 1 will sleep for the duration of the sample.",
doc: "Modify bpm so that sleeping for 1 will sleep for the duration of the sample.",
args: [[:string_or_number, :sample_name_or_duration]],
opts: {:num_beats => "The number of beats within the sample. By default this is 1."},
accepts_block: false,
Expand Down Expand Up @@ -862,7 +862,7 @@ def synth(synth_name, *args)
doc name: :synth,
introduced: Version.new(2,0,0),
summary: "Trigger specific synth",
doc: "Trigger specified synth with given arguments. Bypasses current synth value, yet still honours synth defaults. ",
doc: "Trigger specified synth with given arguments. Bypasses current synth value, yet still honours synth defaults.",
args: [[:synth_name, :symbol]],
opts: {},
accepts_block: false,
Expand Down Expand Up @@ -1123,7 +1123,7 @@ def with_merged_synth_defaults(*args, &block)
end
doc name: :with_merged_synth_defaults,
introduced: Version.new(2,0,0),
summary: "Block-level merge synth defaults ",
summary: "Block-level merge synth defaults",
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.",
args: [],
opts: {},
Expand Down Expand Up @@ -1527,7 +1527,7 @@ def with_fx(fx_name, *args, &block)
summary: "Use Studio FX",
doc: "This applies the named effect (FX) to everything within a given `do`/`end` block. Effects may take extra parameters to modify their behaviour. See FX help for parameter details.
For advanced control, it is also possible to modify the parameters of an effect within the body of the block. If you define the block with a single argument, the argument becomes a reference to the current effect and can be used to control its parameters (see examples).",
For advanced control, it is also possible to modify the parameters of an effect within the body of the block. If you define the block with a single argument, the argument becomes a reference to the current effect and can be used to control its parameters (see examples).",
args: [[:fx_name, :symbol]],
opts: {reps: "Number of times to repeat the block in an iteration.",
kill_delay: "Amount of time to wait after all synths triggered by the block have completed before stopping and freeing the effect synthesiser." },
Expand Down Expand Up @@ -2845,7 +2845,7 @@ def sample_groups

def load_synthdefs(path=synthdef_path)
path = File.expand_path(path)
raise "No directory exists called #{path.inspect} " unless File.exists? path
raise "No directory exists called #{path.inspect}" unless File.exists? path
@mod_sound_studio.load_synthdefs(path)
__info "Loaded synthdefs in path #{path}"
end
Expand Down
2 changes: 1 addition & 1 deletion app/server/sonicpi/lib/sonicpi/spiderapi.rb
Original file line number Diff line number Diff line change
Expand Up @@ -980,7 +980,7 @@ def defonce(name, *opts, &block)
puts foo # The run sleeps for a beat and prints \"hello\" before returning 10
# Try it again:
puts foo # This time the run doesn't sleep or print anything out. However, 10 is still returned.
puts foo # This time the run doesn't sleep or print anything out. However, 10 is still returned.
Expand Down
28 changes: 14 additions & 14 deletions app/server/sonicpi/lib/sonicpi/synthinfo.rb
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ def default_arg_info
{
:mix =>
{
:doc => "The amount (percentage) of FX present in the resulting sound represented as a value between 0 and 1. For example, a mix of 0 means that only the original sound is heard, a mix of 1 means that only the FX is heard (typically the default) and a mix of 0.5 means that half the original and half of the FX is heard. ",
:doc => "The amount (percentage) of FX present in the resulting sound represented as a value between 0 and 1. For example, a mix of 0 means that only the original sound is heard, a mix of 1 means that only the FX is heard (typically the default) and a mix of 0.5 means that half the original and half of the FX is heard.",
:validations => [v_between_inclusive(:mix, 0, 1)],
:modulatable => true
},
Expand Down Expand Up @@ -256,7 +256,7 @@ def default_arg_info
:pan =>
{

:doc => "Position of sound in stereo. With headphones on, this means how much of the sound is in the left ear, and how much is in the right ear. With a value of -1, the soundis completely in the left ear, a value of 0 puts the sound equally in both ears and a value of 1 puts the sound in the right ear. Values in between -1 and 1 move the sound accordingly.",
:doc => "Position of sound in stereo. With headphones on, this means how much of the sound is in the left ear, and how much is in the right ear. With a value of -1, the sound is completely in the left ear, a value of 0 puts the sound equally in both ears and a value of 1 puts the sound in the right ear. Values in between -1 and 1 move the sound accordingly.",
:validations => [v_between_inclusive(:pan, -1, 1)],
:modulatable => true
},
Expand Down Expand Up @@ -1254,7 +1254,7 @@ def synth_name
end

def doc
"Emulation of the classic Roland TB-303 Bass Line synthesiser. Overdrive the res (i.e. use very large values) for that classic late 80s acid sound. "
"Emulation of the classic Roland TB-303 Bass Line synthesiser. Overdrive the res (i.e. use very large values) for that classic late 80s acid sound."
end

def arg_defaults
Expand Down Expand Up @@ -1310,7 +1310,7 @@ def specific_arg_info
{
:cutoff_min =>
{
:doc => "The minimum cutoff value.",
:doc => "The minimum cutoff value.",
:validations => [v_less_than_oet(:cutoff_min, 130)],
:modulatable => true
},
Expand Down Expand Up @@ -1381,7 +1381,7 @@ def specific_arg_info

:cutoff_release =>
{
:doc => "Amount of time (in beats) for sound to move from cutoff sustain value to cutoff min value. Default value is set to match amp envelope's release value.",
:doc => "Amount of time (in beats) for sound to move from cutoff sustain value to cutoff min value. Default value is set to match amp envelope's release value.",
:validations => [v_positive(:cutoff_release)],
:modulatable => false,
:default => "release",
Expand Down Expand Up @@ -1984,7 +1984,7 @@ def specific_arg_info
{
:norm =>
{
:doc => "Normalise the audio (make quieter parts of the sample louder and louder parts quieter)- this is similar to the normaliser FX. This may emphasise any clicks caused by clipping. ",
:doc => "Normalise the audio (make quieter parts of the sample louder and louder parts quieter) - this is similar to the normaliser FX. This may emphasise any clicks caused by clipping.",
:validations => [v_one_of(:norm, [0, 1])],
:modulatable => true
},
Expand Down Expand Up @@ -2020,7 +2020,7 @@ def synth_name
end

def doc
"Saw wave with oscillating timbre. Produces moving saw waves with a unique character controllable with the control oscillator (usage similar to mod synths). "
"Saw wave with oscillating timbre. Produces moving saw waves with a unique character controllable with the control oscillator (usage similar to mod synths)."
end

def arg_defaults
Expand Down Expand Up @@ -2267,7 +2267,7 @@ def synth_name
end

def doc
"Generates noise which results from flipping random bits in a word. The spectrum is emphasised towards lower frequencies. Useful for generating percussive sounds such as snares and hand claps. Also useful for simulating wind or sea effects."
"Generates noise which results from flipping random bits in a word. The spectrum is emphasised towards lower frequencies. Useful for generating percussive sounds such as snares and hand claps. Also useful for simulating wind or sea effects."
end
end

Expand Down Expand Up @@ -2543,7 +2543,7 @@ def specific_arg_info

:norm =>
{
:doc => "Normalise the audio (make quieter parts of the sample louder and louder parts quieter)- this is similar to the normaliser FX. This may emphasise any clicks caused by clipping. ",
:doc => "Normalise the audio (make quieter parts of the sample louder and louder parts quieter) - this is similar to the normaliser FX. This may emphasise any clicks caused by clipping.",
:validations => [v_one_of(:norm, [0, 1])],
:modulatable => true
},
Expand Down Expand Up @@ -3787,7 +3787,7 @@ def specific_arg_info

:threshold =>
{
:doc => "threshold value determining the break point between slope_below and slope_above. ",
:doc => "Threshold value determining the break point between slope_below and slope_above.",
:validations => [v_positive(:threshold)],
:modulatable => true
},
Expand Down Expand Up @@ -4140,7 +4140,7 @@ def specific_arg_info
{
:centre =>
{
:doc => "Centre frequency for the filter as a MIDI note. ",
:doc => "Centre frequency for the filter as a MIDI note.",
:validations => [v_greater_than_oet(:centre, 0)],
:modulatable => true
},
Expand Down Expand Up @@ -4296,7 +4296,7 @@ def name
def doc
"Dampens the parts of the signal that are lower than the cutoff point (typicaly the bass of the sound) and keeps the higher parts (typically the crunchy fizzy harmonic overtones). The resonant part of the resonant low pass filter emphasises/resonates the frequencies around the cutoff point. The amount of emphasis is controlled by the res param with a lower res resulting in greater resonance. High amounts of resonance (rq ~0) can create a whistling sound around the cutoff frequency.
Choose a lower cutoff to keep more of the bass/mid and a higher cutoff to make the sound more light and crispy. "
Choose a lower cutoff to keep more of the bass/mid and a higher cutoff to make the sound more light and crispy."
end

def introduced
Expand Down Expand Up @@ -4609,7 +4609,7 @@ def specific_arg_info
},
:time_dis =>
{
:doc => "Time dispersion - how much random delay before playing each grain (measured in seconds). Again, low values here like 0.001 can help to soften up metallic sounds introduced by the effect. Large values are also fun as they can make soundscapes and textures from the input, although you will most likely lose the rhythm of the original. NB - This won't have an effect if it's larger than window_size. ",
:doc => "Time dispersion - how much random delay before playing each grain (measured in seconds). Again, low values here like 0.001 can help to soften up metallic sounds introduced by the effect. Large values are also fun as they can make soundscapes and textures from the input, although you will most likely lose the rhythm of the original. NB - This won't have an effect if it's larger than window_size.",
:validations => [v_greater_than_oet(:time_dis, 0)],
:modulatable => true
},
Expand Down Expand Up @@ -4735,7 +4735,7 @@ def synth_name
end

def doc
"Mix the incoming signal with a copy of itself which has a rate modulating faster and slower than the original. Creates a swirling/whooshing effect."
"Mix the incoming signal with a copy of itself which has a rate modulating faster and slower than the original. Creates a swirling/whooshing effect."
end

def arg_defaults
Expand Down
32 changes: 16 additions & 16 deletions etc/doc/cheatsheets/fx.md
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@
* cutoff:
- doc: MIDI note representing the highest frequences allowed to be present in the sound. A low value like 30 makes the sound round and dull, a high value like 100 makes the sound buzzy and crispy.
- default: 100
- constraints: must be zero or greater,must be a value less than 130
- constraints: must be zero or greater, must be a value less than 130
- May be changed whilst playing

* cutoff_slide:
Expand Down Expand Up @@ -704,7 +704,7 @@
* cutoff:
- doc: MIDI note representing the highest frequences allowed to be present in the sound. A low value like 30 makes the sound round and dull, a high value like 100 makes the sound buzzy and crispy.
- default: 100
- constraints: must be zero or greater,must be a value less than 130
- constraints: must be zero or greater, must be a value less than 130
- May be changed whilst playing

* cutoff_slide:
Expand Down Expand Up @@ -739,7 +739,7 @@
* cutoff:
- doc: MIDI note representing the highest frequences allowed to be present in the sound. A low value like 30 makes the sound round and dull, a high value like 100 makes the sound buzzy and crispy.
- default: 100
- constraints: must be zero or greater,must be a value less than 130
- constraints: must be zero or greater, must be a value less than 130
- May be changed whilst playing

* cutoff_slide:
Expand Down Expand Up @@ -774,7 +774,7 @@
* cutoff:
- doc: MIDI note representing the highest frequences allowed to be present in the sound. A low value like 30 makes the sound round and dull, a high value like 100 makes the sound buzzy and crispy.
- default: 100
- constraints: must be zero or greater,must be a value less than 130
- constraints: must be zero or greater, must be a value less than 130
- May be changed whilst playing

* cutoff_slide:
Expand Down Expand Up @@ -809,7 +809,7 @@
* cutoff:
- doc: MIDI note representing the highest frequences allowed to be present in the sound. A low value like 30 makes the sound round and dull, a high value like 100 makes the sound buzzy and crispy.
- default: 100
- constraints: must be zero or greater,must be a value less than 130
- constraints: must be zero or greater, must be a value less than 130
- May be changed whilst playing

* cutoff_slide:
Expand Down Expand Up @@ -844,7 +844,7 @@
* cutoff:
- doc: MIDI note representing the highest frequences allowed to be present in the sound. A low value like 30 makes the sound round and dull, a high value like 100 makes the sound buzzy and crispy.
- default: 100
- constraints: must be zero or greater,must be a value less than 130
- constraints: must be zero or greater, must be a value less than 130
- May be changed whilst playing

* cutoff_slide:
Expand Down Expand Up @@ -879,7 +879,7 @@
* cutoff:
- doc: MIDI note representing the highest frequences allowed to be present in the sound. A low value like 30 makes the sound round and dull, a high value like 100 makes the sound buzzy and crispy.
- default: 100
- constraints: must be zero or greater,must be a value less than 130
- constraints: must be zero or greater, must be a value less than 130
- May be changed whilst playing

* cutoff_slide:
Expand Down Expand Up @@ -914,7 +914,7 @@
* cutoff:
- doc: MIDI note representing the highest frequences allowed to be present in the sound. A low value like 30 makes the sound round and dull, a high value like 100 makes the sound buzzy and crispy.
- default: 100
- constraints: must be zero or greater,must be a value less than 130
- constraints: must be zero or greater, must be a value less than 130
- May be changed whilst playing

* cutoff_slide:
Expand Down Expand Up @@ -949,7 +949,7 @@
* cutoff:
- doc: MIDI note representing the highest frequences allowed to be present in the sound. A low value like 30 makes the sound round and dull, a high value like 100 makes the sound buzzy and crispy.
- default: 100
- constraints: must be zero or greater,must be a value less than 130
- constraints: must be zero or greater, must be a value less than 130
- May be changed whilst playing

* cutoff_slide:
Expand All @@ -972,7 +972,7 @@
* cutoff:
- doc: MIDI note representing the highest frequences allowed to be present in the sound. A low value like 30 makes the sound round and dull, a high value like 100 makes the sound buzzy and crispy.
- default: 100
- constraints: must be zero or greater,must be a value less than 130
- constraints: must be zero or greater, must be a value less than 130
- May be changed whilst playing

* cutoff_slide:
Expand All @@ -995,7 +995,7 @@
* cutoff:
- doc: MIDI note representing the highest frequences allowed to be present in the sound. A low value like 30 makes the sound round and dull, a high value like 100 makes the sound buzzy and crispy.
- default: 100
- constraints: must be zero or greater,must be a value less than 130
- constraints: must be zero or greater, must be a value less than 130
- May be changed whilst playing

* cutoff_slide:
Expand Down Expand Up @@ -1030,7 +1030,7 @@
* cutoff:
- doc: MIDI note representing the highest frequences allowed to be present in the sound. A low value like 30 makes the sound round and dull, a high value like 100 makes the sound buzzy and crispy.
- default: 100
- constraints: must be zero or greater,must be a value less than 130
- constraints: must be zero or greater, must be a value less than 130
- May be changed whilst playing

* cutoff_slide:
Expand Down Expand Up @@ -1065,7 +1065,7 @@
* cutoff:
- doc: MIDI note representing the highest frequences allowed to be present in the sound. A low value like 30 makes the sound round and dull, a high value like 100 makes the sound buzzy and crispy.
- default: 100
- constraints: must be zero or greater,must be a value less than 130
- constraints: must be zero or greater, must be a value less than 130
- May be changed whilst playing

* cutoff_slide:
Expand All @@ -1088,7 +1088,7 @@
* cutoff:
- doc: MIDI note representing the highest frequences allowed to be present in the sound. A low value like 30 makes the sound round and dull, a high value like 100 makes the sound buzzy and crispy.
- default: 100
- constraints: must be zero or greater,must be a value less than 130
- constraints: must be zero or greater, must be a value less than 130
- May be changed whilst playing

* cutoff_slide:
Expand All @@ -1111,7 +1111,7 @@
* cutoff:
- doc: MIDI note representing the highest frequences allowed to be present in the sound. A low value like 30 makes the sound round and dull, a high value like 100 makes the sound buzzy and crispy.
- default: 100
- constraints: must be zero or greater,must be a value less than 130
- constraints: must be zero or greater, must be a value less than 130
- May be changed whilst playing

* cutoff_slide:
Expand Down Expand Up @@ -1146,7 +1146,7 @@
* cutoff:
- doc: MIDI note representing the highest frequences allowed to be present in the sound. A low value like 30 makes the sound round and dull, a high value like 100 makes the sound buzzy and crispy.
- default: 100
- constraints: must be zero or greater,must be a value less than 130
- constraints: must be zero or greater, must be a value less than 130
- May be changed whilst playing

* cutoff_slide:
Expand Down
Loading

0 comments on commit f16fbc6

Please sign in to comment.