Purebasic Forum

0 views
Skip to first unread message

Jen Ronnfeldt

unread,
Aug 5, 2024, 5:05:45 AM8/5/24
to fubyvede
Iam not looking for specific instructions here, just trying to find sources to research on how to proceed. I would like to take numbers from a Program written in purebasic and deliver them to a midi interface through the USB port. What I don't understand is how I tell the program to output a number to the USB port. I think I understand midi commands well enough to output the proper number to my midi interface, I just don't understand how I get it to the USB port.

Please explain what your problem is. If it's that you don't know how to send data in PureBasic, there is no Arduino related solution. The Arduino can process the data that it receives via the serial port. But you must give it to the Arduino.


PureBasic - a Beautiful Programming ExperienceCompiled Basic with Powerful GUI Capabilitiesby Paul Watson

March 2020Music 1: Piano-melancholy (see Music Credits)



Pure Basic: PureBasic has most of the desirable characteristics of a great language. It is a game development language & is blisteringly fast. It delivers powerful graphic image manipulations at lightning speed. It has powerful mathematical functions; but, lacks a wide range of statistical and other libraries. PureBasic is cross-platform compatible with versions for Mac OS, Windows & Linux. It comes with a very usable IDE. While PureBasic is not free, the entire package with IDE is less expensive than a quality IDE for Python & other high level languages.





PureBasic IDE with Pop-Up Display superimposed

The included IDE is a 'zero learn time' pleasure to use. Program listings are automatically indented (for loops, while loops etc.) for easy comprehension of program logic. And the language exhibits a consistent, natural feeling set of commands (e.g. box(x1,y1,width,height) & structure. PureBasic error messages generally identify the location & clearly describe the problem.



Pure Basic thrives in the GUI world. It builds drop down menus & GUI control panels full of widgets with elegance. It also has a visual designer (VD) to achieve 'just the right layout' for your GUI panels (Personally, I have not used the 'VD'). If you want to build a fast, modern looking program, PureBasic is an excellent solution. These capabilities come with the package, so there is no need for GUI related libraries.





PureBasic Help Screen for Box Command

PureBasic has excellent resources for learning the language & resolving difficult programming issues. Help screens are very clear & provide simple examples. Help screens have duel organisation, both 'topical' & 'alphabetic'. Free documentation can be downloaded using links on the PureBasic Forum web site & visitors are welcome. Documentation is available in French, English, German, Russian & Chinese.



Helpful User Community: I have found the Pure Basic forum to be a group of positive & helpful individuals willing to give of themselves to others. The creator of Purebasic (Fred) is likewise an excellent, level headed guy who curates the forum with compassion. 'Who cares?', you might ask. For most of us, programming can be a demanding & sometimes frustrating experience. Sometimes we miss something simple that stop us for hours. Having a team of helpful experts is a great plus.



Negatives: Pure Basic was developed for creating computer games. It has powerful capabilities for 3-D mapping, moving map displays & floating transparent background images across the screen. It has features built in to handle 'bone derived' figure motion. While it is a power house of graphic & game oriented features, it lacks very common features built into most languages -- like routines that print nice tables of data having 4 decimal places. While a dozen lines of code 'whips' this problem, it is more convenient to have these facilities provided. While some 3rd parties are available, a wide selection of libraries (such as for statistical analysis) are not available.



Fairly recently, I updated my Mac operating system to Mac OS High Sierra. My original PureBasic download proved incompatible. The PureBasic Forum provided the answer: Download and install xCode (free from Apple) and download the most recent up-date for PureBasic (also free). The PureBasic update is fast, solid & beautiful --- just like my original version. I am still busy finishing up a Python project, but I am anxious to get back to the beauty & simplicity of PureBasic.



My Favourite Language: Of all the languages I have used (see note 1), Pure Basic is my favourite. For doing Engineering & Scientific applications, I sometimes find Python more convenient because of the powerful libraries that are readily available. While Python has a nice syntax & fairly 'natural' naming for its functions, Purebasic is faster, easier to use & more intuitive.


Want to Try it Out? If you would like a trial version of PureBasic, use the link below. A limited licensed download (with most features) is available for Windows, Mac OS or Linux. If you decide to try it out, please use one of the educational links below because print 'Hello World!' does not work in PureBasic's GUI world! The simplest PureBasic GUI code generating a "hello world" PopUp is shown below. (The second illustration in this article shows the on screen Pop-Up):MessageRequester("Hello World!","PureBasic is here!"); popup message boxDebug('The Debug command is a down & dirty output method'); usually used during debuggingEnd


PureBasic is a commercially distributed procedural computer programming language and integrated development environment based on BASIC and developed by Fantaisie Software for Windows, Linux, and macOS. An Amiga version is available, although it has been discontinued and some parts of it are released as open-source. The first public release of PureBasic for Windows was on 17 December 2000. It has been continually updated ever since.


PureBasic compiles directly to IA-32, x86-64, PowerPC or 680x0 instruction sets, generating small standalone executables and DLLs which need no runtime libraries beyond the standard system libraries. Programs developed without using the platform-specific application programming interfaces (APIs) can be built easily from the same source file with little or no modification.


PureBasic supports inline assembly, allowing the developer to include FASM assembler commands within PureBasic source code, while using the variables declared in PureBasic source code, enabling experienced programmers to improve the speed of speed-critical sections of code. PureBasic supports and has integrated the OGRE 3D Environment. Other 3D environments such as the Irrlicht Engine are unofficially supported.


PureBasic is a native cross platform 32 bit and 64 bit BASIC compiler. Currently supported systems are Windows, Linux, macOS. The AmigaOS version is legacy and open-source. The compiler produces native executables and the syntax of PureBasic is simple and straightforward, comparable to plain C without the brackets and with native unicode string handling and a large library of built-in support functions.[2] It can compile console applications,[3] GUI applications,[4] and DLL files.[5]


And the following variant of the same code, which instead uses an inline Windows API call with no need for declarations or other external references, will create an even smaller 2.0 KiB (2,048 bytes) standalone x86 executable for Windows.


PureBasic is a "Second generation BASIC" language, with structured conditionals and loops, and procedure-oriented programming supported. The user is not required to use procedures, so a programmer may opt for a coding style which includes .mw-parser-output .monospacedfont-family:monospace,monospaceGoto, Gosub Label, and Return.


PureBasic has its own form designer to aid in the creation of forms for applications, but other third-party solutions are also available.[10][11][12] The original non-integrated Visual Designer was replaced with a new integrated Form Designer on 14 Feb 2013.[13]


PureBasic provides an online forum for users to ask questions and share knowledge. On 6 May 2013 the English language forum had 4,769 members and contained 44,043 threads comprising 372,200 posts since 17 May 2002.[14]

3a8082e126
Reply all
Reply to author
Forward
0 new messages