KMid2 prototype

View: New views
7 Messages — Rating Filter:   Alert me  

KMid2 prototype

by Bugzilla from pedro.lopez.cabanillas@gmail.com :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi!

I've added a new application to playground/multimedia. KMid2 is a prototype of
a new architecture for KMid. The main change is that KMid2 MIDI output is
implemented on pluggable backends. Only the ALSA sequencer backend (for
Linux) is included here, but it should be possible to write native backends
for Windows and Mac OSX in the future. Also, a multiplatform backend based on
FluidSynth would be interesting for casual users, needing only to configure a
SoundFont file and the audio output.

Here are some major features from KMid that have been implemented in KMid2:
* Playback to external hardware MIDI devices.
* Allow to use software synths as well, like Timidity++ and QSynth/FluidSynth.
* Tempo and volume controls.
* Added a pitch (transpose) control.
* Configurable character encodings for lyrics.

Some other features, like the channel view and channel mute controls will be
added later. Some changes in this prototype regarding the former KMid are:
* Removed the deprecated OSS /dev/sequencer interface support. It has been
dropped from OSSv4, anyway.
* Avoid using fork/kill for play/pause/stop actions.
* The new ALSA sequencer implementation doesn't create/destroy the client and
port instances on each play/pause/stop action. This enables the usage of MIDI
patch bay applications like aconnect, kaconnect and qjackctl.

Please test and report comments, complains and suggestions. I'm specially
interested in problems related to special MIDI/karaoke files.

Regards,
Pedro
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

Re: KMid2 prototype

by Alessandro Sivieri :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Has anyone tried to compile it under a 64bit system? It gives me an error:

cd /home/alex/temp/kmid2/build/alsa && /usr/bin/cmake -E cmake_link_script CMakeFiles/kmid_alsa.dir/link.txt --verbose=1
/usr/bin/c++  -fPIC  -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-exceptions -fno-check-new -fno-common -Woverloaded-virtual -fno-threadsafe-statics -fvisibility=hidden -fvisibility-inlines-hidden -fexceptions -O2 -g -DNDEBUG -DQT_NO_DEBUG -Wl,--enable-new-dtags -Wl,--fatal-warnings -Wl,--no-undefined -lc  -shared -Wl,-soname,kmid_alsa.so -o ../lib/kmid_alsa.so CMakeFiles/kmid_alsa.dir/kmid_alsa_automoc.o CMakeFiles/kmid_alsa.dir/__/src/backend.o CMakeFiles/kmid_alsa.dir/__/src/midiobject.o CMakeFiles/kmid_alsa.dir/__/src/midioutput.o CMakeFiles/kmid_alsa.dir/alsabackend.o CMakeFiles/kmid_alsa.dir/alsamidiobject.o CMakeFiles/kmid_alsa.dir/alsamidioutput.o CMakeFiles/kmid_alsa.dir/song.o CMakeFiles/kmid_alsa.dir/player.o -L/home/alex/temp/kmid2/build/lib /usr/lib/libkdeui.so.5.3.0 /usr/lib/libkio.so.5.3.0 ../lib/libaseqmm.a -lasound /usr/lib/libkdeui.so.5.3.0 -lQtSvg -lQtNetwork -lQtXml -lQtGui /usr/lib/libkdecore.so.5.3.0 -lQtDBus -lQtCore -Wl,-rpath,::::::::::::::
/usr/bin/ld: ../lib/libaseqmm.a(moc_playthread.o): relocation R_X86_64_32 against `aseqmm::SequencerOutputThread::staticMetaObject' can not be used when making a shared object; recompile with -fPIC
../lib/libaseqmm.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [lib/kmid_alsa.so] Errore 1

--
Sivieri Alessandro
alessandro.sivieri@...
http://www.chimera-bellerofonte.eu/
http://www.poul.org/

 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

Re: KMid2 prototype

by Bugzilla from pedro.lopez.cabanillas@gmail.com :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thursday, October 29, 2009, Alessandro Sivieri wrote:
> Has anyone tried to compile it under a 64bit system? It gives me an error:
...
> /usr/bin/ld: ../lib/libaseqmm.a(moc_playthread.o): relocation R_X86_64_32
> against `aseqmm::SequencerOutputThread::staticMetaObject' can not be used
> when making a shared object; recompile with -fPIC

Can you please svn update, and try again? Thanks.

