digego / extempore

A cyber-physical programming environment
1.41k stars 127 forks source link

Fix load-sampler function #351

Closed cyblue9 closed 5 years ago

cyblue9 commented 5 years ago

When I evaluated following code,

(define fpath  "./libs/piano/SalamanderGrandPianoV2_44.1khz16bit/44.1khz16bit")
(load-sampler piano
              fpath
              0
              parse-salamander-piano)

following error was displayed.

Error: evaluating expr: (load-sampler piano
              fpath
              0
              parse-salamander-piano)
stack-catch: ()
stack-catch: ()
stack-catch: ()
stack-catch: ()
stack-catch: ()
stack-catch: ()
stack-catch: ()
stack-catch: ()
stack-catch: ()
stack-catch: ()
Attempting to return a string from a non-string obj fpath

Maybe, there is a slight mistake in the macro. So, fixed.

Please review!