We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ffdae3c commit f8222fdCopy full SHA for f8222fd
env.go
@@ -198,7 +198,11 @@ func shapeNumber(shapeValue interface{}) Input {
198
return C(5)
199
}
200
switch val := shapeValue.(type) {
201
+ case int:
202
+ return C(float32(val))
203
case float64:
204
205
+ case float32:
206
return C(val)
207
case Input:
208
return val
@@ -216,6 +220,8 @@ func shapeNumber(shapeValue interface{}) Input {
216
220
// isValidUgenInput returns false if val is not a valid ugen input and true otherwise.
217
221
func isValidUgenInput(val interface{}) (Input, bool) {
218
222
switch x := val.(type) {
223
224
+ return C(float32(x)), true
219
225
226
return C(float32(x)), true
227
case float32:
0 commit comments