[Stk] demo polyphony
Mark Bahoric
mbahoric at gmail.com
Sat May 16 05:12:41 PDT 2009
Hello, stk'ers,
A very dumb question below . . .
First the setup:
Ubuntu 8.04 (Hardy Heron)
stk-4.3.1/projects/demo exe compiled/linked ok
tried playing the demo from a MIDI keyboard, but then ran into some funny
runtime behavior.
Following works ok, plays back monophonically as expected:
$./demo Plucked -or -im 2
For some reason, MIDI port 0 is MIDI thru on my machine (not sure if this is
normal) but anyway,
alsa confirms the MIDI connection from MIDI in (client 20) to the demo
(client 128):
$aconnect -lio
0 'Timer '
1 'Announce '
Connecting To: 15:0
client 14: 'Midi Through' [type=kernel]
0 'Midi Through Port-0'
client 20: 'MPU-401 UART' [type=kernel]
0 'MPU-401 UART MIDI'
Connecting To: 128:0
client 128: 'RtMidi Input Client' [type=user]
0 'RtMidi Input '
Connected From: 20:0
Running demo using more than one voice results in no sound at all, e.g.,
$./demo Plucked -n 2 -or -im 2
QUESTION: Does anyone know the magic words to get polyphonic playback
happening???
Looks like the code should support this because the call to startMidiInput
in utilities.cpp returns ok.
265 if ( !messager.startMidiInput( port-1 ) )
Tried #define DELTA_CONTROL_TICKS 4, no help.
Thanks for any advice for the dummy!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ccrma-mail.stanford.edu/pipermail/stk/attachments/20090516/a8afb369/attachment.html
More information about the Stk
mailing list