[Impromptu] Error with loading samples in sampler
Andreas Körner
andi at jaak.de
Sun Sep 20 17:58:02 GMT 2009
Hi @ all,
i'm new to this list...
I'd like to use impromotu's sampler to load the classic GarageBand
piano...
As i'm new to Scheme (coming from the beautiful python) I did this:
;I want to build an au host for my personal usage on stage
;therefore this funny namespaces
(define klau:instr:gbpiano:sampleslist (list
(cons 024 "/Library/Application Support/GarageBand/Instrument Library/
Sampler/Sampler Files/Grand Piano/024_C0KM56_M.wav")
... Sample Files)
))
;create list with loaded samples
(define klau:instr:gbpiano:sampledata
(map (lambda (e) (
cons (car e) (au:load-audio-data (cdr e))))
klau:instr:gbpiano:sampleslist))
;;returns the node of the audio unit, filled with nice piano samples ;)
(define (klau:instr:gbpiano)
(let au (au:make-node "aumu" "play" "MOSO"))
(for-each (lambda (e) (au:play:set-sample-data au (car e) (cdr
e))) klau:instr:gbpiano:sampledata)
'au)
Problem is: impromtu closes without raising an error (if i run
(klau:instr:gbpiano))
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000018
Crashed Thread: 8
is there anything I could change in my code so this will get working?
thank you
andi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.moso.com.au/pipermail/impromptu/attachments/20090920/414eff4b/attachment-0001.htm
More information about the Impromptu
mailing list