Re: [kln2-devel] tse3: alsa, arts and maybe more!
Brought to you by:
wiecko
|
From: Marek W. <Mar...@fu...> - 2004-03-26 22:20:53
|
Hi e-body,
Carlo, thanks for committing your changes.
On Wed, 24 Mar 2004, Marek Wieckowski wrote:
> I can't hear any sound when I choose OSS/TSE. :(
To make OSS/TSE make sound on my computer I had to:
1. split NoteOn and NoteOff to two separate events (I don't
have a clue why TSE "matching event" doesn't work. But I don't
think splitting these into two separate commands might hurt
anybody.)
2. change back to channel=0 (I don't really know what
TSE3::MidiCommand::AllChannels does [docs on this are quite
poor, aren't they?]. All I know is, it doesn't work.)
I committed both changes into CVS.
Does Carlo's code work for Alsa people? Mo? Javier? (choose
ALSA/TSE in sound setup dialog).
> On Thursday 18 March 2004 20:41, Silhusk wrote:
> > MIDI patches are not implemented yet, but volume should work.
What works (after these changes):
* I can hear right sounds both on raw OSS/Free and OSS/TSE
* I can change device ("TSE port")
* kln2 does not crush when changing back to OSS/Free
* and, due to TSE SchedulerFactory usage (added by Carlo :) kln2
falls back to OSS when I choose Alsa (which I don't have)
instead of crushing. Nice. :)
What doesn't (apart from midi patch assignment):
* notes' lengths (would using MidiOutput::noteLengh instead of
'duration' work and be enough?)
* volume; Carlo, did you want to use MidiOutput::noteVelocity
property for this?
There are 3 "volumes":
- master and midi volumes set up in mixer
- velocity of an individual note.
Usually a user sets up mixer settings, and the
song/piece/program sets up note's velocities. This way user can
- have a huge master volume (to listen to her CD loud)
- small midi volume (to listen to some midi music silently)
- the midi file itself sets up velocities (thus within the small
midi volume some parts of the piece can be a bit more silent
or a bit louder).
We probably won't ever have whole pieces with changing dynamics
(velocities), but letting the user change velocities directly
can confuse her (and can confuse people reading the source).
To summarize: yeah, there is a noteVelocity property, but I
don't think this is what should be used directly by a user to
setup volumes (and right now a user does not have any influence
on this). I think TSE mixer (or OSS mixer as it is done now)
should be used for this.
~Marek
--
\/ /|\ Marek Wieckowski
##### | | |
= . . = \|/ Institute of Theoretical Physics
U | Warsaw University
/ ~ \___ |
<| | |
> . < | http://www.fuw.edu.pl/~wiecko
<<___>> | http://klearnnotes2.sourceforge.net
|