Regards,
Pedro
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

Re: KMid2 prototype

by Bugzilla from ingmar@exherbo.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Excerpts from Alessandro Sivieri's message of Thu Oct 29 12:58:22 +0100 2009:

> Has anyone tried to compile it under a 64bit system? It gives me an error:
>
> cd /home/alex/temp/kmid2/build/alsa && /usr/bin/cmake -E cmake_link_script
> CMakeFiles/kmid_alsa.dir/link.txt --verbose=1
> /usr/bin/c++  -fPIC  -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef
> -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security
> -fno-exceptions -fno-check-new -fno-common -Woverloaded-virtual
> -fno-threadsafe-statics -fvisibility=hidden -fvisibility-inlines-hidden
> -fexceptions -O2 -g -DNDEBUG -DQT_NO_DEBUG -Wl,--enable-new-dtags
> -Wl,--fatal-warnings -Wl,--no-undefined -lc  -shared
> -Wl,-soname,kmid_alsa.so -o ../lib/kmid_alsa.so
> CMakeFiles/kmid_alsa.dir/kmid_alsa_automoc.o
> CMakeFiles/kmid_alsa.dir/__/src/backend.o
> CMakeFiles/kmid_alsa.dir/__/src/midiobject.o
> CMakeFiles/kmid_alsa.dir/__/src/midioutput.o
> CMakeFiles/kmid_alsa.dir/alsabackend.o
> CMakeFiles/kmid_alsa.dir/alsamidiobject.o
> CMakeFiles/kmid_alsa.dir/alsamidioutput.o CMakeFiles/kmid_alsa.dir/song.o
> CMakeFiles/kmid_alsa.dir/player.o -L/home/alex/temp/kmid2/build/lib
> /usr/lib/libkdeui.so.5.3.0 /usr/lib/libkio.so.5.3.0 ../lib/libaseqmm.a
> -lasound /usr/lib/libkdeui.so.5.3.0 -lQtSvg -lQtNetwork -lQtXml -lQtGui
> /usr/lib/libkdecore.so.5.3.0 -lQtDBus -lQtCore -Wl,-rpath,::::::::::::::
> /usr/bin/ld: ../lib/libaseqmm.a(moc_playthread.o): relocation R_X86_64_32
> against `aseqmm::SequencerOutputThread::staticMetaObject' can not be used
> when making a shared object; recompile with -fPIC
> ../lib/libaseqmm.a: could not read symbols: Bad value
> collect2: ld returned 1 exit status
> make[2]: *** [lib/kmid_alsa.so] Errore 1
>
>  
> >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

Linking PIC & non-PIC code doesn't work on most arches (alpha, x86_64).

It looks like kmid2 require aseqmm, but tries to use the internal copy
if it's not found.
Try installing aseqmm from the tarballs here http://sourceforge.net/projects/kmetronome/files/,
then build kmid2 against that. That should work.

--
Exherbo KDE, X.org maintainer
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

Re: KMid2 prototype

by Alessandro Sivieri :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

2009/10/29 Pedro Lopez-Cabanillas <pedro.lopez.cabanillas@...>
Can you please svn update, and try again? Thanks.


Thanks, now it compiles!

 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

Re: KMid2 prototype

by Bugzilla from pedro.lopez.cabanillas@gmail.com :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thursday, October 29, 2009, Ingmar Vanhassel wrote:
> Linking PIC & non-PIC code doesn't work on most arches (alpha, x86_64).
>
> It looks like kmid2 require aseqmm, but tries to use the internal copy
> if it's not found.
> Try installing aseqmm from the tarballs here
> http://sourceforge.net/projects/kmetronome/files/, then build kmid2 against
> that. That should work.

The problem is that I've only released aseqmm-0.1 two months ago, and kmid2
already needs a newer version. So I've included the latest sources in
playground, building it as a static library for kmid2. I think this is the
best solution until aseqmm has matured enough. Thanks for testing!

Regards,
Pedro
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

Re: KMid2 prototype

by Robert Zwerus :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thursday 29 October 2009 13:39:12 Alessandro Sivieri wrote:
> Thanks, now it compiles!

Let's ship it then! ;-)
--
A Dieu,
 Robert Zwerus - WWW: http://www.arzie.net
 ICQ UIN: 3943443 - MSNM: robert_zwerus@...
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<