BBC BASIC
« I must be missing something simple .......... »
Welcome Guest. Please Login or Register. Mar 31st, 2018, 11:27pm
ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018. We apologize Conforums does not have any export functions to migrate data. Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.
Thank you Conforums members.
Cross-platform BBC BASIC (Windows, Linux x86, Mac OS-X, Android, iOS, Raspberry Pi)
Did you not read my latest message (posted 15 minutes before yours)? Running the amidi commands in the background speeds them up hugely here (although obviously there's a danger of them 'overlapping', depending on how reliably timidity manages to serialise them).
But since the GL Driver appears to be incompatible with MIDI sound, and without it BBC BASIC is unusably slow (I tried, but it's impossible), you will have no choice but to find an alternative approach.
Perhaps you might consider returning to BBC BASIC when Raspbian Stretch is released and (hopefully) the GL Driver is stable and doesn't break other things.
Richard.
How does one "run commands in the backround" ? It's not the BBC BASIC as much as the 'system' commands They bog down even Sonic-Pi which is quite good time-wise By another approach, I mean an address (file) to write to rather than making the 'system' commands. probably something like " /dev/snd/midiC1D0 " see: https://wiki.archlinux.org/index.php/Timidity
It's documented in the BB4W manual under *RUN. Apparently you can't see, or haven't bothered to read, my post (it's reply #29 in the thread) which contains a complete program demonstrating it. It plays the notes very quickly.
Quote:
It's not the BBC BASIC as much as the 'system' commands
'system' commands aren't slow, certainly not in the sort of timescale relevant to music. The issue appears to be that the amidi command takes quite a time before it returns. Running it in the background means that you don't need to wait until it returns, but with the risks outlined in my previous post.
I'm locking this thread now before it drives me completely mad.