To explain why the last entry is $f1, I need to pass that number on for another operation if it doesn't meet any of the conditions. But of course that was the issue. I've changed the 'true' entry to a three digit number, that then gets caught by a [sel] object to trigger the soundfile.
So, I'm working on a patch that is supposed to trigger a sound file to play on the hour and on the half between a specific start and end time.
I'm getting the time using zexy's [time] object. I'm then feed that into an [expr] object that's performing some basic logic to determine if the current time is between the specified start hour and end hour for playback, and either at the beginning of the hour or the beginning of the half hour, and the seconds are equal to zero. If all these conditions are true, the [expr] object outputs a 1, which then triggers the soundfile to play.
This expression looks like this:
expr if(($f1 >= $f4 && $f1 <= $f5) && ($f2 == 30 || $f2 == 0) && ($f3 == 0), 1, $f1)
$f1 is the current hour
$f2 is the current minute
$f3 is the current second
$f4 is the start hour (this is currently set to 12 – i.e. noon)
$f5 is the end hour (currently set at 18 – i.e. 6pm)
It works perfectly. However, if $f1, $f2, $f3 are values like 1, 29, 32 (that's 01:29:32 in 24 hour time), the [expr] gives me true when it should be false! 01:29:32 is not within the specified start or end hour for playback.
I can't figure this out at the moment. I'm wondering if someone can help point out what dumb mistake I'm probably making.
Hey, so I was just working on a patch and realised I could use some zexy externals to help with my problem. But when I try to install zexy, I get all the help files and any other zexy objects that are made as abstractions (.pd files) but there's no .pd_darwin files that have been installed at all. I've installed other externals recently with no problems. I'm wondering what the hell I'm doing wrong?
I'm installing the latest release available (I've tried the other too, with the same problem)
I'm running Mac OS Catalina....
64bit PD on my Macbook (macOS Catalina).
On the Pi it's 32bit (I'm presuming?).
The file I was originally trying to play was 3.2GB
I made a smaller file that was 398MB and that worked on the Pi no problem. I've made other shorter files (similar file sizes) and I was getting the same error... Sort of stumped.
EDIT: Ignore the last part of my post. I think I was doing something stupid when rendering out...
I'm trying to play a (quite large) 8-channel sound file via readsf~ on my Raspberry Pi (I have an 8-channel soundcard for the Pi, which is tested and works using Pure Data).
When I try to play the file, I get the following error:
dsp: /home/pi/Desktop/soundfile.wav: Value too large for defined data type
Does anyone have any ideas what this problem would be? I'e tested this on my Macbook and I can get the file to play. I'm wondering if the file is somehow too large for the Raspberry Pi?
EDIT: The file I was using with the Pi was around 1 hour long (44.1/24 WAV file). I made a shorter 10 minute snippet and it's working. Does anyone know why I can't use the longer file? I didn't think this would be a problem...
Yeap, that would explain it. It's amazing what you overlook.
I compiled the externals it all seems to work well using the Makefile.
(for other people who want to compile this for their OS, all you need to do is cd into the directory where all the compilation files are and type "make -f Makefile" in Terminal)