|
Post by rosy on Aug 20, 2021 3:48:09 GMT -6
Can't make geany treat .bas and .BAS the same? You can set vsync mode at the beginning of the program, before opening the window ... You can set vsync to true by default ... Synaptic shows libsdl2-2.0-0 It looks like the position of the mouse is read with a delay ... Faster response sets vsync to 0 I failed to do the web version. MIDI does not play normally on Linux. "Could not load music: Couldn't open /etc/timidity/freepats.cfg" - I don't think I have this file
Another strange behavior: I count the number of frames per second. When the computer is playing against the computer it says 60-61. When a human game these values increase even to 80, then the FPS function gives a different result, often 1. At vsync = 0 it gives about 538 frames. In Windows 10, nothing strange is happening. There is a slight delay of the mouse, and the number of frames is 800, so the difference is quite large. I'm curious how much it is in Windows 7 ...
|
|
|
Post by johnno56 on Aug 20, 2021 17:02:36 GMT -6
Timidity (and freepats) are not, by default, installed. Timidity should be in the repository and will, by default, install the freepats soundfont... Well, that's how it is for Linux Mint, I'm not sure about MX (MX is Debian based so it should be the same...) To play a midi file then a program like Audacity may be the way to go... But for system use... Timidity may be your best option.
|
|
|
Post by n00b on Aug 23, 2021 12:50:59 GMT -6
johnno56 Thanks for looking into this. I wasn't aware of that library because I don't use .MID files. Much appreciated.
|
|
|
Post by johnno56 on Aug 23, 2021 14:44:58 GMT -6
Oh... I have had fun'n'games with midi, with Linux, since 2005. It was a nightmare back then... Well, it was for me, as I was new to Linux. Installation, playing and editing of midi files is SO much easier today.
Rosy. Freepats will give you basic musical instrument quality... A bit of homework for you... Freepats, like its counterparts, is a 'SoundFont'. Like text has various fonts to improve the basic system fonts... So does midi... Soundfonts provide different 'quality' of instruments. This 'could' get confusing as there are many Soundfonts. These are made by individuals mostly and as such vary in 'taste' in music...
Way back, I used an old Music Notaion program, to key in sheet music for playback. It required Timidity and back then was a pain to setup... Not so much now... I no longer use Timidity. I use MuseScore for Music Notation. It too uses the same Soundfonts. Rather than using Freepats may I suggest TimGM6mb.sf2 or FluidR3 GM2-2.sf2. Note: TimGM6 should be in your repository...
This is all well and good if you are into music notation... You will probably be looking for basic system wide midi playback. Timidity and TimGM6mb.sf2 should be in your repository. Once installed. Use a console and enter timidity -h for a list of the basic commands.
Install Timidity and a simple interface: sudo apt install timidity timidity-interfaces-extra Install Soundfonts: sudo apt install fluid-soundfont-gm fluid-soundfont-gs (in theory - freepats - is the default soundfont. If a different soundfont is required then the timidity.cfg file would need to be edited)
It's been a long time since I have used Timidity, but if you need help, I will do my best to do so.
J
|
|
|
Post by rosy on Sept 5, 2021 12:33:24 GMT -6
Any examples of new FOR opportunities... ?
|
|
|
Post by johnno56 on Sept 5, 2021 13:50:36 GMT -6
FOR?
|
|
|
Post by n00b on Sept 7, 2021 6:22:55 GMT -6
Here are some examples of FOR:
Print "---Standard FOR---" For i = 0 to 5 Print i Next
Print ""
Print "---Standard FOR with STEP---" For i = 0 to 5 Step 2 Print i Next
Print""
Print "---FOR with array counter 1 dimension---"
Dim a[5] Print "a[3] is currently ";a[3] For a[3] = 0 to 6 Next
Print "a[3] has changed to ";a[3] Print ""
Print "---FOR with array counter 2 dimensions---"
Dim a2[5,5] Print "a2[3,2] is currently ";a2[3,2] For a2[3,2] = 0 to 7 Next
Print "a2[3,2] has changed to ";a2[3,2] Print ""
Print "---FOR with array counter 3 dimensions---"
Dim a3[5,5,5] Print "a3[3,2,1] is currently ";a3[3,2,1] For a3[3,2,1] = 0 to 8 Next
Print "a[3,2,1] has changed to ";a3[3,2,1] Print ""
Print "---FOR with BYREF---"
Sub test_byref_for_arg( ByRef arg ) 'FOR With no index (will use index 0 by default) For arg = 0 to 3 Next 'FOR with index 6 For arg[6] = 5 to 9 Next End Sub
Dim array_arg[10] Print "array_arg[2] is currently ";array_arg[2] Print "array_arg[8] is currently ";array_arg[8]
test_byref_for_arg(array_arg[2]) 'Since we are passing array_arg[2] as the ByRef arg the SUB will see array_arg[2] as arg[0]
Print "array_arg[2] has changed to ";array_arg[2] Print "array_arg[8] has changed to ";array_arg[8]
Print "\n\n"
|
|
|
Post by tbird on Sept 21, 2021 21:02:43 GMT -6
Finally getting around to updating RC to "pi" and I had to upgrade my linux....I was on 18.04, my slow download speed out here in the sticks makes this a loooong process. It's worth the wait though. Glad to see things are still semi-active around here.
|
|
|
Post by n00b on Sept 22, 2021 7:20:56 GMT -6
Welcome back tbird. I am actually working on getting out the next version before the end of this month which will fix a few more bugs I did not catch in this one as well as making it a little easier to port to android and IOS. Let me know if you have any questions on any of the new features. This was a big one as far as new features and changes so please read the release notes carefully.
|
|
|
Post by johnno56 on Sept 22, 2021 7:43:08 GMT -6
tbird,
Here in Victoria, Australia, back in the "gold rush"days of the 1850's, they found the worlds largest gold nugget... It was called , "The Welcome Stranger".
Good to see you back....
J
|
|
|
Post by tbird on Sept 22, 2021 12:33:35 GMT -6
johnno56, you are a wealth of interesting facts that I didn't know. Your little history made me go look it up, and it was a good little read....welcome stranger indeed! Glad to be back, tonight will sort through whatever compile errors my engine throws at me with the update. n00b, already another version on it's way, boy do I feel out of the loop.
|
|