nutter3
Posts a bit
Pythonized for a while ;)
Posts: 117
|
Python!
Jan 30, 2009 21:53:44 GMT -5
Post by nutter3 on Jan 30, 2009 21:53:44 GMT -5
Hey guys.. I've recently begun a journey into the jungle.. Python with the PortMidi module (pypm). So its a possibility that the MIDI program i've been talking about on this site might actually become a reality! As for now, im only working on the two MIDI units i have myself, the AlphaTrack, and an X-Board.At time of writing I'm capable of fully using the Alphatrack due to that the company released the MIDI implementation (!), and the Keyboard is a Generic MIDI board, so hopefully ill manager a small MIDI looper written in Python! Main thing i found is that i knew LOTS about program structure and how to handle a given "Situation" the easyest way due to that I had the B4GL experince! So this is kinda a thank you message to those who helped me learn the B4GL i know, you know who you are! And to Tom M for creating a great easy to learn and most importantly FUN programming language! Thanks, -Harry vh
|
|
|
Python!
Jan 31, 2009 16:24:34 GMT -5
Post by Darkjester on Jan 31, 2009 16:24:34 GMT -5
Hello nutter3 i have as well began that adventure into the"jungle" im starting with python, having a basic understanding of c++ like i have, i enjoy this language called Python far better than c++, what would be good for sound library use?
-Darkjester
|
|
nutter3
Posts a bit
Pythonized for a while ;)
Posts: 117
|
Python!
Feb 2, 2009 18:50:19 GMT -5
Post by nutter3 on Feb 2, 2009 18:50:19 GMT -5
Theres quite a few modules to choose from, really depends on if you need\want *ALL* platform support (Linux,Mac & Win) or just win\just whichever. All platforms and your kinda limited to either PortAudio, PortMidi, even though i think its possible to link to any C++ headers in python.. havent done it myself. If your dev-ing apps for Linux and Mac, JACK Audio Connection Kit is the most usable with the "serious" apps. (Ardour, RoseGarden, LMMS, Jamin to name a few). If your only going with windows, i think there's 2 packages called RtAudio and RtMidi, theyre C++ headers with Python bindings r summit... not sure, they should work! Here is the link to the official package repository.. pypi.python.org/pypi (<- Hyperlinks broken? the link above dnt work) Enjoy, and if u code anything useful, send us a link
|
|
|
Python!
Feb 3, 2009 16:07:24 GMT -5
Post by Darkjester on Feb 3, 2009 16:07:24 GMT -5
kewl, my goal is to make a game with python, and i needed a sound lib, its going to be for windows(sorry linux guys). How can i make an exe with python? how bout some dll's? Perhaps making a dll sdk for basic4gl using python? thnx for your responce
-Darkjester
|
|
nutter3
Posts a bit
Pythonized for a while ;)
Posts: 117
|
Python!
Feb 9, 2009 19:02:53 GMT -5
Post by nutter3 on Feb 9, 2009 19:02:53 GMT -5
Hey,
If its only Game coding your after, i'd seriously recomend PyGame, its a brilliant module based on SDL. SDL provides: audio, keyboard, mouse, joystick, 3D hardware via OpenGL, and 2D video framebuffer.
that should be all you need for a game!!
To make an EXE Py2Exe is the program (well.. python module) your looking for. There's some work to compile an Exe from source, but it quite well documented.
As for making a DLL SDK for B4GL, B4GL is mostly C/C++ i think, and I dont speak that... Besides what would be the advantage? Ok different keywords, but speed wise, Python is still and Interpreted language, if its speed your after u know where to go!
-Harry
|
|
|
Python!
Feb 9, 2009 20:01:13 GMT -5
Post by Darkjester on Feb 9, 2009 20:01:13 GMT -5
Good thoughts harry you answered all meh questions, for game programming ill eventually port to c++, and use pythong as proto lang cause oop is so much faster in pythong. As for the dll's your prolly right i should just stick to coding them in c++ -Josh AKA Darkjester (yes djlinue meh name is josh to lol)
|
|
|
Python!
Feb 9, 2009 20:15:14 GMT -5
Post by Wayne Rayner on Feb 9, 2009 20:15:14 GMT -5
I tried to learn pythyn but i just don't get it lol
-Wayne
|
|
|
Python!
Feb 10, 2009 6:49:57 GMT -5
Post by matthew on Feb 10, 2009 6:49:57 GMT -5
For anyone who is interested in Python; davy used to have some PyOpenGL programs on his wikispace but as you all know he deleted that sometime ago. I recently found the programs on an old DVD, so I've uploaded them to my wikispace & took some screenshots of them running. You can find the page on my wiki here.
|
|
nutter3
Posts a bit
Pythonized for a while ;)
Posts: 117
|
Python!
Mar 10, 2009 20:55:13 GMT -5
Post by nutter3 on Mar 10, 2009 20:55:13 GMT -5
Thanks for the links to the GL stuff there, had a look at them. Im using python for its "jack of all trades-ness" more than for graphics coding though!
As yee know im doing an audio project ATM, heres an update, i got the basics of: Connecting JACK to my app (audio) - PyJack module Connecting AlsaSequencer ports to my app (midi) alsaSeq Module, Simple GUI to show JACKs status, buffer lenghts, sample rates etc.
Currently coding on a program to translate MIDI cc's to messages that programs will be able to interpret. (Ie: Write a dictionary of MIDI CC's : Effects thereof)
I've got a brainchild which is a great help to using JACK with multiple clients and will Drastically cut down on studio setup time. (ie, loading all apps, connecting patchbays etc)
Once i have a stable functional program Im planning on releasing it to GPL, and using it! -H
|
|