Dear Rob,
The two issues are solved -one will be fixed shortly.
"Error code 27": it has always been there. It was impossible to define a homomorphism (such as TRANS1 here) using notes in English convention because the compiler would not accept terminal symbols starting with uppercase characters. Indeed this was a contradiction since English note symbols are terminal symbols!
The bug is very easy to fix. The following is for Anthony, the only person owning a proper compiler for this version:
-----
In "CompileGrammar.c"
OkBolChar(char c)
// Characters accepted as first one of terminal name
{
if(islower(c) || isupper(c)) return(YES); /* Modified 23/11/2009 */
...
-----
The corrected version will do something entirely new, i.e. accepting names of terminal symbols starting with uppercase, such as for instance "Mysound" instead of "mysound" or "mYsound".
Till yesterday I was reluctant to the idea that a terminal symbol might start with an uppercase character because it would be confused with a variable. So what? After all, terminal symbols can be rewritten and behave the same way as variables (except in the internal machine). Therefore we could say now that a "terminal symbol" is a particular variable that is mapped to a sound-object - via a sound-object prototype or because it is a "simple note".
Practically, the only way to know whether "Mysound" is just a variable or a terminal symbol will be to look for its occurrence in the Alphabet window.
Confusing variables with terminal symbols has a draw-back: if a variable is left uninstantiated in the musical piece, it will simply be erased. Still, BP2 will gently warning you before doing so.
Now, your second issue: "it's not a bug, it's a feature" (Bill Gates).
"Capture selection as..." does not create a MIDI file but a MIDI stream, i.e. a sequence of MIDI codes stored in the computer's memory. Once you have stored the MIDI stream you can paste it to a sound-object prototype. There is a "Paste MIDI stream" button on the sound-object prototype window that is activated when a MIDI stream is in memory.
To create MIDI files all you need to do is check the "Write MIDI files" button on the lowest settings window. Then "Play" the item or the selection. After playing, BP2 will ask you whether you want to save it to a MIDI file.
(I have just checked that an item exported as a MIDI file can be imported to a sound-object prototype.)
Bernard Bel
>Hi Bernard
> It's such a pleasure to be talking BP2 again after all this time! The alphabet that stops things is:
>
>TRANS1
>C1 --> C#1 --> D1 --> G#1 --> C2 --> C#2 --> D2 --> E2 --> F2 --> G2 --> G#2 --> A#2 --> C3 --> C#3 --> D3 --> D#3 --> E3 --> F3 --> G3 --> G#3 --> A3 --> A#3 --> B3 --> C4 --> C#4 --> E4 --> F4 --> F#4 --> G4 --> A4 --> A#4 --> B4 --> C5
>
>--------------------
>
>It gives me the Trace message:
>
>Can't make sense of "C1"
>??? C1 --> C#1 --> D1 --> G#1 --> C2 --> C#2 --> D2 --> E2 --> F2 --> G2 --> G#2 --> A#2 --> C3 --> C#3 --> D3 --> D#3 --> E3 --> F3 --> G3 --> G#3 --> A3 --> A#3 --> B3 --> C4 --> C#4 --> E4 --> F4 -->
>§§§ Error code 27: terminal symbol contains unwanted character
>
>I've tried some of the old example from Thierry Mountaudon and Harm Visser, and I get the same with anything that has an English convention alphabet.
>
>But the MIDI capture problem is that when I highlight anything in the Data window and click Capture selection as ..., in the control panel, I get a message saying No MIDI events captured. I tried with one of Harm Visser's projects and didn't get that. Wasn't there a dialogue box that asked for a file name and location?
>
>I'm really keen to get BP2 on the road again. I've been contemplating moving to Max or AC Toolbox, etc, but BP2 so easily handles the peculiar transpositions that I'm particularly interested in. And it's ability to deal with text raw material is wonderful! I'll hopefully be working quite a bit with it from now, so maybe I can at last contribute (I'm just a musician, not a programmer, though! 8-)
>
>Thanks for your help. Hope all goes well for France in the coming World Cup (apart from Henry's hand!)
>
>Cheers
>
>Rob
>
>
>--
>Robert Moore
>CQV publishing and editing
>10 Hawthorn Rd
>Caulfield North Vic 3161
>Phone: 03 9504 8212
>Mobile: 0411 950 649
>--
>
>Dear Rob,
>
>Yes, development is still on the agenda even though we have been busy with other urgent matters for a year or so!
>
>The first error is bizarre because I also checked old material on the new version, including items based on English note convention. Can you send me a copy of the grammar that is not compiled properly? (I guess the error occurs at this stage.)
>
>With respect to MIDI data I remember checking that this version is saving correct MIDI files. However my tests were on MacOS 10.4.11. Now I have a 10.5.x machine and will look into this matter with great care. I also suggest that you send me a MIDI file that was not recognized. (MIDI file procedures were not part of our routine checks during development.)
>
>Regarding development we are still "half way" (possibly further?) producing the Universal Binary version. Two weeks ago I had discussions with a scientist who is eager to direct new developments (outside music production) using Linux. I understand that they should start from Universal Binary source code. Therefore we are trying to raise funds and find developers for this next round, inclusing the UB stable version.
>
>Thanks for posting this list on problems as it will incite us to revise priorities!
>
>Bernard Bel
>
>
>------------------------------------------------------------------------------
>Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
>trial. Simplify your report design, integration and deployment - and focus on
>what you do best, core application coding. Discover what's new with
>Crystal Reports now. http://p.sf.net/sfu/bobj-july
>_______________________________________________
>bolprocessor-devel mailing list
>bol...@li...
>https://lists.sourceforge.net/lists/listinfo/bolprocessor-devel
|