following with great fun the initial tutorial and on the following line of code write %c/tmp/rebolSmalltesttonight.txt name I get the following error: ** Access Error: Cannot open /c/program files/rebol/view/c/tmp/rebolSmalltesttonight.txt ** Where: halt-view ** Near: write %c/tmp/rebolSmalltesttonight.txt nam -- It looks like there is a default path setup from the install. I think it's a shame that although I gave it a fully qualified file name it failed so miserably... Q: how do I deal with such idiosyncrasy? -- OK, I could probably fix the hard coded path... but I'm more interested in the reason why it did not saved it in the first place. Obviously the path exists. FYI the file does not. Perhaps there is another function Save()... thank you for your patience
OK SILLY ME! EMBARASSING!! %/C/path I was missing the first "/" why is it that you can see it after you posted it? ;-) thanks!
Hi Graham: thanks I have another one: THIS WORKS: print "hi line1" newline "line 2 this does NOT: print "hi line1" ^/ "line 2 it errors with ** Syntax Error: Invalid path -- ^/ ** Near: (line 1) print "hi line1" ^/ "line 2" any idea? thanks
OK Please allow me to add another one tonight: >> audioFile: load %/C/tmp/Cubase_5/LoopBaby.mp3 == ID3 then when I try audioFile/type it gives me: ** Script Error: Cannot use path on word! value ** Where: halt-view ** Near: audioFile/type any clue please? The first command looks like it worked and it returned the mp3 tag ID (which is empty in this mp3 of mine) then what happens? form the tutorial at http://re-bol.com/rebol.html#section-2 it sounds like it should give me information on the file? is that right? thank you
It's not working in both cases .. it just seems to work! try Code: print [ "line 1" "^/" "line 2" ] print takes one argument. See how the one that seems to work has quotes around the second line as it is just echoing the value.
Code: >> f: load %crimsonandClover.mp3 == ID3 >> type? f == word! Rebol doesn't know about mp3 files so I'm surprised that the ID appears
Thanks Graham... I had not paid attention in the example I was following that the "^/" was actually inside the double quoted string.. it was getting too late last night but I couldn't close the lead of the laptop in my hotel room..
Hi Zeem, When it comes to playing sounds, REBOL only has native support for .wav files. For mp3 files in REBOL 2 Windows, I've used libwmp3.dll. Take a look at http://re-bol.com/rebol.html#section-10.14 . For REBOL 3, Anton has started support for FMOD: https://github.com/Oldes/R3-extension-FMOD