You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: app/server/ruby/lib/sonicpi/synths/synthinfo.rb
+23-17Lines changed: 23 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -4379,9 +4379,6 @@ def synth_name
4379
4379
"sc808_claves"
4380
4380
end
4381
4381
4382
-
defon_start(studio,args_h)
4383
-
args_h[:rand_buf]=studio.rand_buf_id
4384
-
end
4385
4382
4386
4383
defdoc
4387
4384
"Claves of the SC808 drum machine based on [Yoshinosuke Horiuchi's](https://www.patreon.com/4H/posts) implementation of the legendary rhythm composer from the early 80s. This is a percussive synth, so it does not use the standard envelope parameters, neither does it feature slideable parameters."
@@ -4391,32 +4388,41 @@ def arg_defaults
4391
4388
{
4392
4389
:note=>99,
4393
4390
:amp=>1,
4391
+
:amp_slide=>0,
4392
+
:amp_slide_shape=>1,
4393
+
:amp_slide_curve=>0,
4394
4394
:pan=>0,
4395
+
:pan_slide=>0,
4396
+
:pan_slide_shape=>1,
4397
+
:pan_slide_curve=>0,
4398
+
:click=>1,
4399
+
:decay=>0.1,
4400
+
:decay_curve=> -20
4395
4401
}
4396
4402
end
4397
4403
4398
-
defdefault_arg_info
4399
-
super.merge({
4400
-
:note=>
4404
+
defspecific_arg_info
4405
+
{
4406
+
:click=>
4401
4407
{
4402
-
:doc=>"Note to play. Either a MIDI number or a symbol representing a note. For example: `30`, `52`, `:C`, `:C2`, `:Eb4`, or `:Ds3`",
4403
-
:validations=>[v_positive(:note)],
4404
-
:modulatable=>false,
4405
-
:midi=>true
4408
+
:doc=>"Amount of initial click to the claves sound. 0 is no click and 1 is a hard click.",
4409
+
:validations=>[v_between_inclusive(:click,0,1)],
4410
+
:modulatable=>false
4406
4411
},
4407
-
:amp=>
4412
+
:decay=>
4408
4413
{
4409
-
:doc=>"The amplitude of the sound. Typically a value between 0 and 1. Higher amplitudes may be used, but won't make the sound louder, they will just reduce the quality of all the sounds currently being played (due to compression.)",
4410
-
:validations=>[v_positive(:amp)],
4414
+
:doc=>"Amount of decay for the claves. Higher numbers increase the decay duration.",
4415
+
:validations=>[v_positive_not_zero(:decay)],
4411
4416
:modulatable=>false
4412
4417
},
4413
-
:pan=>
4418
+
4419
+
:decay_curve=>
4414
4420
{
4415
-
: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.",
0 commit comments