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
+15-32Lines changed: 15 additions & 32 deletions
Original file line number
Diff line number
Diff line change
@@ -3770,56 +3770,39 @@ def arg_defaults
3770
3770
:pan_slide=>0,
3771
3771
:pan_slide_shape=>1,
3772
3772
:pan_slide_curve=>0,
3773
-
:attack=>0,
3774
-
:decay=>0,
3775
-
:sustain=>0,
3776
-
:release=>1,
3777
-
:attack_level=>1,
3778
-
:decay_level=>:sustain_leval,
3779
-
:sustain_level=>1,
3780
-
:ndecay=>30,
3773
+
:decay=>2,
3774
+
:decay_curve=> -7,
3781
3775
:attenuation=>1,
3782
3776
}
3783
3777
end
3784
3778
3785
-
defdefault_arg_info
3786
-
super.merge({
3787
-
:note=>
3788
-
{
3789
-
:doc=>"Note to play. Either a MIDI number or a symbol representing a note. For example: `30`, `52`, `:C`, `:C2`, `:Eb4`, or `:Ds3`",
3790
-
:validations=>[v_positive(:note)],
3791
-
:modulatable=>false,
3792
-
:midi=>true
3793
-
},
3794
-
:amp=>
3795
-
{
3796
-
: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.)",
3797
-
:validations=>[v_positive(:amp)],
3798
-
:modulatable=>true
3799
-
},
3800
-
:pan=>
3801
-
{
3802
-
: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.",
3803
-
:validations=>[v_between_inclusive(:pan, -1,1)],
3804
-
:modulatable=>false
3805
-
},
3806
-
})
3807
-
end
3808
3779
3809
3780
defspecific_arg_info
3810
3781
{
3811
-
:ndecay=>
3782
+
:decay=>
3812
3783
{
3813
3784
:doc=>"Internal decay of the bass drum in seconds. Drive it up to 5 or so, in order to get that bass carpet, often featured in hip-hop. Note, you need to increase the duration of the envelope (e.g. the release: opt) to hear this internal decay.",
3814
3785
:validations=>[v_positive(:decay)],
3815
3786
:modulatable=>false
3816
3787
},
3788
+
:decay_curve=>
3789
+
{
3790
+
:doc=>"Curve value for the decay of the bass drum",
3791
+
:validations=>[],
3792
+
:modulatable=>false
3793
+
}
3817
3794
:attenuation=>
3818
3795
{
3819
3796
:doc=>"Base frequency attenuation. Use values around 0.2 or lower for giving the bassdrum a more artificial sound.",
3820
3797
:validations=>[v_positive(:attenuation)],
3821
3798
:modulatable=>false
3822
3799
},
3800
+
:click=>
3801
+
{
3802
+
:doc=>"Amount of initial click to the drum sound. 0 is no click and 1 is a hard click.",
0 commit comments