Hi everyone, I've been having problems over the past couple of days with something that on the face of it seems really, really simple but is actually proving to be a real pain in the derrière, and it's really starting to play havoc with my patch (a patch that has taken 6 months to build!).
Basically - I need to import an audio file into a buffer without resizing the buffer. The buffer needs to stay 60000ms long, but I also need to report the length of the audio file I just imported into the buffer, and I can't guarentee that the audio file will have originated within the max search path (which I guess rules out sfinfo~!). "Use the read command" I hear you shout! Unfortunately there also appears to be a bug on macintosh that prevents you from using [dropfile] and the read command, and the read command on its own doesn't report the file path so I can't get the file length - these problems are all detailed within this example patch:
Your challenge then, should you choose to accept it (and please do cause this is driving me absolutely mental!):
Load a sound file into [buffer~] using either the read command or [dropfile], maintain a [buffer~] that is 60000ms long regardless of what length sample you put into it, and report the length of the audio file you just loaded in (an audio file that could come from anywhere on the computer, not just the max search path). This needs to happen with one load action i.e dropping a file onto [dropfile] once or clicking a single button.
The patch I've included should demonstrate the issue I'm having, please help! :)