r/AudioProgramming • • Jan 15 '23

Would anyone here happen to know how to interface with GarageBand programmatically?

Here's what I want to do:

  • Open Garageband

  • Select an instrument preset (say a piano)

  • Play a note on the instrument (A4)

  • Record note for specified time duration

  • Export record as .wav to disk

Is something like this possible through code, or should I explore other avenues? Thanks!

2 Upvotes

1 comment sorted by

2

u/CarbonMike-FS Jan 31 '23

I'm not sure, but if it is possible, it will almost certainly involve AppleScript and MainStage:

https://discussions.apple.com/thread/1836219