niceecin

synthdef indexing error

Jul 14th, 2020
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.22 KB | None | 0 0
  1. ERROR: Primitive '_BasicAt' failed.
  2. Index not an Integer
  3. RECEIVER:
  4. Instance of Array { (00000194ABF182B8, gc=8C, fmt=01, flg=10, set=02)
  5. indexed slots [4]
  6. 0 : Integer 0
  7. 1 : Integer 1
  8. 2 : Integer 2
  9. 3 : Integer 3
  10. }
  11.  
  12. PROTECTED CALL STACK:
  13. Meta_MethodError:new 00000194A73E7180
  14. arg this = PrimitiveFailedError
  15. arg what = Index not an Integer
  16. arg receiver = [ 0, 1, 2, 3 ]
  17. Meta_PrimitiveFailedError:new 00000194A73ED740
  18. arg this = PrimitiveFailedError
  19. arg receiver = [ 0, 1, 2, 3 ]
  20. Object:primitiveFailed 00000194A6FE3B00
  21. arg this = [ 0, 1, 2, 3 ]
  22. a FunctionDef 00000194AAFFAD78
  23. sourceCode = "{
  24. arg int = 1;
  25. var array = #[0,1,2,3];
  26. array.at(int.asInteger).postln;
  27. }"
  28. arg int = an OutputProxy
  29. var array = [ 0, 1, 2, 3 ]
  30. SynthDef:buildUgenGraph 00000194AABDCF40
  31. arg this = a SynthDef
  32. arg func = a Function
  33. arg rates = nil
  34. arg prependArgs = [ ]
  35. var result = nil
  36. var saveControlNames = nil
  37. a FunctionDef 00000194AABDB580
  38. sourceCode = "<an open Function>"
  39. Function:prTry 00000194A7660040
  40. arg this = a Function
  41. var result = nil
  42. var thread = a Thread
  43. var next = nil
  44. var wasInProtectedFunc = false
  45.  
  46. CALL STACK:
  47. MethodError:reportError
  48. arg this = <instance of PrimitiveFailedError>
  49. Nil:handleError
  50. arg this = nil
  51. arg error = <instance of PrimitiveFailedError>
  52. Thread:handleError
  53. arg this = <instance of Thread>
  54. arg error = <instance of PrimitiveFailedError>
  55. Object:throw
  56. arg this = <instance of PrimitiveFailedError>
  57. Function:protect
  58. arg this = <instance of Function>
  59. arg handler = <instance of Function>
  60. var result = <instance of PrimitiveFailedError>
  61. SynthDef:build
  62. arg this = <instance of SynthDef>
  63. arg ugenGraphFunc = <instance of Function>
  64. arg rates = nil
  65. arg prependArgs = nil
  66. Interpreter:interpretPrintCmdLine
  67. arg this = <instance of Interpreter>
  68. var res = nil
  69. var func = <instance of Function>
  70. var code = "SynthDef(\test, {
  71. arg int =..."
  72. var doc = nil
  73. var ideClass = <instance of Meta_ScIDE>
  74. Process:interpretPrintCmdLine
  75. arg this = <instance of Main>
  76. ^^ The preceding error dump is for ERROR: Primitive '_BasicAt' failed.
  77. Index not an Integer
  78. RECEIVER: [ 0, 1, 2, 3 ]
Advertisement
Add Comment
Please, Sign In to add comment